Skip to content

Instantly share code, notes, and snippets.

vagrant [example]> cd ..
vagrant [vagrant]> irb
2.3.0 :001 > def greeting(name, relationship)
2.3.0 :002?> " Hi #{name} , thank you for being my #{relationship}
2.3.0 :003"> end
2.3.0 :004"> greeting(Alicia, sister)
2.3.0 :005"> greeting("Alicia", "sister")
2.3.0 :006">
2.3.0 :006?> ^C
@liveseasonal
liveseasonal / gist:a9129ad3fa7a5ccc5bb25c9d3b1674d4
Created May 20, 2016 01:59 — forked from lucasfais/gist:1207002
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
@liveseasonal
liveseasonal / gist:bcddaf55de0b0d621cf59481290e8bca
Created April 26, 2016 18:38
Interactive Ruby (Practice)
2.3.0 :002 >
vagrant [example]> pry
[1] pry(main)> def say_hi(name)
[1] pry(main)* "Hi, #{name}"
[1] pry(main)* end
=> :say_hi
[2] pry(main)> say_hi("Josh")
=> "Hi, Josh"
[3] pry(main)>
[4] pry(main)>