Skip to content

Instantly share code, notes, and snippets.

View devilshaircut's full-sized avatar

Jason B. devilshaircut

View GitHub Profile
$(document).ready(function() {
$("#hamburger-icon").click(function() { // When the user clicks the #hamburger-icon HTML element ...
$("body").toggleClass("nav-expanded"); // ... toggle the <body> tag's ".nav-expanded" class on or off.
});
$("nav > ul > li > a").click(function() { // When the user clicks a navigation item in the hamburger menu ...
$("body").removeClass("nav-expanded"); // ... remove the ".nav-expanded" class (if it exists) from the <body> tag.
}); // This makes the menu a bit nicer to interact with for our users.
});
$(window).resize(function() { // When the window resizes ...
@devilshaircut
devilshaircut / gist:dc132d270cd103aa3b5d
Last active August 29, 2015 14:20
Two letter words?
var alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var vowels = ["a", "e", "i", "o", "u", "y", "h"];
var numberOfWords = 0;
var words = [];
var populatePossibilities = function(base) {
var newPossibilities = [];
var baseLength = base.length;
csemjacobs
7:26 Okay, I'm going to head out in a few mins but since I got this topic started. Time to end it with some quick questions.
7:26 1 question per person please.
grimlock
7:26 42
jaironkalach
7:26 pulls up his list and looks for a quick one.
indy
7:26 yellow
7:26 no, blue!