Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
set -o vi | |
eval `ssh-agent` | |
ssh-add ~/.ssh/id_rsa | |
export PS1="\w ★ " | |
export LANGUAGE="en" | |
export LANG="C" | |
export LC_MESSAGES="C" |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# autoload concerns | |
module YourApp | |
class Application < Rails::Application | |
config.autoload_paths += %W( | |
#{config.root}/app/controllers/concerns | |
#{config.root}/app/models/concerns | |
) | |
end | |
end |
#!/bin/bash | |
BASEDIR=http://build.chromium.org/f/chromium/snapshots/Mac | |
mkdir -p /tmp/chromium_nightly | |
cd /tmp/chromium_nightly | |
echo "Downloading number of latest revision" | |
REVNUM=`curl -# $BASEDIR/LATEST` | |
echo "Found latest revision number $REVNUM, starting download" |
# Source: http://codekata.pragprog.com/2007/01/kata_two_karate.html | |
# | |
# Method takes an integer search target and a sorted array of integers. | |
# It should return the integer index of the target in the array, or -1 | |
# if the target is not in the array. | |
# | |
# Test data: | |
def test_chop | |
assert_equal(-1, chop(3, [])) |
ActionController::Integration::Session.class_eval do | |
def generic_url_rewriter | |
env = { | |
'REQUEST_METHOD' => "GET", | |
'QUERY_STRING' => "", | |
"REQUEST_URI" => "/", | |
"HTTP_HOST" => host, | |
"SERVER_PORT" => https? ? "443" : "80", | |
"HTTPS" => https? ? "on" : "off", | |
"rack.input" => "wtf" |
" Vim syntax file | |
" Language: HTML (version 5) | |
" Maintainer: Rodrigo Machado <[email protected]> | |
" URL: http://gist.github.com/256840 | |
" Last Change: 2010 Aug 26 | |
" License: Public domain | |
" (but let me know if you liked it :) ) | |
" | |
" Note: This file just adds the new tags from HTML 5 | |
" and don't replace default html.vim syntax file |