Skip to content

Instantly share code, notes, and snippets.

View rcassani's full-sized avatar
🦫

Raymundo Cassani rcassani

🦫
View GitHub Profile
@rcassani
rcassani / custom.css
Last active February 16, 2022 15:37
Custom CSS Zettlr (2.0.x)
/* Custom CSS to personalize Berlin (dark) theme */
/* Zettlr 2.0.x */
/* Feb 2022 */
/* Monospace font */
body #editor .CodeMirror {
font-family: 'Source Code Pro', monospace;
margin-left: 0px;
}
@rcassani
rcassani / matlab.amf
Last active July 11, 2021 19:55
Aspell mode file (.amf) to spellcheck only comments in Matlab code
MODE matlab
ASPELL >=0.60.1
MAGIC /<noregex>/m
DESCRIPTION mode for checking Matlab comments
FILTER context
OPTION clear-context-delimiters
@rcassani
rcassani / chat.txt
Last active June 4, 2021 04:04
Chat for Taller en vivo de Brainstorm y Q&A: Junio 2, 2021
13:59:53 From Raymundo Cassani Gonzalez : Hola a todos y bienvenidos al primer demo / workshop de Brainstorm en español. Comenzamos en unos minutos.
14:01:02 From Ismael Gutiérrez Cordero : Buenas tardes Raymundo y todos los demás. Encantado!
14:01:15 From John Solorzano Restrepo : Buenas tardes a todos!
14:02:06 From Guiomar Niso : Hola!
14:04:12 From Sylvain Baillet : Bienvenido a todos!
14:04:38 From Jorge J Palacios V : Gracias un gusto estar con Uds.
14:04:46 From Guiomar Niso : Que bien ver tanta gente de diferentes partes del mundo!
14:04:50 From Guiomar Niso : Hola desde Madrid!
14:05:43 From Ana Maria Campos Espinoza : Hola! un saludo desde Londres, pero soy chilena :)
14:06:14 From Sylvain Baillet : Nadie es perfecta, jajaja !
@rcassani
rcassani / chat_2021_05_27.txt
Created May 30, 2021 11:49
Chat for Live Brainstorm workshop and Q&A: May 27, 2021
09:58:35 From Sylvain Baillet To Everyone:
Hi everyone and welcome! We’ll be starting shortly.
10:30:13 From Shresth Prasad To Everyone:
Can I assume that mne python is a subset of Brainstrom ?
10:30:56 From Sezen Asan To Everyone:
Will we have access to the powerpoint after the presentation? I am slow to take notes...
10:32:03 From Gabriela Cintra Januário To Everyone:
Good morning! Are you going to talk also about NIRSTORM?
10:32:49 From Kirandeep Kaur To Everyone:
I have been using brainstorm to compute functional connectivity in epilepsy subjects. I would like to understand what the threshold values indicate in the connectivity plots, how do we interpret them. Thanks!
@rcassani
rcassani / bluetooth-sleep.service
Created September 9, 2020 14:57
systemd service file to turn OFF the bluetooth controller on Sleep, and turn it ON on Wake
[Unit]
Description= Controls the power of the bluetooth controller when sleep and wake
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
# Uses bluetoothctl to change the power of bluetooth the controller
ExecStart=/usr/bin/bash -c "bluetoothctl power off"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This is the code for the simulation and figures described in the post:
# "Multiple comparisons problem, visual approach" in
# https://www.castoriscausa.com/posts/2020/06/19/multiple-comparisons-visual/
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as stats
@rcassani
rcassani / desklet.js
Last active October 19, 2023 13:52
Simple desklet for Cinnamon (desktop environment)
const Desklet = imports.ui.desklet;
const St = imports.gi.St;
function MyDesklet(metadata, desklet_id) {
this._init(metadata, desklet_id);
}
MyDesklet.prototype = {
__proto__: Desklet.Desklet.prototype,
@rcassani
rcassani / hist_norm.m
Created May 7, 2020 16:50
Histogram overlap
function [nElementsNorm, xCenters, heightsNorm, edges] = hist_norm(data, nBins)
%
% HIST_NORM(DATA, NBINS) computes the Histogram for the vector DATA
% using NBINS, and normalize it so the area occupied by the bars with heigth
% NELEMENTSNORM with center at XCENTERS sums up to 1.
% The resulting histogram (i.e., the barrs) can be plotted with
% bar(xCenters, nElementsNorm)
% alternatively, the empirical PDF can be plotted with
% area(heightsNorm,edges)
@rcassani
rcassani / interactive_test.ipynb
Last active April 17, 2020 19:20
Interactive Jupyter Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rcassani
rcassani / example_argparse.py
Created August 26, 2019 18:24
Pass arguments to Python code
import argparse
parser = argparse.ArgumentParser()
# Positional argument
parser.add_argument('echo', help='Response text')
# Optional arguments
parser.add_argument('--value', type=int, default=0)
parser.add_argument('--flag', action='store_true', help='Flag, true if present')
args = parser.parse_args()
print(args.echo)