View Traitlets3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Traitlets2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Traitlets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View similarity.py
from __future__ import division
import json
import os
import urlparse
from collections import defaultdict
from datetime import datetime
from dateutil.relativedelta import relativedelta
from requests import HTTPError
from requests_oauthlib import OAuth1Session
View Practicing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View a_better_opml.py
import tweepy
from BeautifulSoup import BeautifulSoup as parser
import urllib
consumer_key=''
consumer_secret=''
access_token=''
access_token_secret=''
View SillyThreading.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:4290995
def fsplit(line):
line = line.decode("utf-8")
pos = 0
fields = []
for _ in range(8):
if line[pos] == '"':
start = pos
end = line.find('"', pos+1)
while end+1<len(line) and line[end+1] == '"':
pos = end+1
View Procfile
web: gunicorn -w4 -b0.0.0.0:$PORT app:app
View pycon-pc-irc-report.py
import sys
import json
from itertools import dropwhile
from textwrap import TextWrapper
wrapper = TextWrapper(width=45)
LINE_FORMAT = '{id:>3} {mark} {yay:>2} {nay:>2} {abstain:>2} {name}'
# Continuation lines should start with 15 spaces: how to automate?
with open(sys.argv[1]) as json_in: