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"
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: |
Year | Value | ||||||
1880 | -0.17 | ||||||
1881 | -0.09 | ||||||
1882 | -0.11 | ||||||
1883 | -0.18 | ||||||
1884 | -0.29 | ||||||
1885 | -0.34 | ||||||
1886 | -0.32 | ||||||
1887 | -0.37 |