Skip to content

Instantly share code, notes, and snippets.

View ianlivingstone's full-sized avatar
:shipit:
👋

Ian Livingstone ianlivingstone

:shipit:
👋
View GitHub Profile
@ianlivingstone
ianlivingstone / keybase.md
Created February 5, 2015 15:12
keybase.md

Keybase proof

I hereby claim:

  • I am ianlivingstone on github.
  • I am ianlivingstone (https://keybase.io/ianlivingstone) on keybase.
  • I have a public key whose fingerprint is BC52 90C9 E482 BA84 3B15 7B75 D48F 81FA B222 9013

To claim this, I am signing this object:

@ianlivingstone
ianlivingstone / config.json
Created July 5, 2012 18:32
Configuration Load Example
{
"goCrawl":true
}
@ianlivingstone
ianlivingstone / ast_test.py
Created July 9, 2011 18:05
Uses Python AST Module to build a dict/list representaiton of only module/function/classes and then pulls keywords from their docstrings
import ast
import sys
import pprint
import re
type_lookup = {
ast.Module: 'Module',
ast.FunctionDef: 'Function',
ast.ClassDef: 'Class'
}
@ianlivingstone
ianlivingstone / GDBMWrapper.py
Created June 2, 2011 00:52
Python 2.7 GDBM Wrapper
import json
import gdbm
import zlib
class GDBMWrapper (object):
"""
Wrapper around gdbm that provides a better interface and allows you to
store more complex data while maintaining cross language support
through json.