Skip to content

Instantly share code, notes, and snippets.

@paopay
paopay / module-pattern
Created April 17, 2014 22:01
module-pattern
https://www.youtube.com/watch?v=qrjBYPp0dak
http://robots.thoughtbot.com/module-pattern-in-javascript-and-coffeescript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Closures
@paopay
paopay / 0.2.1-boggle_class_from_methods.rb
Last active January 2, 2016 13:19 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(*coords)
#map through each row/col coord and return the corresponding letter
#join the array in to a string