Skip to content

Instantly share code, notes, and snippets.

View zhang1career's full-sized avatar

rongjin zhang zhang1career

View GitHub Profile
@zhang1career
zhang1career / rPrint example.txt
Last active June 16, 2016 04:00 — forked from stuby/rPrint example.txt
This is a handy recursive data printer.
> rPrint({first={true,1.3,"abc",{1,2,5}},22,33,last={nil,5},2},nil,"Junk", ngx.say)
Junk table
Junk [1] number 22
Junk [2] number 33
Junk [3] number 2
Junk [last] table
Junk [last] [2] number 5
Junk [first] table
Junk [first] [1] boolean true
Junk [first] [2] number 1.3