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
{ | |
"name": "Notebook", | |
"settings": [ | |
{ | |
"settings": { | |
"background": "#BEB69D", | |
"foreground": "#111" | |
} | |
}, | |
{ |
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
import contextlib | |
import fcntl | |
import json | |
import sqlite3 | |
import time | |
import uuid | |
from typing import Any | |
from typing import Generator | |
from typing import Optional | |
from typing import Tuple |
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
"""figure out what shiny pokemon to do. | |
1. adjust SEEKING as needed | |
2. run this | |
""" | |
import collections | |
SEEKING = '''\ | |
Meowth |
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
{ | |
"$schema": "vscode://schemas/color-theme", | |
"name": "Dark (Visual Studio)", | |
"colors": { | |
"editor.background": "#1E1E1E", | |
"editor.foreground": "#D4D4D4", | |
"editor.inactiveSelectionBackground": "#3A3D41", | |
"editorIndentGuide.background": "#404040", | |
"editorIndentGuide.activeBackground": "#707070", | |
"editor.selectionHighlightBackground": "#ADD6FF26", |
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
import concurrent.futures | |
import json | |
import os.path | |
import urllib.request | |
token = '...' | |
url = f'https://slack.com/api/emoji.list?token={token}' | |
resp = urllib.request.urlopen(url) |
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
import os.path | |
import shutil | |
import urllib.parse | |
from xml.sax import make_parser | |
from xml.sax.saxutils import XMLFilterBase | |
from xml.sax.saxutils import XMLGenerator | |
DEST = 'E:/music' |
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
import pprint | |
def ntpp(x, *, l=0): | |
indent = l * 4 * ' ' | |
if hasattr(x, '_fields'): | |
return ''.join(( | |
type(x).__name__ + '(\n', | |
*( | |
indent + ' ' + |
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
// ==UserScript== | |
// @name gerthurb | |
// @namespace asottile | |
// @include https://*.github.com/* | |
// @include https://github.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.querySelector('.header-dark').classList.remove('header-dark'); |
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
import argparse | |
import os | |
from pyth.plugins.rtf15.reader import Rtf15Reader | |
from pyth.plugins.plaintext.writer import PlaintextWriter | |
def get_text(filename): | |
with open(filename) as f: | |
doc = Rtf15Reader.read(f) |
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
import pipes | |
import subprocess | |
pythons = ( | |
'Python27', | |
'Python27_x86', | |
'Python34', | |
'Python34_x86', | |
'Python35', |
NewerOlder