Skip to content

Instantly share code, notes, and snippets.

@jlongman
jlongman / daturi.py
Last active August 9, 2017 18:24 — forked from josephsu/gist:4481205
decode Data URI to mime and data parts
#!/usr/bin/env python
# Convert a data uri file into the data part
#
# Usage: daturi.py infile
#
# Copy a response from Chrome
# pbaste > foo
# daturi.py foo
# creates foo.mimetype
begin remote
name seiki
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9046 4428
one 596 1606