Tuesday, July 24, 2012

Stick figure gets it.







Monday, July 23, 2012

Follow the eyes


Friday, July 20, 2012

KEEP PYTHON WEIRD


Friday, July 13, 2012

pretty print json

Pretty Print JSON

How to pretty print json from the command line?

$ echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool
{
    "bar": "ipsum", 
    "foo": "lorem"
}

$ python -mjson.tool < /tmp/input.json 
{
    "bar": "ipsum", 
    "foo": "lorem"
}

$ curl http://rene.f0o.com/~rene/json_example.json | python -mjson.tool
{
    "bar": "ipsum", 
    "foo": "lorem"
}