Skip to content

Instantly share code, notes, and snippets.

View Andre-LA's full-sized avatar

André L. Alvares Andre-LA

View GitHub Profile
@riidom
riidom / user.lua
Last active April 10, 2017 07:12
ZBS config file "user.lua"
--[[--
Use this file to specify System preferences.
Review [examples](+C:\Dokumente und Einstellungen\dr\Desktop\ZeroBraneStudioEduPack-0.38-win32\cfg\user-sample.lua) or check [online documentation](http://studio.zerobrane.com/documentation.html) for details.
--]]--
local G = ...
styles = G.loadfile('cfg/tomorrow.lua')('Zenburn') -- theme
@josefnpat
josefnpat / fooclass.lua
Last active March 12, 2016 14:49
Lua 5.1 OOP example
local fooclass = {}
function fooclass:setColor(color)
self.color = color
end
function fooclass:getColor()
return self.color
end
@perky
perky / ProFi.lua
Created May 30, 2012 20:32
ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
--[[
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php.
Example:
ProFi = require 'ProFi'
ProFi:start()
some_function()
another_function()
coroutine.resume( some_coroutine )
ProFi:stop()