Skip to content

Instantly share code, notes, and snippets.

View indexzero's full-sized avatar
🌎
Always bet on Open Source

Charlie Robbins indexzero

🌎
Always bet on Open Source
View GitHub Profile
var html = "<div><hr>foo<div>bar</div></div>";
var c = -1;
html = html.replace(/\<([^<\>]*)\>/g, function(str, r) {
if(r.indexOf("/") === -1) {
c++;
return "[\"" + r + ((c == 0) ? "\"," : "\"],");
var a = {
x: 1
};
var props = {
x: { value: 1 }
};
var b = Object.create(a);
var c = Object.create(a,b);
@indexzero
indexzero / arena
Created October 7, 2010 05:22 — forked from chapel/arena
var httpAgent = require('http-agent'),
url = require('url'),
sys = require('sys');
exports.start = function () {
var agent = httpAgent.create('www.bungie.net', ['/stats/reach/playergamehistory.aspx?player=thechapel&vc=2']);
agent.addListener('next', function (err, agent) {
var uri = url.parse(agent.current.uri);
exports.dispatch(uri);
var b = new Buffer(256*256)
for (var i = 0 ; i < 256*256 ; i ++) {
b[i] = i % 256
}
var s = b.toString("binary")
var b2 = new Buffer(s, "binary")
for (var i = 0 ; i < 256*256 ; i ++) {
if (b2[i] !== i) console.error("error at 0x"+i.toString(16))
}
{
'We make sure we can talk to Twitter':
/* We'll be using same server for following requests. */
using('api.twitter.com')
.get('/help/test.json')
.expect(200, "ok", "/help/test.json returns 200 and ok")
.get('/help/test.txt')
/* Here we ignore response */
.expect(406, dc.ignore(), "/help/test.txt is not acceptable"),

Game Engines

Name Latest Release Size (KB) License Type Unit Tests Docs Notes
The Render Engine 1.5.3 MIT Cross-browser; extensive API; open-source. 2
gameQuery 0.5.1 CC BY-SA 2.5 Designed to be used with jQuery
gTile 0.0.1 (2008-07-21) Tile based
Akihabara 1.3 GPL2/MIT Classic Repro Intended for making classic arcade-style games in JS+HTML5 3
The Javascript 2D Game Engine GPL Emphasis on gravity/physics/collision detection; uses HTML5 Canvas and ExplorerCanvas for IE support. Focus on limiting CPU usage. 4
The GMP Javascript Game Engine
From 5c5748d3f99f3590b4c149f5758eac970d51682f Mon Sep 17 00:00:00 2001
From: indexzero <charlie.robbins@gmail.com>
Date: Wed, 9 Feb 2011 23:27:25 -0500
Subject: [PATCH] Add mutable, implicit headers for easy middleware
---
lib/http.js | 41 ++++++++++++-
test/simple/test-http-mutable-headers.js | 96 ++++++++++++++++++++++++++++++
2 files changed, 136 insertions(+), 1 deletions(-)
create mode 100644 test/simple/test-http-mutable-headers.js
- Etsy
Buy and sell handmade or vintage items, art and supplies on Etsy. The EBAY of Do it yourself.
- HP-Palm
Everyone knows who this is. Node.js is at the core of WebOS.
- Yammer
Yammer is a inter-company twitter-like tool. This is fast making corporate IM feel very antiquated.
- Joyent
//
// Create our type
//
function PreLoader() {
this._queue = [];
this._mime = {};
this._handlers = {};
this._loaded = [];
};
PreLoader.prototype.addFileType = function addFileType(extension,mime) {
@indexzero
indexzero / jsconf2011-talks.txt
Created May 6, 2011 02:06 — forked from mattpodwysocki/jsconf2011-talks.txt
JSConf talks and resources
Track A
Bytes and Blobs – David Flanagan @__DavidFlanagan
Slides: http://davidflanagan.com/Talks/jsconf11/BytesAndBlobs.html
Conference Wifi Redux - Malte Ubi @cramforce
Sashimi: https://github.com/cramforce/Sashimi
Slides: http://social-traffic.streamie.org/preso/static/#slide1
Run Your JS everywhere with Jellyfish – Adam Christian @admc