Skip to content

Instantly share code, notes, and snippets.

@andrekibbe
andrekibbe / stack.rb
Last active August 29, 2015 14:14 — forked from JoshCheek/stack.rb
# The stack I wrote for http://vimeo.com/26391171
# Note that there is an intentional bug in the each method :)
class Stack
Node = Struct.new :data, :next
def push(data)
@head = Node.new data, @head
end
@andrekibbe
andrekibbe / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console