Skip to content

Instantly share code, notes, and snippets.

@henryh28
henryh28 / jquery_example.html
Created December 19, 2013 22:35 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@henryh28
henryh28 / 0.2.1-boggle_class_from_methods.rb
Last active December 28, 2015 02:09 — 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(dice_grid) # initializes the boggle board
@board = dice_grid
end
# create_word will return a string of letters based upon user selected set of coordinates
def create_word(*coords) coords.map { |coord| @board[coord.first][coord.last]}.join("") end
def get_row(row) @board[row] end # Returns selected row of the boggle board
def get_col(col) @board.transpose[col] end # Returns selected column of the boggle board