Skip to content

Instantly share code, notes, and snippets.

@benneuman
benneuman / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 23:09 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
#PSEUDOCODE
#take 'dice_grid' as input to initialize, set @dice_grid = dice_grid
#define #create_word - no longer needs 'board' parameter, can just use @dice_grid. only need *coords param
#define #get_row and #get_col like before, but no 'board' parameter, act on @dice_grid
#define #get_coord: take array.length == 2 as input, return @dice_grid[array[0][array[1]]
class BoggleBoard
def initialize(dice_grid)
@dice_grid = dice_grid
end
what is going on
what is going on
@benneuman
benneuman / jquery_example.html
Created December 20, 2013 22:48 — 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>

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the Socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
.container {
/*
If you have a block-level element of a certain width, margin: 0 auto;
will how you center it inside its parent container.
See: http://bluerobot.com/web/css/center1.html
Don't change the container width.
*/
margin: 0 auto;
.container {
/*
If you have a block-level element of a certain width, margin: 0 auto;
will how you center it inside its parent container.
See: http://bluerobot.com/web/css/center1.html
Don't change the container width.
*/
margin: 0 auto;
@benneuman
benneuman / carousel.js
Last active August 29, 2015 13:56 — forked from ksolo/carousel.js
Image Carousel
@benneuman
benneuman / index.html
Last active August 29, 2015 13:56 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>