Skip to content

Instantly share code, notes, and snippets.

View linkviii's full-sized avatar

linkviii

View GitHub Profile
#!/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()
@linkviii
linkviii / keybindings.json
Last active January 25, 2017 15:32
vs code config
// 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+`",
#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.
*/
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
# 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
// 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";