Skip to content

Instantly share code, notes, and snippets.

View pdswan's full-sized avatar

Peter Swan pdswan

View GitHub Profile
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@pdswan
pdswan / slide_10.rb
Last active December 31, 2015 04:19 — forked from anonymous/slide_10.rb
class Car
def initialize(model, engine = ::Engine.new)
@model = model
@engine = engine
end
def running
engine.running
end