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
Ruby Wins | |
by James CF | |
C#m G#m F#m A | |
Use a block to print your name, | |
Use equality to test the same, | |
Blocks and lambdas you can call, | |
Private methods, send from all. |
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
Ruby Wins | |
by James CF | |
C#m G#m F#m A | |
Use a block to print your name, | |
Use equality to test the same, | |
Blocks and lambdas you can call, | |
Private methods, send from all. |
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
# exhibit a | |
{:conditions => case f.to_s | |
when 'active' then {:state => @@states[2]} | |
when 'disabled' then {:state => @@states[0..1]} | |
when 'all' then {} | |
else {:state => @@states[3]} | |
end} | |
# exhibit b | |
case f.to_s |
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
#!/opt/local/bin/bash | |
# .git/hooks/commit-msg | |
exec < /dev/tty | |
commit_message=$1 | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
branch=${ref#refs/heads/} | |
# Exit if commit message empty |
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
function rmate { | |
if [[ $# -eq 1 ]]; then | |
mate "${1}/app" "${1}/config" "${1}/lib" "${1}/public" "${1}/spec" "${1}/stories" | |
else | |
mate "app" "config" "lib" "public" "spec" "stories" | |
fi | |
} |
NewerOlder