This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
*.xmind diff=xmind |
#!/usr/bin/env osascript | |
tell application "System Events" to sleep |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
class String | |
def rot13 | |
tr 'abcdefghijklmnopqrstuvwxyz', 'nopqrstuvwxyzabcdefghijklm' | |
end | |
end | |
describe 'String#rot13' do | |
let (:message) { "the quick brown fox jumps over the lazy dog" } | |
let (:encoded) { "gur dhvpx oebja sbk whzcf bire gur ynml qbt" } |
escape ^Z^Z | |
bind z suspend | |
bind ^a other |
def good_or_bad lines, patterns | |
lines.zip(patterns).all? { |(line, pattern)| | |
line.match pattern | |
} | |
end | |
lines = [ "line1", "line2", "line3" ] | |
patterns = [ "pattern1", "pattern2", "pattern3" ] | |
puts lines.zip patterns #=> [["line1", "pattern1"], ["line2", "pattern2"], ["line3", "pattern3"]] | |
good_or_bad lines, patterns #=> false |
#!/bin/sh | |
if ! git diff-tree --quiet $1 $2 -- Gemfile | |
then | |
echo "\nGemfile modified: run \`bundle install\`\n" | |
fi | |
if ! git diff-tree --quiet $1 $2 -- db/migrate db/schema.rb db/structure.sql | |
then | |
echo "\nSchema modified: run \'rake db:migrate\'\n" | |
fi |
http://gitimmersion.com/ | |
http://try.github.com/ | |
http://www.codeschool.com/courses/try-git | |
http://git-scm.com/book |
I am glad that you found your way here. You deserve better than another routine day of drudgery aboard the Stellar Patrol Ship Feinstein. I think we want to work with you.
Detroit Labs is in the business of creating mobile apps. We do this by inviting the best and most interesting people to join our team, and asking them to solve the hard problems that go along with building and shipping software. Since you are reading this, you may be one of those people. I hope so!
// stuff |