start new:
tmux
start new with session name:
tmux new -s myname
| alias gd="git diff" | |
| alias gc="git clone" | |
| alias ga="git add" | |
| alias gbd="git branch -D" | |
| alias gst="git status" | |
| alias gca="git commit -a -m" | |
| alias gpt="git push --tags" | |
| alias gp="git push" | |
| alias gpr="git pull-request" | |
| alias grh="git reset --hard" |
| function params(fn) { | |
| var str = fn.toString(); | |
| var sig = str.match(/\(([^)]*)\)/)[1]; | |
| if (!sig) return []; | |
| return sig.split(', '); | |
| } | |
| console.api = function(obj){ | |
| console.log(); | |
| var proto = Object.getPrototypeOf(obj); |
| ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config |
| # Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
| describe 'Modal' do | |
| should 'display login errors' do | |
| visit root_path | |
| click_link 'My HomeMarks' | |
| within '#login_area' do | |
| fill_in 'email', with: 'will@not.work' | |
| fill_in 'password', with: 'test' |
| class Management { | |
| static listOfStudents = new ArrayList<Student>(); | |
| public static void main(String[] args) { | |
| School wku = new School("Western Kentucky University"); | |
| Student macha = new Student("macha", 10, 8, wku); | |
| Student mt = new Student("mt", 10, 8, wku); | |
| addStudent(macha); | |
| addStudent(mt); | |
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:16px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script> |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| #!/usr/bin/env ruby | |
| # Script to import tumblr posts into local markdown posts ready to be consumed by Jekyll. | |
| # Inspired by New Bamboo's post http://blog.new-bamboo.co.uk/2009/2/20/migrating-from-mephisto-to-jekyll | |
| # Supports post types: regular, quote, link, photo, video and audio | |
| # Saves local copies of images | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'nokogiri' |
| // Short module explanation // Something to gather my thoughts | |
| // // I think this looks cool. | |
| // | |
| module.exports = the_exported_function // Modules are a function. Always. | |
| // | |
| module.exports.extra = extra // Additional API entry points if | |
| module.exports.other = other // desired. | |
| // | |
| var util = require('util') // Other packages from npm or core | |
| var assert = require('assert') // No comma-first due to lots of |