- Jim Weirich: The Building Blocks of Modularity – http://goo.gl/g4Nk
- Jim Weirich: SOLID Ruby – http://goo.gl/z3jd
- Sandi Metz: SOLID Object-Oriented Design – http://goo.gl/PDn6T
- Sandi Metz: Less – The Path to Better Design – http://goo.gl/VuTl4
- Demeter is for Encapsulation – http://is.gd/eeyLx
- Opinionated Modular Code – http://is.gd/eeyXm
- Scaling to Hundreds of Millions of Requests – http://vimeo.com/12814529
- Confident Code – http://goo.gl/VFLX
- Destroy All Software Screencasts – https://www.destroyallsoftware.com/screencasts
- Corey Haines: Fast Rails Tests – http://goo.gl/Va2gb
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
| #!/bin/bash | |
| # | |
| # NOTICE | |
| # A new and updated version of this script is provided at | |
| # https://github.com/codeship/scripts/blob/master/packages/phantomjs.sh | |
| # Please switch to that version instead! | |
| PHANTOMJS_VERSION="1.9.8" | |
| # clean old version and setup directories | |
| rm -rf ~/.phantomjs |
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
| require 'propono' | |
| Propono.config do |config| | |
| config.access_key = "AKIAIPE2MSOM5ZFGQBCQ" | |
| config.secret_key = "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" | |
| config.queue_region = "eu-west-1" | |
| end | |
| require 'twitter' | |
| @twitter = Twitter::REST::Client.new do |config| | |
| config.consumer_key = "OG9Zkag09onRe7b5ZLecO7HGb" |
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
| # Signal catching | |
| def shut_down | |
| puts "\nShutting down gracefully..." | |
| sleep 1 | |
| end | |
| puts "I have PID #{Process.pid}" | |
| # Trap ^C | |
| Signal.trap("INT") { |
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
| require 'net/http' | |
| module Net | |
| class HTTP | |
| class Purge < HTTPRequest | |
| METHOD = "PURGE" | |
| REQUEST_HAS_BODY = false | |
| RESPONSE_HAS_BODY = true | |
| end | |