Skip to content

Instantly share code, notes, and snippets.

View dtxe's full-sized avatar

Simeon Wong dtxe

View GitHub Profile
@dtxe
dtxe / code.gs
Created June 21, 2024 03:56
Google AppScript to parse sheet of walk up songs for spotify soundboard
/**
* The event handler triggered when editing the spreadsheet.
* @param {Event} e The onEdit event.
* @see https://developers.google.com/apps-script/guides/triggers#onedite
*/
function onEdit(e) {
// columns
// PlayerName Number SpotifyURL StartTime EndTime
// get the sheet and the range of data
@dtxe
dtxe / plot_atlas_on_surf.py
Last active December 30, 2024 17:18
Plot atlas on brain surface
from typing import Literal, List
import surfplot
import matplotlib as plt
import nibabel as nib
import numpy as np
import pandas as pd
def plot_atlas_on_surf(atlas_path: str,
@dtxe
dtxe / dsi_install_v2.sh
Last active February 6, 2025 21:04
faster dsi setup demo
##### STEP 1 #####
# Step 1 for Windows
winget install python.python.3.13 astral-sh.uv
# Step 1 for Linux/MacOS
curl -LsSf https://astral.sh/uv/install.sh | sh
##### STEP 2 #####
# All OSes
uv venv ~/Envs/dsi_participant -p 3.9 --python-preference only-managed