Skip to content

Instantly share code, notes, and snippets.

@dmyates
dmyates / gist:f98b839bdeafdb2e29a457f654e405fd
Last active April 11, 2018 10:27 — forked from larsch/gist:140038
Treetop parser for Lua objects (limited)
LUAOBJECT_GRAMMAR = %q{
grammar LuaObject
rule luaobj
space value space { def to_ruby; value.to_ruby; end }
end
rule value
nil / float / number / string / table / boolean
end
@dmyates
dmyates / SimpleHTTPServerWithUpload.py
Last active July 9, 2017 10:27 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""