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 serializeDOM = function (dom) { | |
var result = []; | |
result.push(dom.tagName.toLowerCase()); | |
if (dom.id) { | |
result.push('id="' + dom.id + '"'); | |
} | |
if (dom.className) { | |
result.push('class="' + dom.className + '"'); | |
} | |
return '<' + result.join(' ') + '>'; |
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
#!/usr/bin/env node | |
var exec = require('child_process').exec; | |
var deleted_modules = ["abril-fatface", "ada", "after-time", "alert", "andthen", "anglicize", "ansi-codes", "atbash", "attr", "attrs", "available-slug", "background-image", "ballet", "binding", "bind-key", "blending-modes", "boxcars", "brick", "brick-browser", "brick-browserify-plugin", "brick-node", "browserify-length", "bud", "bud-babelify", "bud-browserify", "bud-concat", "bud-indexhtml", "bud-live-server", "call-all", "categorize-files", "center-box", "centered", "centered-cover-background", "change-object", "change-object-path", "checkfor", "circle", "cli-form", "cli-qa", "combiner", "comma-list", "comp", "concat", "config-doc", "core-modules", "cover-background", "create-temp-dir", "debounce-fn", "declarative-js", "default-debug", "delegate-dom", "dom-children", "dom-classes", "dom-event", "domflow", "domquery", "dom-select", "dom-style", "dom-tree", "dom-value", "door", "duba", "eksi-server", "eksi-sozluk", "english-time", "environ", "ever |
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
(function ($) { | |
/** | |
* utility plugin for working on aria-attributes. | |
* the way it's returning the value is same as .attr(), meaning | |
* getter only works for the first matched but setter will set | |
* all matched elements. | |
* aria attributes | |
* | |
* TODO | |
* - massage get/set val types, according to |
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
It took 2.31 seconds to enumerate untracked files. 'status -uno' | |
may speed it up, but you have to be careful not to forget to add | |
new files yourself (see 'git help status'). |
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
'use strict'; | |
var assert = require('assert'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var shell = require('shelljs'); | |
var DIR_ETSYWEB = path.join(process.env.HOME, 'development', 'Etsyweb'); | |
var find_sprockets = require(path.join(__dirname, '../../lib/dependency/find_sprockets.js')); |
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
lib/builda.js:24: logger: function (namespace, pretty) { | |
watcher.js:120: log = builda.utils.logger("", argv.pretty), | |
worker.js:47://var log = builda.utils.logger(namespace); | |
worker.js:256: log = builda.utils.logger(namespace, conf.pretty); |
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
builda_version.js:3:var path = require('path'); | |
builda_version.js:8: json_package = require(path_package_json); | |
lib/build_queue.js:18:var builda = require('./builda.js'); | |
lib/build_queue.test.js:13:var builda = require('./builda.js'); | |
lib/builda.js:3:require('date-utils'); // Date.prototype.toFormat | |
lib/builda.js:5:var path = require('path'), | |
lib/builda.js:6: requirejs = require('requirejs'), | |
lib/builda.js:7: sprockets = require('./sprockets'), | |
lib/builda.js:8: _ = require('underscore'), | |
lib/builda.js:12: config = { requirejs: {} }, |
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
lib/_debugger.js:24: net = require('net'), | |
lib/child_process.js:24:var net = require('net'); | |
lib/cluster.js:24:var net = require('net'); | |
lib/dgram.js:45: net = require('net'); | |
lib/dns.js:23: net = require('net'), | |
lib/http.js:23:var net = require('net'); | |
lib/net.js:22:var events = require('events'); | |
lib/net.js:23:var stream = require('stream'); | |
lib/net.js:24:var timers = require('timers'); | |
lib/net.js:25:var util = require('util'); |
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 cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
var master_event = ['fork', 'online', 'listening', 'disconnect', 'exit', 'setup', 'message']; | |
if (cluster.isMaster) { | |
master_event.forEach(function(key) { | |
switch(key) { | |
case 'setup': |
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
function shuffle(array) { | |
var m = array.length, t, i; | |
// While there remain elements to shuffle… | |
while (m) { | |
// Pick a remaining element… | |
i = Math.floor(Math.random() * m--); | |
// And swap it with the current element. |