Skip to content

Instantly share code, notes, and snippets.

@ripter
ripter / LICENSE.txt
Created June 27, 2011 15:43 — forked from 140bytes/LICENSE.txt
Set date to the first day of the week
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
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
@ripter
ripter / gist:4270799
Created December 12, 2012 19:29 — forked from hashmal/gist:874792
Added check for boolean.
-- Print contents of `tbl`, with indentation.
-- `indent` sets the initial level of indentation.
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
elseif type(v) == 'boolean' then
09#65#21
06#72#03
Dec 26, 75
Jul 13, 07
Nov 21, 14
15*10*1981
13*02*1992
10#51#16
1964-01-10
06*04*1965