Skip to content

Instantly share code, notes, and snippets.

View lua-playground's full-sized avatar

lua-playground

View GitHub Profile
@lua-playground
lua-playground / playground.lua
Created August 1, 2019 22:04
Code shared from the Lua Playground(https://lua-playground.abby.md)
function hello_lua()
print "Hello Lua!"
end
hello_lua()
@lua-playground
lua-playground / playground.lua
Created July 14, 2019 09:40
Code shared from the Lua Playground(https://lua-playground.abby.md)
function hello_lua()
print "Hello Lua!"
end
print "123"
@lua-playground
lua-playground / playground.lua
Created December 4, 2018 04:47
Code shared from the Lua Playground(https://lua-playground.abby.md)
function hello_lua()
print "Hello Lua!"
end
hello_lua()
@lua-playground
lua-playground / playground.lua
Created December 4, 2018 04:47
Code shared from the Lua Playground(https://lua-playground.abby.md)
function hello_lua()
print "Hello Lua!"
end
hello_lua()
@lua-playground
lua-playground / playground.lua
Created December 4, 2018 04:47
Code shared from the Lua Playground(https://lua-playground.abby.md)
function hello_lua()
print "Hello Lua!"
end
hello_lua()
@lua-playground
lua-playground / playground.lua
Created November 19, 2018 17:45
Code shared from the Lua Playground(https://lua-playground.abby.md)
function hello_lua()
print "Hello Lua!"
end
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
@lua-playground
lua-playground / playground.lua
Created November 19, 2018 17:43
Code shared from the Lua Playground
function hello_lua()
print "Hello Lua!"
end
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
@lua-playground
lua-playground / playground.lua
Created November 19, 2018 14:06
Code shared from the Lua Playground
function hello_lua()
print "Hello Lua!f"
end
hello_lua()
hello_lua()
@lua-playground
lua-playground / playground.lua
Created November 19, 2018 14:05
Code shared from the Lua Playground
function hello_lua()
print "Hello Lua!f"
end
hello_lua()
hello_lua()
@lua-playground
lua-playground / playground.lua
Created November 19, 2018 14:05
Code shared from the Lua Playground
function hello_lua()
print "Hello Lua!f"
end
hello_lua()
hello_lua()