Skip to content

Instantly share code, notes, and snippets.

View ursm's full-sized avatar

Keita Urashima ursm

View GitHub Profile
@ursm
ursm / gist:166408
Created August 12, 2009 08:53 — forked from moro/gist:166394
class Array
def to_proc
proc {|o| o.send(*self) }
end
end
# p (1..10).map{|i|i.divmod(2)}
p (1..10).map(&[:divmod,2])
content = "Hello World"
@ursm
ursm / 0_reuse_code.js
Created May 5, 2014 21:16
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