Skip to content

Instantly share code, notes, and snippets.

View JohnCashmore's full-sized avatar

John Cashmore JohnCashmore

View GitHub Profile

Keybase proof

I hereby claim:

  • I am johncashmore on github.
  • I am johncashmore (https://keybase.io/johncashmore) on keybase.
  • I have a public key ASDlEB1RmVRFfGh2Hh0zidrLPhDE7e23YmYAYWBIGn47dQo

To claim this, I am signing this object:

!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)o[f=i[c]]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++)0!==o[t[i]]&&(n=!1);n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={0:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"st

Keybase proof

I hereby claim:

  • I am johncashmore on github.
  • I am johncashmore (https://keybase.io/johncashmore) on keybase.
  • I have a public key ASDnTkdnDzSVBs4kvaHmKt0Ugxh0eoGQoDzv1GROpFK3ZQo

To claim this, I am signing this object:

@JohnCashmore
JohnCashmore / helper-each_random.js
Created August 10, 2015 14:01
Random each helper for handlebars and assemble.
module.exports.register = function(Handlebars, options, params) {
function shuffle(array) {
var currentIndex = array.length, temporaryValue, randomIndex ;
while (0 !== currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;