Skip to content

Instantly share code, notes, and snippets.

{{"ActionScript", ".as"},{"C", ".c"},{"Csharp", ".cs"},{"Common_Lisp", ".cl"},{"emacs_lisp", ".sls"},{"erlang", ".hrl"},{"haskell", ".hs"},{"html", ".html"},{"java", ".java"},{"lua", ".lua"},{"objective_c", ".m"},{"perl", ".pl"},{"Scala", ".scala"},{"scheme", ".sls"},{"TeX", ".tex"},{"XML", ".xml"},{"Ada", ".adb"},{"AppleScript", ".scpt"},{"Arc", ".arc"},{"ASP", ".ascx"},{"Assembly", ".asm"},{"Batchfile", ".bat"},{"Befunge", ".befunge"},{"Boo", ".boo"},{"Brainfuck", ".b"},{"C_ObjDump", ".c-objdump"},{"ChucK", ".java"},{"Clojure", ".clj"},{"CoffeeScript", ".coffee"},{"ColdFusion", ".cfm"},{"Cpp_ObjDump", ".cppobjdump"},{"Cucumber", ".feature"},{"D", ".d"},{"D_ObjDump", ".d -objdump"},{"Darcs_Patch", ".darcspatch"},{"Delphi", ".pas"},{"Duby", ".rb"},{"Dylan", ".dylan"},{"Eiffel", ".e"},{"Fsharp", ".fs"},{"Factor", ".factor"},{"FORTRAN", ".f"},{"GAS", ".s"},{"Genshi", ".kid"},{"Gentoo_Ebuild", ".sh"},{"Gentoo_Eclass", ".sh"},{"Gettext_Catalog", ".po"},{"Go", ".go"},{"Groff", ".man"},{"Groovy", ".groovy"},{"Haml"
var data = querystring.stringify({'file_ext[gistfile1]': opt.ext, 'file_name[gistfile1]': opt.file, 'file_contents[gistfile1]': contents })
var request = client.request('POST', '/gists', {
'Host': 'gist.github.com',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': data.length
})
request.end(data)
@chapel
chapel / arena
Created October 7, 2010 10:42 — forked from indexzero/arena
var httpAgent = require('http-agent'),
jsdom = require('jsdom'),
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) {