Skip to content

Instantly share code, notes, and snippets.

@johnhunter
johnhunter / createQueue.js
Created April 5, 2014 12:28
ease the pain of nested callbacks on animation
/*
createQueue - ease the pain of nested callbacks on animation
*/
function createQueue (stepCallback) {
var queue = [];
var isPaused;
var totalSteps = 0;
@johnhunter
johnhunter / main.js
Created January 21, 2014 16:21
Simple node require example
/* jshint node:true, es3:false */
// we need some complex maths functions :)
var maths = require('./maths');
console.log(maths.XplusY(2, 4));
console.log(maths.XtimesY(2, 4));
{% for category, articles in categories %}
<h2><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></h2>
<ul>
{% for article in articles %}
<li><a href="{{ SITEURL }}/{{ article.url }}">{{ article }}</a></li>
{% endfor %}
</ul>
{% endfor %}