pip install aqtinstall
aqt install-qt linux desktop 6.5.0 -m qtcharts --outputdir /opt/qt6
sudo apt install libxcb-cursor-dev
export QTDIR="/opt/qt6/6.5.0/gcc_64"
##### 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 |
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, |
/** | |
* 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 |
from typing import Tuple | |
import numpy as np | |
def kt_pca(X:np.ndarray) -> Tuple[np.ndarray, np.ndarray]: | |
""" | |
This is an implementation of the linear kernel PCA method ("kernel trick") | |
described in "Kernel PCA Pattern Reconstruction via Approximate Pre-Images" | |
by Schölkopf et al, ICANN, 1998, pp 147-15 | |
Parameters |
import yaml | |
import requests | |
import json | |
# Load config file | |
with open('domain.YAML', 'r') as f: | |
data = list(yaml.safe_load_all(f)) | |
with open('apikeys.yml', 'r') as f: | |
apikeys = yaml.safe_load(f) |
import os.path | |
import yaml | |
import requests | |
import logging | |
from typing import Tuple | |
logging.basicConfig(level=logging.INFO) | |
class Porkbun(): |
#!/bin/bash | |
# download gcm | |
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.4.1/gcm-linux_amd64.2.4.1.deb | |
sudo apt install ./gcm-linux_amd64.2.4.1.deb | |
# configure | |
git-credential-manager configure | |
git config --global credential.credentialStore cache | |
git config --global credential.cacheOptions "--timeout 14400" |
// This Clipboard Fusion macro makes it easy to copy Latex from the Learning Standards Project into WebWork compatible formats | |
using System; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
// The 'text' parameter will contain the text from the: | |
// - Current Clipboard when run by HotKey | |
// - History Item when run from the History Menu | |
// The returned string will be: |