Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blake8086 on github.
  • I am blake8086 (https://keybase.io/blake8086) on keybase.
  • I have a public key ASCJ9bQUy-mn0I4dhINUpEAsu2a2gw4X8Ciy-GU0r4e3gAo

To claim this, I am signing this object:

@blake8086
blake8086 / html.js
Created January 12, 2012 18:19 — forked from jeremyckahn/html.js
This is a dumb JS concept. I think it's been done.
html()
('head')
('title', 'My awesome page')
('body')
('div')
('span', 'I am span contents!')
@blake8086
blake8086 / twitter.js
Created November 17, 2011 23:13
Simple node.js server to stream Twitter 'Spritzer' level stream to client browser
global.server = require('http').createServer(function(request, response) {
global.twitterFeed = require('https').get({
auth: 'username:password',
host: 'stream.twitter.com',
path: '/1/statuses/sample.json',
}, function(res) {
res.setEncoding('utf8');
response.writeHead(200, 'text/plain');
res.on('data', function(chunk) {
response.write(chunk);