Skip to content

Instantly share code, notes, and snippets.

View MrNice's full-sized avatar

Nicholas van de Walle MrNice

View GitHub Profile
@MrNice
MrNice / gist:d78fc685532779d9e09f
Created April 30, 2014 22:22
A simple HTML page that has all of Khan Academy's Culture Cow Blurts for easy consumption
<html>
<head>
<title>List of khanacademy culture things</title>
</head>
<body>
<script>
var culturalMsgs = [
"<a href='https://sites.google.com/a/khanacademy.org/forge/for-developers'>Shipping beats perfection</a>.",
"Iterate on ideas before diving into code. <a href='http://www.designstaff.org/articles/product-design-sprint-day-2-diverge-2012-10-26.html'>Design sprints</a> are being organized by Jason and others and work well for both huge projects and small features.",
"Concerned about the hacks in our code? Upset that the product's not good enough? Have no fear, we're getting better fast. Our site used to <a href='https://s3.amazonaws.com/KA-share/old.png'>look like this</a> and it was generated by one big main.py file.",
@MrNice
MrNice / cycle.js
Created March 11, 2014 03:36
Cycle function for sliderSolve
var cycle = function(moveArray, times, direction) {
var i,
j,
length;
times = times || 1;
direction = direction || 'cw';
for( i = 0 ; i < times; i++ ) {
var copy = moveArray.slice();
@MrNice
MrNice / ajumblefun
Last active December 28, 2015 20:09
Dictionary jumble solver, created at Hack Reactor's Biweekly algorithm meetup. This is a recursive, functional version, which aims to be more legible. It's not.
// Functional Jumble Solver in Javascript!
// Nicholas, Mike, William
// https://github.com/MrNice
// https://github.com/mmessing
// https://github.com/oddalot
//Will add tests and timers later. I want to make this //fast//
var fs = require('fs');
var _ = require('underscore');
@MrNice
MrNice / gist:7150535
Created October 25, 2013 07:07
This is my uploaded cheat sheet to typing.io that I'm using in order to master the most basic of Javascript language declarations. I was told that I should be able to type any one of these fragments in roughly 5 seconds, so I'm aiming for 3 apiece.
//THIS IS MY STUDY SHEET FOR TYPING.IO FOR GETTING INTO HACK REACTOR
//IF ANYONE ELSE EVER SEES THIS< PLEASE BE OK WITH USING IT.
var myFunc = function(arg1, arg2) {
};
for(var i = 0; i< array.length; i++){
};