- 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 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
# default - allows the condition | |
Mocha::Configuration.allow(condition) | |
# just emits a warning when the condition occurs | |
Mocha::Configuration.warn_when(condition) | |
# throws and error when the condition occurs | |
Mocha::Configuration.prevent(condition) |
This file contains 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
sudo scutil --set HostName <host_name> | |
Also, change the name in the "Sharing" preference pane |
This file contains 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
set :application, "myapp" | |
set :keep_releases, 5 | |
# git options | |
set :scm, "git" | |
set :repository, "git://github.com/georgeguimaraes/myapp.git" | |
set :branch, "master" | |
set :deploy_via, :remote_cache | |
# deploy credentials |
This file contains 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
development: &global_settings | |
database: textual_development | |
host: 127.0.0.1 | |
port: 27017 | |
test: | |
database: textual_test | |
<<: *global_settings | |
production: |
This file contains 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
gem list | cut -d" " -f1 | xargs gem uninstall -aIx |
This file contains 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
sudo port -f uninstall installed | |
sudo rm -rf \ | |
/opt/local \ | |
/etc/manpaths.d/macports \ | |
/etc/paths.d/macports \ | |
/Applications/DarwinPorts \ | |
/Applications/MacPorts \ | |
/Library/LaunchDaemons/org.macports.* \ | |
/Library/Receipts/DarwinPorts*.pkg \ |
This file contains 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
SELECT GROUP_CONCAT('kill ',id SEPARATOR '; ') AS kill_list | |
FROM INFORMATION_SCHEMA.PROCESSLIST | |
WHERE command='Sleep'; |
- Slides com temas, cores e efeitos são muito legais mas, a menos que você saiba exatamente como isso vai ficar no projetor, deixe a “tentação” de lado e faça o simples: slide branco, texto preto
- Para código fonte, independente de conhecer ou não o lugar onde será apresentado, sempre utilize fundo branco, texto em tamanho grande (22 ou maior) e um tema como esse: http://yfrog.com/735mfp
- Se utiliza um Mac, uma forma fácil de copiar código fonte com syntax highlighting para os slides é usar o editor TextMate e um bundle chamado Copy as RTF
- Também no Mac, quando conectado ao projetor, é possível modificar o color profile da saída de vídeo, buscando obter uma reprodução mais fiel ao seu monitor. Para isso, após conectado, acesse System Preferences > Displays > Color (aba na janela de configurações do display secundário) e selecionar um profile que se adeque bem
- Como último recurso, é possível inverter as co
This file contains 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 truncate(options = {}) | |
options.reverse_merge!({:length => 50, :omission => "…"}) | |
self.gsub(/^(.{#{options[:length]}}[\w.]*)(.*)/m) {$2.empty? ? $1 : $1 + options[:omission]} | |
end |