Skip to content

Instantly share code, notes, and snippets.

View brookr's full-sized avatar
💭
🚀

Brook Riggio brookr

💭
🚀
View GitHub Profile
@brookr
brookr / hashlist.js
Last active December 16, 2018 17:44
'use strict';
class Node {
constructor(val, nxt = null) {
this.value = val;
this.next = nxt;
}
}
class LinkedList {
@brookr
brookr / top-nav.css
Created November 17, 2018 08:30 — forked from stephanielingwood/top_nav.css
CSS styling template for a nav bar on the top
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
width: 800px;
height: 100%;
@brookr
brookr / left-nav.css
Last active November 17, 2018 08:29 — forked from stephanielingwood/gist:4e3d06d284c82ec057a7
CSS template for nav bar on the left
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
height: 100%;
}
Verifying my Blockstack ID is secured with the address 1CEM4cy211TVPuDz1r7ry6b4PN9muGN4nm https://explorer.blockstack.org/address/1CEM4cy211TVPuDz1r7ry6b4PN9muGN4nm
@brookr
brookr / deck-o-cards.html
Last active August 27, 2015 01:19
Example shuffle algo in jQuery
<!doctype html>
<html>
<head>
<title>
Deck of Cards
</title>
<style>
body {
font-family: arial;
}
<!DOCTYPE html>
<html>
<head>
<title>Rick's Top Pot Solution</title>
<style type="text/css">
body {
color: #222;
}
li {
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Guessing Age in Durations</title>
<meta name="description" content="Guessing, Game, Age">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
@brookr
brookr / game.html
Created May 11, 2015 19:32
Example JS game
<script type="text/javascript">
var guess, answer, message;
answer = Math.floor(Math.random() * 100) + 1;
console.log(answer);
guess = prompt("What do you choose? 1-100?");
if (guess == answer) {
message = "Good guess, you're right!";
} else {
@brookr
brookr / bst.coffee
Last active August 29, 2015 14:08 — forked from philwilt/bst
class BinarySearchTree
constructor: () ->
@val = null
@size = 0
@right = null
@left = null
insert: (val) ->
if @val == val