This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Download the .zip archive below by clicking "View raw" | |
| - Extract colors1.txt and colors2.txt | |
| - Open https://scratch.mit.edu/projects/1212099068/ | |
| - Start the project and press "2" | |
| - Click "See Inside" and import colors1.txt into the "colors1" list and colors2.txt into the "colors2" list (right click the lists on stage) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from string import ascii_lowercase, ascii_uppercase | |
| from itertools import product | |
| from dataclasses import dataclass | |
| import traceback | |
| import inspect | |
| class UnwrapError(Exception): pass | |
| UNWRAP_FUNCS = ("unwrap", "unwrap_or", "unwrap_or_else", "and_then", "__class__") | |
| RESULT_TYPES = ("_err_tuple", "_err", "_ok", "_ok_tuple") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export PULSE_SERVER="tcp:$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}')" | |
| pulseaudio --start | |
| # replace USER with a username, VIDEO with a YouTube video ID, and TERMINAL with an terminal (konsole, gnome-terminal, etc.) | |
| pasuspender -- /home/USER/.local/bin/youtube-dl -o - "https://youtube.com/watch?v=VIDEO" | mpv - --no-terminal --really-quiet --display-tags-clr --player-operation-mode=pseudo-gui > /dev/null & disown; sleep 4 && kill `ps -axjf | grep -m 1 "\_ TERMINAL" | awk '{print $2}'`; exit | |