$ sed 's/url(([^(]*))/url(<%= asset_path("\1") %>)/g' styles.css > styles.css.erb
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
[{"x"=>1.8733333333333335, | |
"y"=>"1.04", | |
"z"=>"0.08", | |
"label"=> | |
{"color"=>"#4bb2c5", | |
"label"=>"2379 - Other Heavy and Civil Engineering Construction"}}, | |
{"x"=>3.5825000000000005, | |
"y"=>"0.44", | |
"z"=>"0.13", | |
"label"=> |
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
Array.max = (array) -> | |
Math.max.apply Math, array | |
Array.min = (array) -> | |
Math.min.apply Math, array |
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
body { | |
background: #000000 !important; | |
color: #f4f4f4 !important; | |
font-family: helvetica, sans-serif !important; | |
} | |
a:link { | |
color: #61BFC1 !important; | |
font-weight: normal !important; | |
text-decoration:none !important; | |
} |
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
def expensive_method | |
@expensive_method_result ||= expensive_thing | |
end |
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
# **Whereabouts** is a Rails plugin that generates a polymorphic, inheritable | |
# Address model. Install it as a Rails plugin (Rails 3.x+ required) | |
# | |
# rails plugin install http://github.com/yrgoldteeth/whereabouts.git | |
# | |
# The most simple use case creates a has_one relationship with | |
# a generic Address: | |
# | |
# class Foo < ActiveRecord::Base | |
# has_whereabouts |
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
# **Whereabouts** is a Rails plugin that generates a polymorphic, inheritable | |
# Address model. Install it as a Rails plugin (Rails 3.x+ required) | |
# | |
# rails plugin install http://github.com/yrgoldteeth/whereabouts.git | |
# | |
# The most simple use case creates a has_one relationship with | |
# a generic Address: | |
# | |
# class Foo < ActiveRecord::Base | |
# has_whereabouts |
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function elite | |
{ | |
local GRAY="\[\033[1;30m\]" | |
local LIGHT_GRAY="\[\033[0;37m\]" | |
local CYAN="\[\033[0;36m\]" |
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
#directory stuff | |
alias la='ls -a' | |
alias ll='ls -l' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
alias ......='cd ../../../../..' | |
alias .......='cd ../../../../../..' | |
alias ~='cd ~' |