Skip to content

Instantly share code, notes, and snippets.

@mooreatv
mooreatv / HybridScrollDemo.lua
Created October 10, 2019 23:36 — forked from Meorawr/HybridScrollDemo.lua
HybridScrollFrame Demo
local function CreateDemoModel(numItems)
local listModel = {};
for index = 1, numItems do
table.insert(listModel, {
text = string.format("List Item %1$d", index),
icon = string.format([[Interface\Icons\INV_Sword_%1$d]],
30 + (index % 30)),
});
end
------------------------------------------------------------------------------
-- DevToolsFrameStack.lua
--
-- Frame stacking monitor
--
-- Globals: DevTools, SLASH_DEVTOOLS_FRAMESTACK1
-- Globals: BINDING_HEADER_DEVTOOLS
-- Globals: BINDING_NAME_DEVTOOLS_FRAMESTACK_*
---------------------------------------------------------------------------
@mooreatv
mooreatv / LibDSA.lua
Created June 1, 2019 20:00 — forked from jaredallard/LibDSA.lua
DSA for Lua 5.1
--------------------------------------------------------------------------------------------
-- LUA Big Number Library
-- Made for Lua 5.1 by Jared Allard <jaredallard@outlook.com>
-- Heavly optimised for the LUA implementation in World of Warcraft, minimizing
-- table creation/seeks and the use of external variables.
-- Numbers are stored as tables containing words of [radix length] decimal digits.
-- [0] being the most significant, [n-1] being the least: 1234567890 = {[0]=123,4567890}.
-- ["n"] stores the length of the number, words in indexes >= n may contain zeros, all
-- words are stored as primitive type number.
-- ["neg"] indicates if the value is negative, true for negative false for positive, this