This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do | |
local mem = collectgarbage("count") | |
local s = "Hi" | |
for t=1,1000 do | |
x = function() print(s) end | |
end | |
ChatFrame1:AddMessage("Used: "..(collectgarbage("count") - mem)) | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local spell | |
spell = UnitCastingInfo("target") | |
if spell then | |
self:UNIT_SPELLCAST_START(nil, "target") | |
return | |
end | |
spell = UnitChannelInfo("target") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local UnitName = UnitName | |
local GetTime = GetTime | |
local UnitCastingInfo = UnitCastingInfo | |
local UnitChannelInfo = UnitChannelInfo | |
function oUF:UNIT_SPELLCAST_START(event, unit, spell, spellrank) | |
if self.unit ~= unit then return end | |
if not self.SpellcastStart then | |
local name, rank, text, texture, startTime, endTime = UnitCastingInfo(unit) | |
if not name then return end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Interface\FrameXML\RestrictedExecution.lua:582: Call failed: Interface\FrameXML\RestrictedExecution.lua:317: bad argument #1 to 'pairs' (table expected, got nil) | |
[C]: ? | |
[C]: ? | |
Interface\FrameXML\RestrictedExecution.lua:582: in function <Interface\FrameXML\RestrictedExecution.lua:574> | |
(tail call): ? | |
Interface\FrameXML\SecureHandlers.lua:86: in function <Interface\FrameXML\SecureHandlers.lua:76> | |
Interface\FrameXML\SecureHandlers.lua:113: in function `SecureHandler_OnSimpleEvent' | |
[string "*:OnEnter"]:3: in function <[string "*:OnEnter"]:1> | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GameTime_GetLocalTime(wantAMPM) | |
--~ local dateInfo = date("*t"); -- THIS CREATES A TABLE EVERY CALL! Bad!!!! | |
local hour, minute = date("%H"), date("%M") | |
return GameTime_GetFormattedTime(hour, minute, wantAMPM), hour, minute | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\w\$(parse_git_branch) $ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Tekkub@KAKU: ~]$ cat ~/.gitconfig | |
[gui] | |
recentrepo = C:/Users/Tekkub/Documents/Git/TourGuide | |
recentrepo = C:/Users/Tekkub/TourGuide | |
recentrepo = C:/Users/Tekkub/WoW-TourGuide | |
recentrepo = C:/Users/Tekkub/Desktop/TourGuide | |
recentrepo = C:/Users/Tekkub/Documents/wow/Instantiation | |
recentrepo = C:/Users/Tekkub/Documents/wow/sandbox | |
[user] | |
email = [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Interface\AddOns\OneBag3\OneBag3.lua:140: attempt to index global 'L' (a nil value) | |
[C]: ? | |
Interface\AddOns\OneBag3\OneBag3.lua:140: in function <Interface\AddOns\OneBag3\OneBag3.lua:139> | |
(tail call): ? | |
Interface\FrameXML\ContainerFrame.lua:737: in function <Interface\FrameXML\ContainerFrame.lua:736> | |
[C]: in function `securecall' | |
Interface\FrameXML\UIParent.lua:1223: in function `ShowUIPanel' | |
Interface\FrameXML\UIParent.lua:1159: in function <Interface\FrameXML\UIParent.lua:1155> | |
[C]: in function `SetAttribute' | |
Interface\FrameXML\UIParent.lua:1734: in function `ShowUIPanel' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for actionID=1,12 do | |
local mainbtn = factory("tekPopbar"..actionID, UIParent, "ActionBarButtonTemplate,SecureHandlerEnterLeaveTemplate,SecureHandlerStateTemplate") | |
mainbtn:SetPoint("LEFT", anch1, "RIGHT", (actionID == 4 or actionID == 9) and gap * 2.5 or gap, 0) | |
RegisterStateDriver(mainbtn, "bonusbar", "[bonusbar:1]1;[bonusbar:2]2;[bonusbar:3]3;[bonusbar:4]4;[bonusbar:5]5;0") -- See http://www.wowwiki.com/API_GetBonusBarOffset for details | |
mainbtn:SetAttribute('_onstate-bonusbar', [[ | |
newaction = (not newstate or newstate == "0") and ]].. actionID..[[ or newstate == "5" and ]].. possbar[actionID]..[[ or (]].. actionID..[[ + (newstate+5)*12) | |
self:SetAttribute("*action*", newaction) | |
if not self:IsUnderMouse(true) then control:ChildUpdate("dohide") end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function scroller(frame, delta) | |
if delta > 0 then | |
if IsShiftKeyDown() then frame:ScrollToTop() | |
else frame:ScrollUp() end | |
elseif delta < 0 then | |
if IsShiftKeyDown() then frame:ScrollToBottom() | |
else frame:ScrollDown() end | |
end | |
end | |
OlderNewer