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
/* | |
This file will traverse through your folders and will check if a file has possible issues with 8.0 update | |
usage: | |
node wow_updater.js -d [folder path] | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); |
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
^1^T^SCLEUEvents^T ^S^B ^t^SType^Scleu ^SEvents^T ^N1^T ^SType^SLua ^SLua^Slocal~`icon~`=~`...~J ~J if~`TMW.getLowHealthCount~`then~`return~`end~J TMW.getLowHealthCount~`=~`true~J icon.env_aura~`=~`{};~J local~`aura_env=~`icon.env_aura~J aura_env.low_health_count~`=~`0;~J local~`counter_name~`=~`"low_health_count";~J ~J TMW_ST:InitCounter(counter_name,~`aura_env.fragment_counter) ^SEvent^SOnEventsRestored ^t^N2^T ^SType^SLua ^SLua^Slocal~`icon~`=~`...~J ~J local~`low_health_count~`=~`0~J ~J local~`i,~`unit_name,~`current,~`max~J ~J for~`i=1,40~`do~`~J ~`~`~`~`unit_name~`=~`GetRaidRosterInfo(index)~J ~`~`~`~`if~`(unit_name)~`then~J ~`~`~`~`~`~`~`~`current~`=~`UnitHealth(unit_name)~J ~`~`~`~`~`~`~`~`max~`=~`UnitHealthMax(unit_name)~J ~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`if~`(current~`/~`max~`<~`0.3)~`then~J ~`~`~`~`~`~`~`~`~`~`~`~`low_health_count~`=~`~`low_health_count+1~J ~`~`~`~`~`~`~`~`end~J ~`~`~`~`end~J end~J ~J return~`~J ~J aura_env.low_health_count~`=~`low_health_count~J TMW_ST:UpdateCounter(counter_name |
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
^1^T^SType^Sconditionicon ^SConditions^T ^N1^T ^SType^SINSTANCE2 ^SBitFlags^N245760 ^t^Sn^N1 ^t^SEvents^T ^N1^T ^SType^SLua ^SLua^Slocal~`icon~`=~`...~J ~J if~`TMW.getLowHealthCount~`then~`return~`end~J TMW.getLowHealthCount~`=~`true~J icon.env_aura~`=~`{};~J local~`aura_env=~`icon.env_aura~J aura_env.low_health_count~`=~`0;~J local~`counter_name~`=~`"low_health_count";~J ~J function~`getLowHealthCount()~J ~`~`~`~`local~`low_health_count~`=~`0~J ~`~`~`~`~J ~`~`~`~`local~`i,~`unit_name,~`current,~`max~J ~`~`~`~`~J ~`~`~`~`for~`i=1,40~`do~`~J ~`~`~`~`~`~`~`~`unit_name~`=~`GetRaidRosterInfo(index)~J ~`~`~`~`~`~`~`~`if~`(unit_name)~`then~J ~`~`~`~`~`~`~`~`~`~`~`~`current~`=~`UnitHealth(unit_name)~J ~`~`~`~`~`~`~`~`~`~`~`~`max~`=~`UnitHealthMax(unit_name)~J ~`~`~`~`~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`~`~`~`~`if~`(current~`/~`max~`<~`0.3)~`then~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`low_health_count~`=~`~`low_health_count+1~J ~`~`~`~`~`~`~`~`~`~`~`~`end~J ~`~`~`~`~`~`~`~`end~J ~`~`~`~`end~J ~`~`~`~`~J ~`~`~`~`return~`low |
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
^1^T^SPoint^T ^Sy^F4982309702860793 ^f-44^SrelativePoint ^SBOTTOMLEFT^Sx ^F4725488912170997^f-42 ^t^SScale^N1.1416677236557 ^SRows^N2 ^SEnabledSpecs^T ^N270^b ^N269^b ^t^SGUID^STMW:group:1QzAtJBAo3I4 ^SColumns^N1 ^SIcons^T ^N1^T ^SShowTimer^B ^SType^Scooldown ^SShowTimerText^B ^SName^STranscendence ^SEvents^T ^N1^T ^SType^SLua ^SLua^S--~`<Untitled~`Lua~`Code>~J ~J local~`icon~`=~`...~J ~J --Your~`code~`goes~`here:~J ~J ~J local~`x,y~`=~`~`GetPlayerMapPosition("player")~J TMW._trans_location~`=~`{x=x*1000,~`y=~`y~`*~`1000}~`~J ~J ^SEvent^SOnCondition ^SOnConditionConditions^T ^N1^T ^SType^SSPELLCD ^SOperator^S> ^SLevel^N9 ^SName^STranscendence ^t^Sn^N1 ^t^t^Sn^N1 ^t^SSettingsPerView^T ^Sicon^T ^STexts^T ^N1^S ^t^t^t^SStates^T ^N1^T ^t^N2^T ^SAlpha^N0.5 ^t^N3^T ^t^N4^T ^t^N102^T ^SAlpha^N0.5 ^t^t^SEnabled^B ^t^N2^T ^SShowTimer^B ^SType^Scooldown ^SConditions^T ^N1^T ^SType^SLUA ^SName^Slocal~`x,y~`=~`GetPlayerMapPosition("player")~J ~J local~`current~`=~`{x=x*1000,~`y=~`y~`*~`1000}~J ~J ~J ~J local~`last~`=~`T |
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 TMW_ST:SetScriptText(name, text) | |
TMW_ST.ScriptTexts[name] = text | |
TMW:Fire("TMW_ST_VARIABLE_MODIFIED", name) | |
end | |
local DogTag = LibStub("LibDogTag-3.0", true) | |
if DogTag then | |
TMW:RegisterCallback("TMW_ST_VARIABLE_MODIFIED", DogTag.FireEvent, DogTag) |
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 TMW = TMW | |
if not TMW then return end | |
local L = TMW.L | |
local Type = TMW.Classes.IconType:New("scriptbar") | |
Type.name = "Script Bar" | |
Type.desc = "A Bar that can be controlled by LUA scripts" | |
Type.menuIcon = "Interface/Icons/inv_box_04" | |
Type.unitType = "unitid" | |
Type.hasNoGCD = true |
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 Bind(){ | |
var i,fn; | |
/** | |
* holds the generated bound function collection | |
* @property bound | |
* @protected | |
* @type object | |
*/ | |
this.bound = function(name){ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#!/bin/bash | |
cd ~/ | |
mkdir .git-completion | |
wget -O ./.git-completion/prompt.sh https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh --no-check-certificate | |
wget -O ./.git-completion/completion.sh https://raw.github.com/git/git/master/contrib/completion/git-completion.bash --no-check-certificate | |
echo " | |
#git completion | |
source ~/.git-completion/completion.sh |
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
<? | |
class _Mobile_Cart_View extends Cart_View { | |
public function __construct(){ | |
$this->reskin = new _Mobile_Reskin_SubView($this, 'Cart'); | |
} | |
public function setHeader(){ | |
$this->reskin->generateHeader(); | |
} |
NewerOlder