Skip to content

Instantly share code, notes, and snippets.

View No9's full-sized avatar
🦀
Rusting with a slight chance of code

Anton Whalley No9

🦀
Rusting with a slight chance of code
View GitHub Profile
@No9
No9 / gist:3217890
Created July 31, 2012 15:37
Google IO 2012 Breaking the JavaScript Speed Limit with V8
@No9
No9 / gist:3184960
Created July 26, 2012 22:24
WebOS Emulator on Ubuntu 12.04 Notes

Getting WebOS up and running on Ubuntu 12.04

These notes are a direct copy from my open tabs and command line when I successfully got the emulator up and running. I may have missed something so please add your findings.

Install Python2.6

http://askubuntu.com/questions/125342/how-can-i-install-python-2-6-on-12-04

$ sudo add-apt-repository ppa:fkrull/deadsnakes
$ sudo apt-get update
var app = require('http').createServer(handler)
, fs = require('fs')
app.listen(8090);
function handler (req, res) {
fs.readFile(__dirname + '/index.html',
function (err, data) {
if (err) {
res.writeHead(500);
@No9
No9 / Harmon.js
Created May 28, 2012 21:11
A sample implementation of trumpet in nodejistsu http-proxy
var http = require('http'),
httpProxy = require('http-proxy'),
trumpet = require('trumpet');
httpProxy.createServer(
function (req, res, next) {
var _write = res.write;
res.write = function (data) {