Skip to content

Instantly share code, notes, and snippets.

Janvier P. janvier-ninja

Block or report user

Report or block janvier-ninja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@janvier-ninja
janvier-ninja / gist:a2350c71854f4d3fe9e5bdd6e6b58c60
Created Mar 11, 2018 — forked from nrk/gist:31175
A function in Lua similar to PHP's print_r
View gist:a2350c71854f4d3fe9e5bdd6e6b58c60
-- A function in Lua similar to PHP's print_r, from http://luanet.net/lua/function/print_r
function print_r ( t )
local print_r_cache={}
local function sub_print_r(t,indent)
if (print_r_cache[tostring(t)]) then
print(indent.."*"..tostring(t))
else
print_r_cache[tostring(t)]=true
if (type(t)=="table") then
You can’t perform that action at this time.