Skip to content

Instantly share code, notes, and snippets.

Cory Benfield Lukasa

Block or report user

Report or block Lukasa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dgouldin /
Created Jun 6, 2015
Twitter friend similarity
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
import zipimport
# Used to try and prevent bugs from people who see that Wheels
# support being added to sys.path and expect that your library/tool should
# support this misfeature.
if isinstance(__loader__, zipimport.zipimporter):
raise RuntimeError(
"Zipped imports are not supported, use something less terrible."
git diff --no-prefix --ignore-space-at-eol | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch
You can’t perform that action at this time.