Skip to content

Instantly share code, notes, and snippets.

View azurelogic's full-sized avatar

Jessica Ribeiro azurelogic

View GitHub Profile
@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'];