Skip to content

Instantly share code, notes, and snippets.

@azurelogic
azurelogic / stepLoggerTest.js
Last active May 18, 2017 16:53
StepLoggerTest
global.logStep = function() {
console.log('Yeah!');
console.log(`event: ${JSON.stringify(event)}`)
}
@azurelogic
azurelogic / keybase.md
Created December 15, 2016 04:43
Keybase verification

Keybase proof

I hereby claim:

  • I am azurelogic on github.
  • I am azurelogic (https://keybase.io/azurelogic) on keybase.
  • I have a public key whose fingerprint is FFAA BC38 1299 E2D9 AA48 2060 F0D2 DEBF 84AF 9C42

To claim this, I am signing this object:

@azurelogic
azurelogic / http.decorator.js
Last active February 25, 2016 21:38
Wrapper for Angular's $http that supports easy cancellation of requests (ES6)
(function () {
angular.module('yourModule')
.decorator('$http', httpConfig);
// Uses the following libs:
// angular-cache: https://github.com/jmdobry/angular-cache
// lodash: https://lodash.com/
// node-uuid: https://github.com/broofa/node-uuid
// I wrap lodash and node-uuid in their own services separately
httpConfig.$inject = ['$delegate', '$q', '$timeout', 'CacheFactory', '_', 'uuid'];