This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Fault": { | |
"Error": [ | |
{ | |
"Message": "An application error has occurred while processing your request", | |
"Detail": "System Failure Error: An unexpected error occurred while accessing or saving your data. Please wait a few minutes and try again. If the problem persists, contact customer support.", | |
"code": "10000" | |
} | |
], | |
"type": "SystemFault" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"excludeFiles": ["node_modules/**"], | |
"esnext": true, | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sync = require("ampersand-sync"); | |
var xhr = require("xhr"); | |
var options = { | |
url: 'http://jsonplaceholder.typicode.com/posts',//a test endpoint | |
headers: { | |
"Content-Type": "application/json" | |
}, | |
json: { | |
foo: "bar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rfc6902 = require("rfc6902"); | |
var starting = { | |
arr: [] | |
}; | |
var goal = { | |
arr: [1,2,3,4,5,6] | |
}; | |
var diff = rfc6902.createPatch(starting, goal); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var View = require("ampersand-view"); | |
var CustomView = View.extend({ | |
initialize: function() { | |
this.on("remove", function() { | |
this.el.innerHTML = "I was removed??" | |
}); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//readStream is a readable input stream; | |
//writeStream is a writable output stream; and | |
//transformStreamsArray is a predefined array with an arbitrary number of transform streams; | |
transformStreamsArray | |
.reduce((previousStream, thisStream) => previousStream.pipe(thisStream), readStream) | |
.pipe(writeStream); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var AmpersandFormView = require("ampersand-form-view"); | |
var AmpersandInputView = require("ampersand-input-view"); | |
var FormView = AmpersandFormView.extend({ | |
fields: function() { | |
return [ | |
new AmpersandInputView({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var WebFont = require("webfontloader"); | |
WebFont.load({ | |
typekit: { | |
id: 'ttn1lqr' | |
}, | |
timeout: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var WebFont = require("webfontloader"); | |
WebFont.load({ | |
typekit: { | |
id: 'xxxxx', | |
}, | |
timeout: 3000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var FormView = require("ampersand-form-view"); | |
var InputView = require("ampersand-input-view"); | |
var SelectView = require("ampersand-select-view"); | |
var Form = FormView.extend({ | |
fields: function() { |
NewerOlder