start new:
tmux
start new with session name:
tmux new -s myname
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 |
Intro to Git/Github
October 23, 2013 7-9pm RSVP
##Agenda
#Intro to Git/Github
NYC Pyladies Event Page
Tentative Agenda for the evening:
Please bring:
NYC PyLadies
Agenda for the evening:
| """ | |
| Title: Batch Image File Renaming | |
| Author: Kat Chuang @katychuang | |
| Copied from http://stackoverflow.com/questions/9835243/python-rename-multiple-image-files | |
| """ | |
| import os | |
| # Create a list of files from the current directory who's last 4 characters | |
| # as lowercase are either '.jpg' |
| /* Flotr2 line chart with data points and labels */ | |
| (function basic_bars(container, horizontal) { | |
| var | |
| horizontal = (horizontal ? true : false), // Show horizontal bars | |
| d1 = [[0, 18.9],[1, 20.2],[2, 18.1],[3, 20.4],[4, 16.7], [5, 14.6]], // data series | |
| point; // Data point variable declaration | |
| // Draw the graph | |
| Flotr.draw( |
| 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) |