Skip to content

Instantly share code, notes, and snippets.

@justgord
justgord / jsonpath.js
Created September 5, 2011 05:46
handy command line util for looking into JSON files - based on JSONPath npm module
#!/usr/bin/env node
var fs = require('fs');
var jsonpath = require('JSONPath');
if (process.argv.length<3)
{
console.log('usage: jsonpath json_filename json_path_expr');
exit;
#!/usr/bin/env python
"""
Plot histogram from list of dates
Usage
=====
Feed newline separated unix time via STDIN.
Ex.1: plot repository activity::
#
# zsh script to show how long a command took to run
# put in your .zshrc
#
BG_BLUE='\e[0;44m'
OCOLOR='\e[0m'
BOLD='\e[1;39m'
prompt_command_start=0
show_time_threash=5