This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.will.karelplusplus; | |
import stanford.karel.SuperKarel; | |
public class KarelPlusPlus extends SuperKarel { | |
private static final long serialVersionUID = 1L; | |
// Turn Right | |
public void turnRight() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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++) { |
NewerOlder