As configured in my dotfiles.
start new:
tmux
start new with session name:
source :rubygems | |
gem 'bench_press' | |
gem 'multi_json' | |
gem 'json' | |
gem 'yajl-ruby' | |
gem 'msgpack' | |
gem 'ruby-protocol-buffers' | |
gem 'bson' | |
gem 'bson_ext' |
// format an ISO date using Moment.js | |
// http://momentjs.com/ | |
// moment syntax example: moment(Date("2011-07-18T15:50:52")).format("MMMM YYYY") | |
// usage: {{dateFormat creation_date format="MMMM YYYY"}} | |
Handlebars.registerHelper('dateFormat', function(context, block) { | |
if (window.moment) { | |
var f = block.hash.format || "MMM DD, YYYY hh:mm:ss A"; | |
return moment(context).format(f); //had to remove Date(context) | |
}else{ | |
return context; // moment plugin not available. return data as is. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
# come here mr. ducky, i just want to punch you | |
module Capybara | |
class << self | |
def logger_target | |
@logger_target ||= StringIO.new | |
end | |
attr_writer :backtrace_clean_patterns | |
def backtrace_clean_patterns |
To install redis from debian backports we need to add the backports sources. | |
1. Add to /etc/apt/sources.list: | |
deb http://backports.debian.org/debian-backports squeeze-backports main | |
2. Retrieve debian key | |
$ gpg --keyserver pgp.mit.edu --recv-keys AED4B06F473041FA |
#ifdef _MSC_VER | |
#include <boost/config/compiler/visualc.hpp> | |
#endif | |
#include <boost/property_tree/ptree.hpp> | |
#include <boost/property_tree/json_parser.hpp> | |
#include <boost/foreach.hpp> | |
#include <cassert> | |
#include <exception> | |
#include <iostream> | |
#include <sstream> |
cd ~/Library/Application\ Support | |
mkdir -p Avian/"Pristine Copy"/Bundles | |
cd Avian/Pristine\ Copy/Bundles | |
#clone groovy bundle | |
git clone https://github.com/textmate/groovy.tmbundle.git | |
#clone grails bundle | |
git clone https://github.com/textmate/groovy-grails.tmbundle.git |
{ | |
"ad": [ | |
"42.5000", | |
"1.5000" | |
], | |
"ae": [ | |
"24.0000", | |
"54.0000" | |
], | |
"af": [ |
debugger | |
puts | |
show me the page | |
console.log |