Skip to content

Instantly share code, notes, and snippets.

@mjohnsullivan
mjohnsullivan / locksmith_client.py
Created January 26, 2012 13:20
Uploading and Accessing KDMs in Locksmith
"""
Remote API wrapper for Locksmith
"""
import urllib
import urllib2
import json
LOCKSMITH_HOST = 'https://locksmith.artsalliancemedia.com'
@mjohnsullivan
mjohnsullivan / named_struct.rb
Created May 2, 2011 14:25
Ruby Struct utilities: use named parameters to create Struct-based objects and return JSON from Structs
# Struct utilities
# Author:: Matt Sullivan (mailto:[email protected])
# Attempt to require Ruby Gems; 1.8.X gem support only
begin
require 'rubygems'
rescue LoadError
# Ruby Gems not installed
end