Skip to content

Instantly share code, notes, and snippets.

View Tommy228's full-sized avatar
🦆
quack

Ismaïl Ouazzany Tommy228

🦆
quack
  • Software Engineer @equativ
  • Nantes, France
  • 22:30 (UTC +02:00)
View GitHub Profile
@Tommy228
Tommy228 / async.moon
Created July 6, 2018 21:19
async glua
export class Promise
new: (func) =>
@func = func
start: () =>
baseCoroutine = coroutine.running!
startFunc = () ->
resolve = (...) ->
coroutine.resume(baseCoroutine, ...)
@Tommy228
Tommy228 / maze.ts
Created May 18, 2018 13:06
Example maze file
interface Cell {
N?: boolean;
S?: boolean;
E?: boolean;
W?: boolean;
}
class Maze {
@Tommy228
Tommy228 / comboboxicons.lua
Created September 18, 2017 10:10
DComboBox with icons
local PANEL = {}
function PANEL:Init()
self.Icons = {}
self.IconMaterials = {}
end
function PANEL:SetText(value)
-- add some space for the icon
-- this is really not rigorous