Skip to content

Instantly share code, notes, and snippets.

View allisonburtch's full-sized avatar

Allison allisonburtch

View GitHub Profile
@r4dian
r4dian / Unfavinator.py
Last active October 16, 2017 12:05
Delete all your (visible) twitter favs
#!/usr/bin/env python
import sys, os, time
# add the path for virtual env for running via cron
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/lib/python3.4/site-packages/')
import tweepy
#visit http://dev.twitter.com to create an application and get your keys
@staltz
staltz / introrx.md
Last active May 20, 2024 14:59
The introduction to Reactive Programming you've been missing
@chrisallick
chrisallick / gist:4693962
Created February 1, 2013 20:36
How day do dat? Pulling vine videos from twitter based on a hashtag. create the json request, bump the script tag with object into your dom, delete dom element, parse it.
result.entities.urls[0].expanded_urlfetch = function(query) {
var script_tag = document.createElement("script");
script_tag.id = "fetcher";
script_tag.src = "https://search.twitter.com/search.json"+query+"&callback=parse";
document.body.appendChild(script_tag);
}
parse = function(data) {
document.body.removeChild(document.getElementById("fetcher"));
if( data && data.results ) {