Skip to content

Instantly share code, notes, and snippets.

View andrewhl's full-sized avatar

Andrew Hlavats andrewhl

View GitHub Profile
@andrewhl
andrewhl / 0_reuse_code.js
Created March 27, 2017 21:51
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
@andrewhl
andrewhl / diceroll.rb
Created October 11, 2011 20:36 — forked from rickhull/diceroll.rb
Ruby Koan
module DiceSet
def self.roll(num)
Array.new(num) { 1 + rand(6) }
end
end
DiceSet.roll(20)