Skip to content

Instantly share code, notes, and snippets.

@plumlee
plumlee / login.js
Created March 14, 2016 09:49
Intern before/after working with promises
// Specs should be written in the 'object' format
// provided by intern. See an example here:
// https://github.com/theintern/intern/wiki/Writing-Tests-with-Intern#functional
// CommonJS style modules need this prefix
// when included below in the define
// 'intern/dojo/node!../modules/modulename'
// For a more comprehensive example of testing, see
// https://bitbucket.org/ebus/oneamerica/pull-request/21/automate-running-the-functional-tests
// 13e735e3ae85a06154b83ac0048bf1af17171e82
!function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return r(n?n:e)},l,l.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){!function(i,r){if("function"==typeof define&&define.amd)define(["backbone","underscore","backbone.wreqr","backbone.babysitter"],function(e,t){return i.Marionette=r(i,e,t)});else if("undefined"!=typeof n){{var o=e("backbone"),s=e("underscore");e("backbone.wreqr"),e("backbone.babysitter")}t.exports=r(i,o,s)}else i.Marionette=r(i,i.Backbone,i._)}(this,function(e,t,n){"use strict";function i(e,t){var n=new Error(e);throw n.name=t||"Error",n}var r=e.Marionette,o=t.Marionette={};o.VERSION="2.0.3",o.noConflict=function(){return e.Marionette=r,this},o.Defer
@plumlee
plumlee / gist:9529920
Created March 13, 2014 14:51
Instapaper chrome extension error
Refused to load the script 'https://www.instapaper.com/j_ext?u=https%3A%2F%2Fgithub.com%2Fmarmelab%2Fgremlins.js&t=1394722090812' because it violates the following Content Security Policy directive: "script-src https://github.global.ssl.fastly.net https://ssl.google-analytics.com https://collector-cdn.github.com".