Skip to content

Instantly share code, notes, and snippets.

@anpigon
anpigon / script_youtube_quickAdd.js
Last active June 29, 2023 19:14
Script YouTube Metadata for Obsidian QuickAdd
const notice = (msg) => new Notice(msg, 5000);
const YOUTUBE_URL = "https://m.youtube.com/watch";
const youtubeIdRegExp = /(?:(?:youtube.com\/watch\?v=)|(?:youtu.be\/)|(?:youtube.com\/embed\/))([A-Za-z0-9\_\-]+)/i;
let QuickAdd;
let Settings;
module.exports = async function start(params, settings) {
import yt
import netCDF4
import numpy as np
dataset = netCDF4.Dataset('http://www.smast.umassd.edu:8080/thredds/dodsC/FVCOM/NECOFS/Forecasts/NECOFS_FVCOM_OCEAN_MASSBAY_FORECAST.nc')
connectivity = dataset['nv'][:].T.astype('int64')-1
x = dataset['x'][:]
y = dataset['y'][:]
@Starefossen
Starefossen / tmux-cheats.md
Last active April 23, 2024 11:47
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session