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
S = require("./support/jsftp/support/streamer/core"); | |
function queue() { | |
var next; | |
var buffer = Array.prototype.slice.call(arguments) | |
function stream($, stop) { next = $; stream._update() } | |
stream._update = function _update() { | |
buffer.push.apply(buffer, arguments) |
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 pasv, pasvReqs; | |
pasvReqs = function(next, stop) { | |
pasv = next; | |
}; | |
pasvReqs(self.processPasv, function(err) { console.log(err) }); | |
var processPasv = function(pasvData) { | |
console.log("PASVDATA", pasvData); |
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
browser.loadJsSelector = function() { | |
return browser.addLocationStrategy("js", function(locator, inWindow, inDocument) { | |
var found; | |
try { | |
found = eval(locator); | |
} catch (e) {} | |
if (found) | |
return found; | |
else |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by Apache CouchDB configure 1.0.2, which was | |
generated by GNU Autoconf 2.61. Invocation command line was | |
$ ./configure --prefix=/usr/local/Cellar/couchdb/1.0.2 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc --with-erlang=/usr/local/lib/erlang/usr/include --with-js-include=/usr/local/include --with-js-lib=/usr/local/lib | |
## --------- ## | |
## Platform. ## |
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 Test = function(){} | |
Test.prototype = { | |
get foo() { | |
return 0; | |
}, | |
set foo(val) { | |
return val; | |
}, | |
} |
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
YUI.add("module1", function(Y) { | |
// Module code here | |
}, "0.0.1", { requires: ["module2"] }); |
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
YUI({ | |
debug: true, | |
groups: { | |
app: { | |
combine: false, | |
base: "src/", | |
modules: { | |
module1: { | |
path: "module1.js", | |
requires: ["module2"] |
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
/* | |
AST tree generated from parsing the following Design By Numbers program: | |
paper 30 | |
repeat A 0 300 | |
{ | |
pen 50 | |
line 0 55 100 55 |
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 Class1 = function() { | |
Class1.superclass.constructor.call(this, config); | |
} | |
Class1.NAME = "class1"; | |
Class1.ATTRS = { | |
//Several Attributes here | |
} | |
Y.extend(Class1, Y.Base, { |
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 hex2rgb = function(color) { | |
var r = color.match(/^#(([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2}))$/i); | |
if (!r) return [0, 0, 0, 255]; | |
return [parseInt(r[2], 16), | |
parseInt(r[3], 16), | |
parseInt(r[4], 16), 255]; | |
} |