Skip to content

Instantly share code, notes, and snippets.

@dslachtman
dslachtman / jquery_example.html
Last active December 31, 2015 23:19 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.js"></script>
</head>
@dslachtman
dslachtman / gist:7795171
Created December 4, 2013 20:43
hacker news css
body { font-family:Verdana; font-size:10pt; color:#828282; }
td { font-family:Verdana; font-size:10pt; color:#828282; }
.admin td { font-family:Verdana; font-size:8.5pt; color:#000000; }
.subtext td { font-family:Verdana; font-size: 7pt; color:#828282; }
input { font-family:Courier; font-size:10pt; color:#000000; }
input[type="submit"] { font-family:Verdana; }
textarea { font-family:Courier; font-size:10pt; color:#000000; }
@dslachtman
dslachtman / gist:7795156
Created December 4, 2013 20:42
hacker news html
<html>
<head>
<link rel="stylesheet" type="text/css" href="news.css?dHfgaRhGq5610xS7bMsD">
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript">
function byId(id) {
return document.getElementById(id);
}
function vote(node) {
@dslachtman
dslachtman / gist:7722349
Last active December 29, 2015 20:09
SQL zoo

Imgur

@dslachtman
dslachtman / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 15:48 — 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)
@boggle_board = dice_grid
end
def create_word(*coords)
coords.map { |coord| @boggle_board[coord.first][coord.last]}.join("")
end