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 8000Each 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 8000Loosely 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 |
| 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) |