Skip to content

Instantly share code, notes, and snippets.

View nick-wireless's full-sized avatar

Nick Hanigan nick-wireless

  • Darwin, Australia
View GitHub Profile
@nick-wireless
nick-wireless / app.js
Created October 5, 2018 20:58
Renaming save, as a separate method.
/*global jQuery, Handlebars, Router */
jQuery(function ($) {
'use strict';
Handlebars.registerHelper('eq', function (a, b, options) {
return a === b ? options.fn(this) : options.inverse(this);
});
var ENTER_KEY = 13;
var ESCAPE_KEY = 27;
@nick-wireless
nick-wireless / gist:41405eea8a4987ccaba0b6d72878fca8
Last active September 26, 2018 12:02
Improving runWithDebugger
function runWithDebugger(callback, arg1) {
if (Array.isArray(arg1)) {
debugger;
return callback.apply(null, arg1);
} else {
debugger;
return callback(arg1);
}
};