This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Prompt user to enter the delay time in minutes | |
display dialog "停止までの時間を分単位で入力してください:" default answer "30" | |
set delayMinutes to text returned of result as integer | |
-- Convert minutes to seconds and wait | |
set delaySeconds to delayMinutes * 60 | |
delay delaySeconds | |
-- Show a notification when the music starts playing | |
display notification "もうすぐ時間です" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub activateHyperlinks() | |
'Updateby Extendoffice | |
Dim Rng As Range | |
Dim WorkRng As Range | |
On Error Resume Next | |
Dim xTitleId As String | |
xTitleId = "Website" '<-----change this as needed | |
Set WorkRng = Application.Selection | |
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8) | |
For Each Rng In WorkRng |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function T = CEDS64ChanList(fhand) | |
% CEDS64ChanList returns a table of channels in the Spike2 data file | |
% specified by a handle fhand. | |
% | |
% SYNTAX | |
% T = CEDS64ChanList(fhand) | |
% | |
% | |
% INPUT ARGUMENTS | |
% fhand integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'removeFCVartifactForFreya.s2s | |
' See onskel.zip at http://ced.co.uk/downloads/scriptspkmeth | |
'' | |
'it contains toolbar to enable the user to open | |
' a new data file for sampling and start and stop sampling. | |
'It displays the log view at the botton of the screen to place | |
' values in that the user may wish to extract | |
'All on-line analysis should be placed in the idle routine | |
' | |
'Note this script is UNDER DEVELOPMENT BY CED and is included for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ma = writeMapAnnotation(session, keys, values, varargin) | |
% WRITEMAPANNOTATION Create and upload a map annotation onto OMERO | |
% | |
% ma = writeMapAnnotation(session, keys, values) creates and uploads a | |
% map annotation owned by the session user containing one or multiple | |
% key/value pair(s). The keys and values input must be either strings or | |
% cell arrays of strings with the same number of elements. | |
% | |
% ma = writeMapAnnotation(session, keys, values, 'description', | |
% description) also specifies the description of the map annotation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% use Java Gateway from MATLAB | |
host = 'xxxxxxx.xxxx.xxxxx'; | |
userName = 'XXXXXXXX'; | |
password = inputdlg('password:'); | |
password = password{1}; | |
[gateway,user,cred] = loadOmeroGateway(userName, password, host) % https://gist.github.com/kouichi-c-nakamura/c8d335bfe45ee15e3bd86771a8578596 | |
%% Retrieve the list of ROIs attached to an image in a dataset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fac = getGatewayFacility(gateway,classname) | |
% getGatewayFacility is a MATLAB function to be used with OMERO Java | |
% Gateway. | |
% | |
% in Java, the following code returns the XxxxxFacility object fac. | |
% XxxxxFacility fac = gateway.getFacility(XxxxxFacility.class) | |
% | |
% However, running the same code in MATLAB requires special handling and | |
% this functions does that for you. For more details, see | |
% https://docs.openmicroscopy.org/latest/omero/developers/Java.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [xml, res] = bfTiffComment(imgfile, varargin) | |
% bfTiffComment allows you to extract, inject, indent or validate OME-XML | |
% embeeded in an OME-TIFF file or an XML file. | |
% | |
% SYNTAX | |
% xml = bfTiffComment(imgfile) | |
% xml = bfTiffComment(xmlfile) | |
% xml = bfTiffComment(xmlstr) | |
% [xml,res] = bfTiffComment(____,'Param',value) | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [gateway,user,cred] = loadOmeroGateway(userName, password, host, varargin) | |
% loadOmeroGateway opens a connection to an OMERO server using Java gateway | |
% (https://docs.openmicroscopy.org/latest/omero/developers/Java.html#gatewayconnect). | |
% | |
% SYNTAX | |
% [gateway,user,cred] = loadOmeroGateway(userName, password, host) | |
% [gateway,user,cred] = loadOmeroGateway(userName, password, host, port) | |
% | |
% | |
% INPUT ARGUMENTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"translatorID": "1ed36c21-de68-4ba4-a27f-d724ce258db4", | |
"label": "Society for Neuroscience Abstract 2016", | |
"creator": "Kouchi C. Nakamura, PhD; [email protected]", | |
"target": "^https?://www\\.abstractsonline\\.com/pp8/#!/\\d+/presentation/", | |
"minVersion": "3.0", | |
"maxVersion": "", | |
"priority": 100, | |
"inRepository": true, | |
"translatorType": 4, |
NewerOlder