Skip to content

Instantly share code, notes, and snippets.

@mkalas
mkalas / LICENSE.txt
Created August 14, 2012 04:29 — forked from jed/LICENSE.txt
write contextual templates
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@mkalas
mkalas / validate_json.py
Created February 26, 2012 22:51
Python JSON validator
#!/usr/bin/env python
"""
Example usage:
$ f=`cat test.json`; echo -e "$f"; python validate_json.py "$f"
{
"foo": true,
"bar": false,
baz: -23
}
Invalid JSON