513,045 falcor.js
278,833 falcor.min.js
276,966 falcor-norx.js
161,130 falcor-norx.min.js
98,226 falcor.js.gz
57,624 falcor-norx.js.gz
54,552 falcor.min.js.gz
32,932 falcor-norx.min.js.gz
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 traverse = require("traverse"); | |
// Traverse object, calculate priority at each level | |
// so order is maintained (barf barf barf) | |
traverse(obj).forEach(function(value) { | |
if(this.isRoot) { | |
priority = 0; | |
return; | |
} |
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 sweetie = Sweetie.globalize(), | |
output = "", | |
start = Date.now(), | |
failures, passed; | |
sweetie.run(function(status, test, args) { | |
if(status === "finish") { | |
output += "\n\nTests completed in " + (Date.now() - start) + "ms"; | |
return JS.reply({ |
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
/*jshint node:true */ | |
"use strict"; | |
var fs = require("fs"), | |
path = require("path"), | |
trumpet = require("trumpet"), | |
Uri = require("jsuri"), | |
tr = trumpet(); | |
tr.pipe(process.stdout); |
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
/*jshint node:true */ | |
"use strict"; | |
var Gaze = require("gaze").Gaze, | |
gaze; | |
// done is ignored | |
module.exports = function(config, done) { | |
gaze = new Gaze("**/*"); | |
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
.cm-s-wombat { | |
line-height: 1.3em; | |
font-family: "Consolas", "Bitstream Vera Sans Mono", "DejaVu Sans Mono", "Monaco", Courier, monospace; | |
} | |
.cm-s-wombat.CodeMirror { | |
background: #242424; | |
color: #F6F3E8; | |
/* text-shadow: 0 -1px 1px #242424; */ | |
} |
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 esprima = require("esprima"), | |
esmangle = require("esmangle"), | |
escodegen = require("escodegen"), | |
src = "var fooga = \"wooga\";\n\nconsole.log(fooga);\n\nfooga += 1;", | |
ast, result; | |
ast = esprima.parse(src, { | |
loc : true, | |
tokens : true, |
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
/*jshint browser:true, yui:true */ | |
YUI.add("plugin-lazy-images", function(Y) { | |
"use strict"; | |
var plugins = Y.namespace("GW2.Plugins"), | |
LazyImages; | |
LazyImages = Y.Base.create("lazyImages", Y.Plugin.Base, [], { | |
// Y.Base lifecycle fns | |
initializer : function() { |
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
/*jshint browser:true, yui:true */ | |
YUI.add("extension-view-classer", function(Y) { | |
"use strict"; | |
var ViewClasser = function() {}; | |
ViewClasser.prototype = { | |
initializer : function() { | |
this._viewClasserHandle = Y.Do.before(this._addViewClasses, this, "render", this); | |
}, |
Wondered what would happen if we tried to be more efficient about variable referencing. Turns out to not be a size savings after gzip, but might be infinitesimally faster to execute due to removing two property lookups.
Original:
document.documentElement.className = document.documentElement.className.replace(/(\s|^)no-js(\s|$)/, '$1' + 'js' + '$2');
121, gzips to 96 (20% smaller)
Compressed: