Skip to content

Instantly share code, notes, and snippets.

/*
Script: Event.js
Contains the Browser native event enhancement, to make the event object completely crossbrowser.
License:
MIT-style license.
*/
function Event(event){
if ((event = event || window.event).event) event = event.event;
<?php
class ForgeMDParser
{
var $errors = array();
public function __construct($data){
$this->data = $data;
$this->parse();
<?php
class ForgeMDParser {
protected $data;
protected $xml;
protected $options;
protected $sections = array();
protected $arbitrarySections = array();
// in answer to http://gist.github.com/303362
(function(){
var window,top,self,parent,global;
return eval('window');
}).call({});
(function(){
var window,top,self,parent,global;
return (function(){ return this; })();
}).call({});
var Request = require('express/request').Request,
deflate = require('./support/deflate').deflate,
statusBodies = require('http').STATUS_CODES,
gzipTest = /gzip/,
_long = function(n) {
return String.fromCharCode(n & 0xFF)
+ String.fromCharCode(n >> 8 & 0xFF)
+ String.fromCharCode(n >> 16 & 0xFF)
+ String.fromCharCode(n >> 24 & 0xFF);
guillermo:test rauchg$ git clone git://github.com/LearnBoost/Socket.IO-node.git --recursive
Initialized empty Git repository in /Users/rauchg/test/Socket.IO-node/.git/
remote: Counting objects: 464, done.
remote: Compressing objects: 100% (331/331), done.
remote: Total 464 (delta 214), reused 283 (delta 129)
Receiving objects: 100% (464/464), 67.25 KiB, done.
Resolving deltas: 100% (214/214), done.
Submodule 'lib/vendor/js-oo' (git://github.com/visionmedia/js-oo.git) registered for path 'lib/vendor/js-oo'
Submodule 'test/client' (git://github.com/LearnBoost/Socket.IO.git) registered for path 'test/client'
Initialized empty Git repository in /Users/rauchg/test/Socket.IO-node/lib/vendor/js-oo/.git/
#!/usr/bin/env node
var connect = require('connect'),
cwd = process.cwd(),
sys = require('sys');
var usage = ''
+ '\x1b[1mUsage\x1b[0m: connect [options] [PATH]\n'
+ '\n'
+ '\x1b[1mOptions\x1b[0m:\n'
+ ' -v, --version Output connect version\n'
http://swarmation.com
http://maprejuice.com/
http://demiox-boiko.no.de/
http://piston-hurricane.no.de/
http://nodelicious.no.de/
http://virtual-design.no.de/
http://inflatable-chum.no.de/
http://fragnut.me/
http://braintree.no.de/
http://nodty.no.de/
@rauchg
rauchg / install-cairo.sh
Created November 5, 2010 19:07
How to install
port install cairo
(function () {
mpq = [['init', MIXPANEL_TOKEN]];
var mpmetrics = {}
, methods = ['track', 'track_funnel', 'register', 'register_once'
, 'register_funnel', 'identify'];
for (var i = 0, l = methods.length; i < l; i++)
(function(method) {
mpmetrics[method] = function () {