Skip to content

Instantly share code, notes, and snippets.

View alecglassford's full-sized avatar

Alec Glassford alecglassford

View GitHub Profile
@alecglassford
alecglassford / tufte.terminal
Created August 4, 2017 05:35
Color scheme that will make your macOS Terminal.app look like "a grim parody of a video game," ported from https://github.com/notwaldorf/.not-quite-dotfiles/blob/master/terminal-preferences/tufte.itermcolors (inspired by https://twitter.com/notwaldorf/status/893333184410079232)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjM0OTAxOTYwNzggMC4yOTAxOTYwNzg0IDAuNDkwMTk2MDc4NAAQAoAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@alecglassford
alecglassford / podcast-mixtape.md
Last active July 25, 2017 17:17
Podcast recommendations for Chinmay

Part 1 (the mixtape. listen to in order if it pleases you.)

  • Criminal - “51: Money Tree”
  • Reply All - “#56 Zardulu”
  • The Memory Palace - “94 (Numbers)”
  • The Daily - “Thursday, June 22, 2017”
  • Death, Sex & Money - “I Had Babies To Pay For My Baby”
  • Invisibilia - “Our Computers, Ourselves”
  • Reply All - “#53 In the Desert”
  • The New Yorker: The Writer’s Voice - “Curtis Sittenfeld Reads ’Show Don’t Tell’”
@alecglassford
alecglassford / available-otus-usernames.txt
Last active April 7, 2017 21:13
Available usernames ending in -OTUS on Twitter (as of 4/7/16)
AEOTUS
AJOTUS
AOOTUS
AUOTUS
BGOTUS
BJOTUS
BNOTUS
BQOTUS
BUOTUS
BVOTUS
@alecglassford
alecglassford / pipeline.ipynb
Created March 19, 2017 08:43
Exploring SF development pipeline
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am alecglassford on github.
  • I am alecglassford (https://keybase.io/alecglassford) on keybase.
  • I have a public key ASDHYX0WE2KHV1hi1BZz-vTExOjK18dKf1roHg7i1WdQIwo

To claim this, I am signing this object:

@alecglassford
alecglassford / warn_wa.py
Last active April 6, 2016 10:25
Exploring Washington state's WARN data
import csv
import re
from xml.etree import ElementTree
import requests
url = 'https://fortress.wa.gov/esd/warnrss/'
desc_pattern = re.compile(r'(.*)\(\s*(.*)\)\s*will lay off (\d+)\s*employees, effective (.*)<br>.*Date of Notification: (.*)<\/font>')
resp = requests.get(url)
@alecglassford
alecglassford / explore_warn.py
Created April 6, 2016 09:38
Explore CA Warn data
import csv
import requests
import pdfplumber
################################################################################
# Downloading
urls = [
'http://www.edd.ca.gov/jobs_and_training/warn/WARN-Report-for-7-1-2015-to-03-25-2016.pdf',
import csv
from collections import Counter
################################################################################
with open('breach_report.csv', 'r') as csv_file:
reader = csv.DictReader(csv_file)
total = 0
for row in reader:
affected = row["Individuals Affected"]