Skip to content

Instantly share code, notes, and snippets.

View willwm's full-sized avatar

Will Wolff-Myren willwm

View GitHub Profile
@willwm
willwm / bookmarklet-youtube-delete-playlist.js
Created July 19, 2020 04:16
Bookmarklet: Delete YouTube Playlist (from playlist page)
javascript: (async() => {
const sleep = () => { return new Promise(resolve => setTimeout(resolve, 500)); };
const deletePlaylist = async() => {
document.querySelector('.ytd-playlist-sidebar-primary-info-renderer > #button > #button > .style-scope').click(); await sleep();
document.querySelector('.ytd-menu-popup-renderer:nth-child(5) .style-scope:nth-child(2)').click(); await sleep();
document.querySelectorAll('.yt-simple-endpoint .style-scope .yt-button-renderer')[1].click(); await sleep();
};
await deletePlaylist();
})();
@willwm
willwm / preamble.tex
Last active January 23, 2022 02:06
preamble.tex: LaTeX Preamble Template (Will Wolff-Myren)
%% preamble.tex: LaTeX Preamble Template (Will Wolff-Myren) %%
\usepackage{amsmath, amsthm, amssymb, enumerate, setspace}
\usepackage{mathtools} % https://ctan.org/pkg/mathtools
\usepackage{fancyhdr} % Fancy header. ;-)
\usepackage{titlesec} % For chapter/section/subsection customizations
\usepackage{hyperref} % https://www.andy-roberts.net/writing/latex/pdfs
\usepackage{tcolorbox} % For references from the book
\usepackage{relsize} % For resizing fractions in displaymath
\usepackage{marvosym} % For the contradiction lightning bolt
@willwm
willwm / campbell.json
Last active September 2, 2025 06:03
Campbell Color Scheme
{
"name" : "Campbell",
"cursorColor": "#FFFFFF",
"selectionBackground": "#FFFFFF",
"background" : "#0C0C0C",
"foreground" : "#CCCCCC",
"black" : "#0C0C0C",
@willwm
willwm / flash_all.sh
Created March 29, 2021 00:35
fastboot: Flash All Partitions (OnePlus 8T)
fastboot flash product product.img
fastboot flash abl abl.img
fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
fastboot flash boot boot.img
fastboot flash cmnlib cmnlib.img
fastboot flash cmnlib64 cmnlib64.img
fastboot flash devcfg devcfg.img
fastboot flash dsp dsp.img
fastboot flash dtbo dtbo.img
@willwm
willwm / colors.scss
Last active April 26, 2021 21:52
Color Reference (RGB)
/* Common Lighting, by Color Temp */
$white-2850k: rgb(255,214,170);
$white-3250k: rgb(255,241,224);
/* Drop CTRL Teal→Salmon Colors */
/* https://github.com/willwm/layouts-ctrl */
$ctrl-teal: rgb(24,215,204);
$ctrl-salmon: rgb(255,114,118);
@willwm
willwm / examples.tex
Created January 23, 2022 01:47
Selected LaTeX Examples
%% Section 2.1 %%
\section*{Section 2.1}
\subsection*{2.1.2}{Prove that if $\seq{a_n}$ is a convergent sequence, then $\seq{|a_n|}$ is convergent. Is the converse true?}
\begin{proof} % If $\seq{a_n}$ is convergent, then $\seq{|a_n|}$ is convergent.
Let $\epsilon>0$ be given.
Since $\seq{a_n}$ converges to $a$, there exists $N \in \N$ such that $|a_n - a| < \epsilon, \A n \geq N$. Consider $\seq{|a_n|}$:
\begin{equation*}
@willwm
willwm / mycolorboxes.sty
Created January 23, 2022 08:00
Selected tcolorbox styles from NotesTeX (https://github.com/Adhumunt/NotesTeX)
%% mycolorboxes.sty:
%% Selected tcolorbox styles from NotesTeX
%% (https://github.com/Adhumunt/NotesTeX)
\ProvidesPackage{mycolorboxes}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\usepackage{thmtools}
@willwm
willwm / homework.sty
Last active February 7, 2022 15:48
LaTeX Homework Template
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{homework}
\usepackage[margin=1in]{geometry}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\usepackage{mathtools,amsthm,amssymb,amsfonts,bm}
\usepackage{thmtools,amsmath}
@willwm
willwm / code.py
Created August 23, 2022 06:29
MatrixPortal: Metro Matrix Clock (modified)
# SPDX-FileCopyrightText: 2020 John Park for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# Metro Matrix Clock
# Runs on Airlift Metro M4 with 64x32 RGB Matrix display & shield
import time
import board
import displayio
@willwm
willwm / bitcoin-clock.py
Last active August 23, 2022 16:20
MatrixPortal: My Clock
# SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
This example checks the current Bitcoin price and displays it in the middle of the screen
"""
import time
import board
import terminalio
from adafruit_matrixportal.matrixportal import MatrixPortal