Skip to content

Instantly share code, notes, and snippets.

from twython import Twython
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_KEY = ''
ACCESS_SECRET = ''
twitter = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET)
user_timeline = twitter.get_user_timeline(screen_name="aj701", count=200, include_retweets=False)
#Use a users tweets + photo to create personalized poetry
#Created for RWET Spring 2015 Final
#ITP - NYU
#By Andrew J. LeVine - www.ajlevine.com
"""
Usage: twitter-img.py <imgfile> [--twitName=<twitName>] [--maxLen=<maxLen>] [--fontSize=<fontSize>] [--ranSamp=<ranSamp>]
"""
#--maxLen= max length of output
#--fontSize = size of font used in output
# First Python Homework
# By Andrew J. LeVine
# Feb 2015
import sys
begin = "Who said "
begin2 = "They said "
begin3 = "We said "
end = "?"
//entire map
PShape usa;
//PShape state;
String [] stateList = {
"AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA",
"ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR",
"PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"
};
void setup() {