This file contains 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
<html> | |
<body> | |
<div> | |
Starting Quota: | |
<span id="startingQuota"></span> | |
</div> | |
<div> | |
Blob Size: | |
<span id="blobSize"></span> | |
</div> |
This file contains 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 httpProxy = require('http-proxy'); | |
// | |
// Addresses to use in the round robin proxy | |
// | |
var addresses = [ | |
{ | |
host: '192.241.227.80', | |
port: 80 | |
}, |
This file contains 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
{ | |
"attributes": { | |
"type": "Product2", | |
"url": "/services/data/v27.0/sobjects/Product2/01t50000001D9aiAAC" | |
}, | |
"Unit__r": { | |
"attributes": { | |
"type": "Unit__c", | |
"url": "/services/data/v27.0/sobjects/Unit__c/a2J500000008ZWTEA2" | |
}, |
This file contains 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
// wrap canvas with Display and initialize | |
var display = new Display(this.canvas); | |
display.init(); | |
// Initialize ParticleSystem and init with display | |
var particleSystem = new ParticleSystem().init(display); | |
// set an upper limit for total number of particles | |
particleSystem.maxParticles = 10000; |
This file contains 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
// plateconf.js | |
var plate = require('plate') | |
Loader = require('plate/lib/plugins/loaders/filesystem').Loader, | |
path = require('path'), | |
plateUtils = require('./node_modules/plate/lib/utils'); | |
// plate template rendering | |
var stringifyFilter = function(callback, input) { | |
callback(null, new plateUtils.SafeString(JSON.stringify(input))); | |
} |
This file contains 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
(function() { | |
'use strict'; | |
// initialize namespace (arbitrary 'ns' for namespace) | |
window.ns = { | |
models: {}, | |
views: {}, | |
collections: {} | |
}; |
This file contains 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
(function() { | |
console.log('this is a test'); if (true) { // do something loooooooooong here } else { // more long stuff } | |
})(); |