Skip to content

Instantly share code, notes, and snippets.

@anklos
anklos / 0_reuse_code.js
Created January 11, 2016 01:33
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
@anklos
anklos / tasks.rb
Created June 11, 2012 23:33
simple callbacks
module Callbacks
def self.included(base)
base.class_eval do
extend ClassMethods
include InstanceMethods
end
end
module ClassMethods
def define_callback(callback_name)