Skip to content

Instantly share code, notes, and snippets.

View indexzero's full-sized avatar
🗽
✊ Fist in the air in the land of hypocrisy

Charlie Robbins indexzero

🗽
✊ Fist in the air in the land of hypocrisy
View GitHub Profile
@indexzero
indexzero / levenshtein.js
Created May 18, 2011 23:38 — forked from graphnode/levenshtein.js
levenshtein function in javascript
function levenshtein(s1, s2) {
// http://kevin.vanzonneveld.net
// + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)
// + bugfixed by: Onno Marsman
// + revised by: Andrea Giammarchi (http://webreflection.blogspot.com)
// + reimplemented by: Brett Zamir (http://brett-zamir.me)
// + reimplemented by: Alexander M Beedie
// * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld');
// * returns 1: 3
@indexzero
indexzero / nodeconf_2011.md
Created May 6, 2011 23:14 — forked from guybrush/nodeconf_2011.md
a list of slides from nodeconf 2011
@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
//
// Create our type
//
function PreLoader() {
this._queue = [];
this._mime = {};
this._handlers = {};
this._loaded = [];
};
PreLoader.prototype.addFileType = function addFileType(extension,mime) {
- 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
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

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
{
'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"),
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))
}
@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);