Skip to content

Instantly share code, notes, and snippets.

View wtfaremyinitials's full-sized avatar

Will Franzen wtfaremyinitials

View GitHub Profile
@wtfaremyinitials
wtfaremyinitials / timeago.js
Created September 25, 2014 19:00
Meteor timeAgo
/*
* Meteor timeAgo helper
* by
* MIT License
*/
UI.registerHelper('formatTimeAgo', function(timestamp, options) {
var minute = 60;
var hour = minute * 60;
var day = hour * 24;
var week = day * 7;
@wtfaremyinitials
wtfaremyinitials / KarelPlusPlus.java
Last active August 29, 2015 14:04
KarelPlusPlus.java
package xyz.will.karelplusplus;
import stanford.karel.SuperKarel;
public class KarelPlusPlus extends SuperKarel {
private static final long serialVersionUID = 1L;
// Turn Right
public void turnRight() {
@wtfaremyinitials
wtfaremyinitials / maze.js
Created June 5, 2014 00:35
Maze solver in NodeJS for /r/dailyprogrammer challenge
// My solution to this /r/dailyprogrammer challenge on reddit (http://redd.it/278ptv)
process.stdin.resume();
process.stdin.setEncoding('utf8');
var width = 0;
var height = 0;
var maze = [];
function getStartPoint() {
for(var x = 0; x < maze.length; x++) {