Skip to content

Instantly share code, notes, and snippets.

@washt
washt / pp
Created Mar 1, 2017 — forked from thiagophx/pp
JSON Pretty Print Stream
View pp
#!/usr/bin/python -u
import sys, json
from pygments import highlight
from pygments.lexers import JsonLexer
from pygments.formatters import Terminal256Formatter
while True:
line = sys.stdin.readline()
if line.strip():
View hrtStatus.js
'use strict';
var _ = require('lodash'),
fs = require('fs'),
ftp = require('ftp'),
moment = require('moment');
var time = moment().format('h:mm:ss');
var newfile = 'logs/hrtrtf_'+ time + '.txt';
View keybase.md

Keybase proof

I hereby claim:

  • I am washt on github.
  • I am tucker (https://keybase.io/tucker) on keybase.
  • I have a public key whose fingerprint is FEB4 C7E7 A9FA 178A F1E5 0736 80F2 35CE D5B0 79F7

To claim this, I am signing this object: