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', |
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
"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
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
$.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
<?php | |
/*! | |
* class Is | |
* Provides Static methods to determine the type on an inputted element. | |
* Also exposes functions nessicary to test if [[Type]]. | |
* | |
* Usage:: | |
* if ( Is::_Array($arr) ){...} | |
* | |
* $typeof = Is::_Test($variable); |
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" | |
extend= (inp...)-> | |
output= {} | |
for val1 in inp | |
for key2,val2 of val1 | |
output[key2] = val2 | |
output |
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
### | |
fab Coffee Converter | |
Built in Coffeescript | |
written by Stephen "Rixius" Middleton <Rixius@gmail.com> | |
Released under the MIT liscense <http://www.opensource.org/licenses/mit-license.php> | |
### | |
fab= require 'fab' | |
coffee= require 'coffee' |
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
class foo | |
constructor: ()-> | |
alert 'fooBar' | |
a: -> | |
b: -> | |
c: -> | |
d: -> | |
e: -> | |
f: -> |
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
<?php | |
/*! | |
* class Is | |
* (c) Stephen Middleton 2010 | |
* Liscensed under the MIT Liscense | |
* <http://www.opensource.org/licenses/mit-license.html> | |
* Provides Static methods to determine the type on an inputted element. | |
* Also exposes functions nessicary to test if [[Type]]. | |
* | |
* Usage:: |
OlderNewer