Skip to content

Instantly share code, notes, and snippets.

import requests
import time
from config import API_KEY, API_SECRET, ACCESS_TOKEN, USER_ID
# Get your authentication information from https://disqus.com/api/applications/
AUTH = {
'api_key': API_KEY,
'api_secret': API_SECRET,
LEGISLATIVE BRANCH
Advisory Neighborhood Commissions
Council of the District of Columbia
Office of the District of Columbia Auditor
JUDICIAL BRANCH
Commission on Judicial Disabilities and Tenure
DC Court of Appeals
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import errno
import os
import sys
if __name__ == '__main__':
try:
with open(sys.argv[1], 'r') as infile:
text = infile.readlines()
except IndexError:
print('Usage: python arena_ascii.py txt_file_path')

Start out with 25 horses. Group them arbitrarily into races with 5 horses. Label them.

Race 1

a
b
c
d
e
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emanuelfeld
emanuelfeld / sicp.md
Last active September 19, 2018 18:19

Structure and Interpretation of Computer Programs

@emanuelfeld
emanuelfeld / gi-lf
Last active April 24, 2017 14:26
as pre-commit script, automatically add files larger than some size to your repository's .git/info/exclude file
#!/bin/bash
# set max file size to include (in MB)
max_size_mb=100
max_size_b="$(($max_size_mb * 1000000))c"
git_dir="$(git rev-parse --show-toplevel)"
git_exclude=$git_dir/.git/info/exclude
files="$(find $git_dir -path $git_dir/.git -prune -o -type f -size +$max_size_b -print | sed "s%$git_dir/%%g" | sed "s/\ /\\\ /g")"
@emanuelfeld
emanuelfeld / 6-01_slab2.ipynb
Created July 8, 2016 03:33
MIT 6.01 State Machines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.