This file contains 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 bs4 import BeautifulSoup | |
from pathlib import Path | |
import operator | |
import itertools | |
import sys | |
import os | |
# %% |
This file contains 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
// Based on https://forum.cockos.com/showpost.php?p=1389356&postcount=612 | |
// Rename selected tracks based on their channel number and GM1 instrument name. | |
GM_map = 1; | |
GM_map[0]="Acoustic Grand Piano"; | |
GM_map[1]="Bright Acoustic Piano"; | |
GM_map[2]="Electric Grand Piano"; | |
GM_map[3]="Honky-tonk Piano"; | |
GM_map[4]="Electric Piano 1"; | |
GM_map[5]="Electric Piano 2"; | |
GM_map[6]="Harpsichord"; |
This file contains 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
# Go to https://www.twitch.tv/wallet?tab=bits-usage-history | |
# Hold down 'page down' key until nothing more loads | |
# Right click table -> Inspect element | |
# Find the table tag | |
# right click -> edit as html | |
# ctrl-a, ctrl-c -> save as foo.html | |
from bs4 import BeautifulSoup | |
from pathlib import Path | |
from pprint import pprint |
This file contains 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
Lost boys | |
Technoboys Pulcraft Green-Fund | |
Technoboys Pulcraft Green-Fund: | |
https://open.spotify.com/artist/0CzzuTmypU8iNBbMS9K4XP | |
https://anidb.net/creator/9098 | |
https://vgmdb.net/artist/10995 | |
https://www.animenewsnetwork.com/encyclopedia/people.php?id=105276 | |
https://myanimelist.net/people/34829/Technoboys_Pulcraft_Green-Fund | |
https://ja.wikipedia.org/wiki/TECHNOBOYS_PULCRAFT_GREEN-FUND |
This file contains 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
#include "mex.h" | |
/* | |
* Doing this works and is easy enough to maintain but it is kind of annoying. | |
* There are code generators and argument parsers out there, | |
* but they can complicate the code even more. | |
* Named optional parameters and other complexities should just be handled by a matlab wrapper. | |
*/ |
This file contains 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
// Place your key bindings in this file to overwrite the defaults | |
//ctrl K, ctrl k -> map combo | |
[ | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+`", |
This file contains 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
#!/usr/bin/ipython | |
from sys import argv | |
from sys import exit | |
""" | |
shortcut for live streamer. t name quality -> livestreamer twitch.tv/name auality. name is expanded from following.txt. a 3rd argument will keep name from being expanded | |
""" | |
if len(argv) == 1: | |
print "no name" | |
exit() |