Skip to content

Instantly share code, notes, and snippets.

$.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,
var fab = require('./');
for (var i in fab){
global[i] = fab[i];
}
require('http').createServer(
( fab )
( nodejs )
( contentLength )
"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){
/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)
/*
* 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',