Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
JoshCheek / 1503_object_model_notes.md
Last active December 18, 2018 16:53
Object Model Notes for 1503

Object Model

Bindings

  • are nodes in the stack
  • store local_variables
  • have a return value
  • have a self
@arjunvenkat
arjunvenkat / gist:4954644
Created February 14, 2013 17:50
Draw shape challenges
class DrawShape
def line(user_num=9)
"*" * user_num
end
def number_line(input)
input.times do |number|
print number unless number == 0
end
end
@mokagio
mokagio / sticky.css
Created February 26, 2012 20:53
Twitter Bootstrap + Sticky Footer + Fixed Nav Bar
html, body, .container, .content {
height: 100%;
}
.container, .content {
position: relative;
}
.proper-content {
padding-top: 40px; /* >= navbar height */