⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
"Give a man a fish and he eats for a day. | |
Teach a man to fish and he eats for a lifetime." | |
and the thought which logically followed as a result of the NPR segment: | |
"Give a man internet access and he will forget he's hungry." | |
we can change how we react. | |
The Do Plan, or Why We Know But Don’t Do |
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
Programming: | |
http://programmingisterrible.com/ | |
by Amaury: | |
Documentário: Muito além do peso | |
http://www.youtube.com/watch?v=8UGe5GiHCT4&feature=youtu.be | |
by Maysa: | |
Excelente entrevista de Jorge Wilheim, urbanista, no Roda Viva da TV Cultura. |
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
# This is a refactoring exercise. | |
# | |
# What to do? | |
# | |
# I. Simple refactoring | |
# 1. Look at the code of the class CorrectAnswerBehavior | |
# 2. Try to see what it does by running `ruby refactoring_example.rb` | |
# 3. Record characterisation tests by running `ruby refactoring_example.rb --record` | |
# 4. Make the code beautiful;) | |
# 5. You are allowed to modify only the code between markers (REFACTORING START/REFACTORING END). |
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
# This is a simple refactoring exercise. | |
# | |
# What to do? | |
# | |
# 1. Look at the code of the class CorrectAnswerBehavior | |
# 2. Try to see what it does by running `ruby refactoring_example.rb` | |
# 3. Record characterisation tests by running `ruby refactoring_example.rb --record` | |
# 4. Make the code beautiful;) | |
# 5. You are allowed to modify only the code between markers (REFACTORING START/REFACTORING END). | |
# 6. Test must pass! You can run them with command `ruby refactoring_example.rb --test` |
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
‘Not all those who wander are lost.’ ~J.R.R. Tolkien (:zenhabits) | |
‘Bizarre travel plans are dancing lessons from God.’ ~Kurt Vonnegut (:zenhabits) | |
‘In proportion as he simplifies his life, the laws of the universe will appear less complex, and solitude will not be solitude, nor poverty poverty, nor weakness weakness.’ ~Henry David Thoreau (:zenhabits) | |
"É preciso viver, não apenas existir." (Plutarco) |
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
# aliases | |
# alias scripts="cd /Users/tatic/Dropbox/my_projects/myscripts; ls -la" | |
# alias freeports="scripts;ports >> ports.txt;ruby freeports.rb;rm ports.txt" | |
# by: TatiCarvalho 2012 | |
# In the command-line: freeports | |
# v1.1 |
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
http://stackoverflow.com/questions/6085610/ruby-on-rails-and-rake-problems-uninitialized-constant-rakedsl | |
Rakefile | |
require 'rake' | |
require 'rake/dsl_definition' |
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
refs: https://github.com/defunkt/resque | |
Instalar redis | |
Instalar resque | |
Gemfile: gem 'resque', 'versão', :require => 'resque/server' | |
Criar arquivo: | |
lib/tasks/resque.rake |
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
$ heroku help | |
=== General Commands | |
help # show this usage | |
version # show the gem version | |
login # log in with your heroku credentials | |
logout # clear local authentication credentials | |
list # list your apps |
NewerOlder