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 http = require( "http" ) | |
, puts = require( "sys" ).puts | |
, str = "?token=xxx&apiKey=xxx" | |
, request = http | |
.createClient( 80, "rpxnow.com", true ) | |
.request( "POST", "/api/v2/auth_info", { | |
host: "rpxnow.com", | |
"content-length": str.length | |
}); | |
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 x = get; |
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
// just an idea for now | |
with( fab = require( "fab" ) ) | |
with( fab.html ) | |
module.exports = fab | |
() | |
( /^\// ) |
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
with ( require( "fab" ) ) | |
( fab ) | |
( require ) | |
( "html" ) | |
( "nodejs" ) | |
( "googleAnalytics" ) | |
() | |
( globalize, html ) |
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 = require( "fab" ); | |
appCount = 79353; | |
with ( fab ) | |
( fab ) | |
( import, html ) | |
( listen, 0xFAB ) | |
( route, /^\/$/ ) |
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
require("url").parse("//google.com"); | |
// { href: '//google.com' | |
// , pathname: '//google.com' | |
// } |
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 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 max = 1000000 | |
, fn = function fn(a,b,c,d,e){} | |
, jedTime | |
, higginsTime | |
, t = new Date; | |
for ( var i = max; i--; ) schmidt( fn ); | |
jedTime = new Date - t; | |
t = new Date; |
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
{1:"createElement",2:"createAttribute",3:"createTextNode",8:"createComment",11:"createDocumentFragment"} | |
",Element,Attribute,TextNode,,,,,Comment,,,DocumentFragment".replace(/\b\w/g,"create$&").split(",") |
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
function invert( index, fn ) { | |
var key = index.length, val | |
if ( key > 0 ) while ( key-- ) this[ val = index[ key ] ] = fn ? fn( val, key ) : key | |
else for ( key in index ) this[ val = index[ key ] ] = fn ? fn( val, key ) : key | |
return this | |
} |