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
# Set up the prompt | |
fpath+=($HOME/.zsh/pure) | |
autoload -Uz promptinit | |
promptinit | |
prompt pure | |
setopt histignorealldups sharehistory | |
# Use emacs keybindings even if our EDITOR is set to vi |
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 svgwrite | |
# Catppuccin frappe, see https://github.com/catppuccin/catppuccin | |
base = svgwrite.rgb(48, 52, 70) | |
text = svgwrite.rgb(198, 208, 245) | |
blue = svgwrite.rgb(140, 170, 238) | |
green = svgwrite.rgb(166, 209, 137) | |
red = svgwrite.rgb(231, 130, 132) | |
fs_big=50 |
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
;;; Package sources | |
(require 'package) | |
(if (version< emacs-version "28") | |
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)) | |
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) | |
(package-initialize) | |
;; Prefer melpa stable (maybe that's too conservative) | |
(setq package-archive-priorities | |
'(("gnu" . 20) |
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 [event_table] = read_event_table(file_path) | |
%READ_EVENT_TABLE Read BIDS events file into a table | |
% Reads trial_type, onset and duration columns from BIDS events.tsv file. | |
% Returns a matlab table. The trial_type column is converted into a | |
% string array, so that it can be conveniently queried with: | |
% mytable(mytable.trial_type == 'something', :). | |
% straight up readtable won't work with .tsv file extension | |
estruct = tdfread(file_path); |