From | To | Expression |
---|
This file contains 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
import Tweet | |
import simplejson | |
import urllib2 | |
def read_tweets(user, num_tweets): | |
tweets = [] | |
url = "http://api.twitter.com/1/statuses/user_timeline.json?\ | |
screen_name=%s&count=%s&include_rts=true" % (user, num_tweets) | |
file = urllib2.urlopen(url) |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000