Skip to content

Instantly share code, notes, and snippets.

import tweepy
username = 'hugsbot'
password = 'secret'
api = tweepy.API(tweepy.BasicAuthHandler(username,password))
def givehugs():
for follower in tweepy.Cursor(api.followers).items():
print follower.screen_name
api.update_status('@%s Hi, this is your daily hug *hug*' % follower.screen_name)
hugssince = 0
def searchhugs():
@harrisony
harrisony / gist:230751
Created November 10, 2009 08:56
TV Timer thing for arduino
/*
* TV Timer by Harrison Conlin
* http://harrisony.com/tvtimer.html
*
*/
#include <LiquidCrystal.h>;
#define BTN2 (15)
#define POT (3)
#define PIEZO (9)
@harrisony
harrisony / gist:194140
Created September 26, 2009 10:04
Reports twitter spammers to @spam
# wget http://python-twitter.googlecode.com/svn-history/r151/branches/hameedullah/twitter.py -O twitterwithsearch.py
import twitterwithsearch as twitter
done = []
testfile = open('spammers.txt', 'U')
for p in testfile:
done.append(p.rstrip())
username = ''
password = ''
ts = twitter.Api(username=username, password=password)
aq = ts.Search("CTX Mortgage reportedly for sale",rpp=50)