This file contains 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
% Example of cropping and merging images in Matlab | |
% Get an image | |
peppersFileOrg = which('peppers.png'); | |
% Show original image | |
figure('Name','Image: peppers.png', 'NumberTitle','off'); | |
imPeppersOrg = imread(peppersFileOrg); | |
imshow(imPeppersOrg); | |
% Extract only the garlic from the 6 pepper_copy images |
This file contains 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
% Example of how to plot values on a given surface Atlas in Brainstorm | |
% Source is created using the 'Default anatomy' with its default cortex | |
% See: https://neuroimage.usc.edu/forums/t/46834 | |
% Raymundo Cassani, 2024 | |
%% Parameters | |
atlasName = 'Desikan-Killiany'; |
This file contains 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
% Example of how to export individual frequency bands (from a time-frequency file) as CSV files in Brainstorm | |
% See: https://neuroimage.usc.edu/forums/t/46834 | |
% Raymundo Cassani, 2024 | |
%% Paramters | |
% Input files | |
sFiles = {'Subject01/S01_AEF_20131218_01_600Hz_notch/timefreq_hilbert_240614_1018.mat'}; |
This file contains 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 varargout = process_something_raw_file( varargin ) | |
% PROCESS_SOMETHING_RAW_FILE: Do something on a raw file, create new raw file, add it to BST database. | |
% | |
% @============================================================================= | |
% This software is part of the Brainstorm software: | |
% http://neuroimage.usc.edu/brainstorm | |
% | |
% Copyright (c)2000-2023 Brainstorm by the University of Southern California | |
% This software is distributed under the terms of the GNU General Public License | |
% as published by the Free Software Foundation. Further details on the GPL |
This file contains 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
% Script to run connectivity (magnitude square coherence) on data from the | |
% Corticomuscular coherence tutorial: | |
% https://neuroimage.usc.edu/brainstorm/Tutorials/CorticomuscularCoherence | |
% | |
% This is done in order to verify the difference approaches for PCA | |
% provided in the ScoutPca branch (by Marc) | |
%% Parameters | |
% Brainstorm version and Protocol | |
ProtocolName = 'TutorialCMC'; |
This file contains 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
% Write empty FreeSurfer wfile | |
fileFullPath = '~/Desktop/dummy_rh.w'; | |
% Create binary big-endian file | |
fid = fopen(fileFullPath, 'wb', 'b'); | |
% Int16 for Latency | |
fwrite(fid, 0, 'int16'); | |
% Count of vertex-value pairs to follow (3-bytes) | |
fwrite(fid, [0, 0, 0], 'uchar') ; | |
% Close file | |
fclose(fid); |
This file contains 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
@import "syntax-variables"; | |
atom-text-editor { | |
.syntax--diff { | |
&.syntax--inserted &.syntax--inserted.syntax--punctuation { | |
color: @syntax-color-added; | |
} | |
&.syntax--changed { | |
color: @syntax-color-modified; | |
} |
This file contains 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
class Greeter(object): | |
def __init__(self): | |
print("Hi") | |
class PersonGreeter(Greeter): | |
def __init__(self, name): | |
super(PersonGreeter, self).__init__() | |
print(name) | |
``` |
This file contains 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
# 1. Get all info | |
curl -s "https://api.github.com/repos/brainstorm-tools/brainstorm3/commits?per_page=1&sha=master" | |
# Parse sha | |
curl -s "https://api.github.com/repos/brainstorm-tools/brainstorm3/commits?per_page=1&sha=master" | grep -oP '(?<=^\s\s\s\s"sha":\s").*(?=")' | |
# 2. Get only sha | |
curl -s -H "Accept: application/vnd.github.sha" "https://api.github.com/repos/brainstorm-tools/brainstorm3/commits/master" |
NewerOlder