Skip to content

Instantly share code, notes, and snippets.

View meribold's full-sized avatar
¯\_(ツ)_/¯🍕

Lukas Waymann meribold

¯\_(ツ)_/¯🍕
View GitHub Profile
@meribold
meribold / email-workflow-video-notes.md
Last active February 18, 2023 14:12
Notes regarding my "Email Workflow Demo" video

Keybase proof

I hereby claim:

  • I am meribold on github.
  • I am meribold (https://keybase.io/meribold) on keybase.
  • I have a public key whose fingerprint is D14C CBFF 836E 5732 7C25 2FDE 7066 AC79 C459 2C12

To claim this, I am signing this object:

@meribold
meribold / macro.txt
Last active August 29, 2015 14:23
Macro for Warcraft that prints a chat message when any frame took more than 1/30 seconds to compute
/run local f=CreateFrame("Frame"); f:SetScript("OnUpdate",function(_,elapsed) if elapsed>1/30 then print("Lag: "..math.floor(elapsed*1000+.5).." ms, equivalent to "..math.floor(1/elapsed+.5).." FPS") end end)
_G.addMoneyLootMessage = function(money) -- In copper. I don't know if you can get this information.
local gold = _G.math.floor(money / 10000)
local silver = _G.math.floor((money - 10000 * gold) / 100)
local copper = money % 100
local goldString = gold > 0 and _G.string.format(_G.GOLD_AMOUNT .. ", ", gold) or ""
local silverString = (gold > 0 or silver > 0) and _G.string.format(_G.SILVER_AMOUNT .. ", ", silver) or ""
local copperString = _G.string.format(_G.COPPER_AMOUNT, copper)
local message = _G.string.format(_G.YOU_LOOT_MONEY .. "%s%s%s", "", goldString, silverString, copperString)