Skip to content

Instantly share code, notes, and snippets.

View tatiC's full-sized avatar

Tati Carvalho tatiC

  • Untried Possibilities
  • Brasil - Rio de Janeiro
View GitHub Profile
@tatiC
tatiC / gist:3192905
Created July 28, 2012 11:19
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tatiC
tatiC / refactoring_example.rb
Created July 25, 2012 16:41 — forked from mehowte/refactoring_example.rb
Simple refactoring exercises and 2 minute commits version - with updated characterisation tests.
# 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).