Skip to content

Instantly share code, notes, and snippets.

@Rami-Sabbagh
Rami-Sabbagh / LuaTable.lua
Last active July 5, 2020 17:03
A lua library that converts tables to Lua code that can be saved
local LuaTable = {
_VERSION = 'LuaTable v1.0.2 2016/08/27',
_AUTHOR = 'RamiLego4Game',
_URL = 'https://gist.github.com/RamiLego4Game/f656f5c1a118f77c3b7a08f4c65efaaf',
_DESCRIPTION = 'A library that converts tables to Lua code that can be saved',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2016 Rami Sabbagh
@slzatz
slzatz / font.py
Last active January 28, 2020 12:39
I2C driver for micropython esp8266 ssd1306 OLED (ssd1306a.py is paired down and works with the font.py file to allowing generating text)
# Originally from https://github.com/guyc/py-gaugette/blob/master/gaugette/font5x8.py
# Contains ASCII 32 (space) through ASCII 90 (Z)
cols = 5
rows = 8
bytes = [
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0x00, 0x00,
0x00, 0x07, 0x00, 0x07, 0x00,
0x14, 0x7F, 0x14, 0x7F, 0x14,
@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()