Skip to content

Instantly share code, notes, and snippets.

View tizzo's full-sized avatar
💭
:shipit: 🚀 📦

Howard Tyson tizzo

💭
:shipit: 🚀 📦
View GitHub Profile
@tizzo
tizzo / sleepy.js
Created September 16, 2011 21:15
A service to take a nap
var http = require('http');
var exec = require("child_process").exec;
http.createServer(function (req, res) {
var duration = req.url.substr(1);
exec("sleep " + duration, function (error, stdout, stderr) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('I have slept for ' + duration + ' seconds!\n');
});
).listen(1337, "192.168.56.136");
@tizzo
tizzo / .gitignore
Last active August 29, 2015 14:27
Node.js Streams 2 buffer data and stream all data submitted to date along with new data
node_modules
*.sw*
@tizzo
tizzo / example.js
Created November 12, 2014 03:55
Node.js Enable/disable colors based on process.itTTY
#! /usr/bin/env node
var prettyjson = require('prettyjson');
var someDataStructure = {
firstLevelA: {
secondLevel1: {
thirdLevelA: 'foo',
thirdLevelB: []
}
@tizzo
tizzo / keybase.md
Created October 8, 2014 14:54
keybase.md

Keybase proof

I hereby claim:

  • I am tizzo on github.
  • I am tizzo (https://keybase.io/tizzo) on keybase.
  • I have a public key whose fingerprint is 4F62 22CB B58A B0D2 FAA3 C9F9 AB76 7A52 8616 8F6F

To claim this, I am signing this object: