Skip to content

Instantly share code, notes, and snippets.

@twolfson
twolfson / index.html
Last active August 29, 2015 13:57
Proof of concept for media keys in node-webkit
<!DOCTYPE html>
<html>
<head>
<title>Media key press test</title>
</head>
<body>
<h1>Key pressed</h1>
<p id="output">null</p>
<script>
(function () {
@twolfson
twolfson / npm-debug.log
Created March 12, 2014 06:38
Failed publish to npm on 2014/03/11
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]
2 info using npm@1.4.2
3 info using node@v0.10.22
4 verbose publish [ '.' ]
5 verbose cache add [ '.', null ]
6 verbose cache add name=undefined spec="." args=[".",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
@twolfson
twolfson / index.html
Last active August 29, 2015 13:57
Proof of concept for desktop Pixlr editor
<!DOCTYPE html>
<html>
<head>
<title>Pixlr Editor</title>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
}
@twolfson
twolfson / .gitignore
Last active August 29, 2015 13:57
HipChat icon scraper
node_modules/
@twolfson
twolfson / .gitignore
Last active August 29, 2015 13:57
clippercard.com playground
node_modules/
@twolfson
twolfson / README.md
Created March 18, 2014 09:10
Book publisher of interest

If I were to write a book, publishers that are of interest of me are:

  • O'Reilly
  • 5 simple steps
  • No starch press
  • Dover

I have written this gist since I have decided not to take action on writing a book. But would like to keep a record of the publishers that I would have pursued in such an event.

node_modules/
assets/
@twolfson
twolfson / README.md
Created March 19, 2014 07:57
Fermi estimate of time spent on video games as a child compared to open source

Games: 10 years * 10 hours / day * 300 days / year = 30000

Open source: 3 years * 10 hours / day * 300 days / year = 9000

@twolfson
twolfson / .gitignore
Last active August 29, 2015 13:57
Reverse template proof of concept
node_modules/
@twolfson
twolfson / index.js
Created March 25, 2014 01:12
Modifying eight-track responses
// Inside of a fixed-server
var connections = require('eight-track/lib/connections');
var through = require('through2');
response: function (req, res, next) {
// Forward our request through eight-track
var incomingConn = new connections.IncomingConnection({req: req, res: res});
var externalReq = eightTrack.createExternalRequest(incomingConn);
// Pipe the request through any modifier