Skip to content

Instantly share code, notes, and snippets.

View reidcovington's full-sized avatar

reidcovington reidcovington

View GitHub Profile
@reidcovington
reidcovington / 0_reuse_code.js
Created June 6, 2014 21:14
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
@reidcovington
reidcovington / 0.2.1-boggle_class_from_methods.rb
Created April 14, 2014 19:55 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
class BoggleBoard
def initialize(board = Array.new(4){Array.new(4)})
@alpha = ("a".."z").to_a
@board = board
end
def new_board #generates new random board
@board.each_index { |row| @board[row].each_index { |col| @board[row][col] = @alpha.sample } }
end