This file contains hidden or 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
# List of environments and their heroku git remotes | |
ENVIRONMENTS = { | |
:staging => 'myapp-staging', | |
:production => 'myapp-production' | |
} | |
namespace :deploy do | |
ENVIRONMENTS.keys.each do |env| | |
desc "Deploy to #{env}" | |
task env do |
This file contains hidden or 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
var adjacencyOperators = { | |
append: 'beforeEnd', | |
prepend: 'afterBegin', | |
before: 'beforeBegin', | |
after: 'afterEnd' | |
}; | |
for (key in adjacencyOperators) | |
$.fn[key] = (function(operator) { | |
return function(html){ |
This file contains hidden or 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
#SRC_BASE_DIR = "public/javascripts/backbone" | |
#DEST_BASE_DIR = "app/coffeescripts/backbone" | |
SRC_BASE_DIR = "spec/javascripts" | |
DEST_BASE_DIR = "spec/coffeescripts" | |
JS2COFFEE = "~/node_modules/js2coffee/bin/js2coffee" | |
dirs = [] | |
files = [] | |
Dir.glob("#{SRC_BASE_DIR}/**/*.js").each do |file| |
This file contains hidden or 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
node-inspector & | |
coffee --nodejs --debug app.coffee & | |
google-chrome http://127.0.0.1:8080/debug?port=5858 & | |
google-chrome http://127.0.0.1:3000 & |
This file contains hidden or 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
" tmux will only forward escape sequences to the terminal if surrounded by a DCS sequence | |
" http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinkbdoZ8eNR1X2UobLTeww1jFrvfJxTMfKSq-L%2B%40mail.gmail.com&forum_name=tmux-users | |
if exists('$TMUX') | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
else | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
endif |
This file contains hidden or 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
var fs = require('fs') | |
var vm = require('vm') | |
var handlebarsjs = fs.readFileSync('path/to/handlebars.js', 'utf8') | |
var emberjs = fs.readFileSync('path/to/ember.js', 'utf8') | |
var templatesDir = 'path/to/template/dir' | |
desc('Compile all .handlebars templates') | |
task({ 'handlebars': [] }, function () { | |
process.stdout.write('Compiling .handlebars templates') |
This file contains hidden or 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
sysPath = require 'path' | |
express = require 'express' | |
oauth = require 'oauth' | |
_appSecret = "myawesomesecret" | |
_githubUrl = "https://github.com/login" | |
_githubKey = "xxxxxxxxxxxxxx" | |
_githubSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
_githubCallBack = "http://my.app/signin/callback" |
This file contains hidden or 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
module FactoryGirlStepHelpers | |
def convert_human_hash_to_attribute_hash(human_hash, associations = []) | |
HumanHashToAttributeHash.new(human_hash, associations).attributes | |
end | |
class HumanHashToAttributeHash | |
attr_reader :associations | |
def initialize(human_hash, associations) | |
@human_hash = human_hash |
This file contains hidden or 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
(emacs-version nil) | |
; => | |
;"GNU Emacs 24.0.97.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) | |
; of 2012-05-16 on bob.porkrind.org" | |
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet") | |
; => | |
; ("~/.emacs.d/plugins/yasnippet" "~/.emacs.d/rc-site-lisp" "/Users/cmmagid/.emacs.d/el-get/package/elpa/idle-highlight-mode-1.1.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/rainbow-mode-0.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/ruby-electric-1.1" "/Users/cmmagid/.emacs.d/el-get/package/elpa/save-visited-files-1.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/wrap-region-0.6.0" "/Users/cmmagid/.emacs.d/el-get/yasnippet" "/Users/cmmagid/.emacs.d/el-get/yaml-mode" "/Users/cmmagid/.emacs.d/el-get/vline" "/Users/cmmagid/.emacs.d/el-get/tree-mode" "/Users/cmmagid/.emacs.d/el-get/rinari/util/jump/" ...) | |
(require 'yasnippet) | |
; => |
This file contains hidden or 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
This playbook has been removed as it is now very outdated. |
OlderNewer