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
$.get('url', function(data){ | |
//data is a JSON Array ['0','1','2'] | |
var end = $('<div>'); | |
end.append('<ul>') | |
//add the <ul> and traverse into it | |
.children(':last') | |
.append( | |
//make the anonymous function | |
(function(){ | |
var x = -1, |
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 fab = require('./'); | |
for (var i in fab){ | |
global[i] = fab[i]; | |
} | |
require('http').createServer( | |
( fab ) | |
( nodejs ) | |
( contentLength ) |
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
"use strict"; | |
/*! | |
* pass it the string for a require and the object you want to fill with the require; | |
* ie: | |
* var import = require('import').imp; | |
* import('sys', global); | |
* puts('Test'); | |
*/ | |
exports.imp = function(trgt, obj){ |
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
/home/rixius/node/fab/apps/fab.nodejs.js:19 | |
method: request.method, | |
^ | |
TypeError: Cannot read property 'method' of undefined | |
at Function.<anonymous> (/home/rixius/node/fab/apps/fab.nodejs.js:19:24) | |
at Server.<anonymous> (/home/rixius/node/fab/apps/fab.nodejs.js:15:21) | |
at Server.emit (events:33:26) | |
at HTTPParser.onIncoming (http:825:10) | |
at HTTPParser.onHeadersComplete (http:87:31) | |
at Stream.ondata (http:757:22) |
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
/* | |
* Copyright (c) 2010 Tobias Schneider | |
* This script is freely distributable under the terms of the MIT license. | |
*/ | |
(function(){ | |
var UPC_SET = { | |
"3211": '0', | |
"2221": '1', | |
"2122": '2', |
NewerOlder