Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Hlavats andrewhl

View GitHub Profile
@andrewhl
andrewhl / 0_reuse_code.js
Created Mar 27, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View diceroll.rb
module DiceSet
def self.roll(num)
Array.new(num) { 1 + rand(6) }
end
end
DiceSet.roll(20)