This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First Python Homework | |
| # By Andrew J. LeVine | |
| # Feb 2015 | |
| import sys | |
| begin = "Who said " | |
| begin2 = "They said " | |
| begin3 = "We said " | |
| end = "?" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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() { |