Skip to content

Instantly share code, notes, and snippets.

View GabeStah's full-sized avatar

Gabe Wyatt GabeStah

View GitHub Profile
WeakAurasSaved = {
["displays"] = {
["B5 BR6"] = {
["parent"] = "Red rune border",
["mirror"] = false,
["untrigger"] = {
["form"] = 1,
},
["regionType"] = "texture",
["blendMode"] = "BLEND",
WeakAurasSaved = {
["displays"] = {
["existing-display1"] = {
-- sub-table stuff
},
["existing-display2"] = {
-- sub-table stuff
},
["existing-display3"] = {
-- sub-table stuff
local UnitIsCasting = function(spell, unit)
unit = unit or 'player'
if not UnitExists(unit) then return end
local spellName, _, _, _, spellStart, spellEnd, _, spellId = UnitCastingInfo(unit)
if not spellName then return end
if spell then
if type(spell) == 'string' then
if spellName == spell then return spellName, spellStart, spellEnd end
elseif type(tonumber(spell)) == 'number' then
if tonumber(spell) == spellId then return spellName, spellStart, spellEnd end
if not unit then
unit = 'player'
end
-- EXAMPLE 1
local a = 123
local b = 456
local c = 789
local d = c and a or 'missing'
print(d)
-- OUTPUT: 123
---------------
-- EXAMPLE 2
local a = 123
#showtooltip
/use [talent:2/2, target=mouseover, help][talent:2/2] Zen Sphere;[talent:2/3]Chi Burst;[talent:2/1]Chi Wave
@GabeStah
GabeStah / gist:e558ef87abd224375891
Last active August 29, 2015 14:17
Gruul Slice Rotation WeakAura
dKLrAcqiaQGArOs9irjPlHKOSjaQOpHQWOKu6uskEfsI0Saf3ss1UaQHbP0XGu1YeLWZaLY0GuPRbkX2qvfFdGQghscNdvvY6eLeEhavOMhOKY9Gk7tus9paQGmqKaDqaYcHuXdrvzIOQQlIeAJIs0hfLYircOtIe0krQxIKiyMauPBIQkv7ejPFckjdfjr1sbLQNIkMkuLRkkjARqv5RqkglavGolavaRfGkK3IKAUOQs5UOs2RK8xOQAWQdJYIrv0JfvtgrxwQndKpdjJgaNwIvJKi0RrIMnuUnOA3c(TidxuCCKerlhKNdX0f66iSDa13fLQXdq58OkTEqjvVhqmFKaCFaP9txH(k8Q4WQWRkwXbPItwag9Grly0xXbEfhYkoKv4vXbWGvGaH0XQSSoGNkGnyd9aE(f)GwQaTWcSqfOLkQavhDr3ko8cRabcPJvufTGrlArl6sfurwqfOplGLkoingiQ8ujeR4GoWk8WdwXVd4sXSeVkoqnQskGhVz6koOGsezQ4q2i5vC4lbNNSOtrG7q05qzJ1XuWzyyPSJ4GsqoWneVEobsmbVaRZ4jw7KfKmymErCwG0HsrwSKcmmVeil5SyccX5jdPj9uWrISajdI0ZtW5jl6yjuEdChIiGDNA(GAwSjDEYRtLabggjdIcsbYlvImS6zLC4QItGaoEqfuOAiKkQI(kofYkoOdglNsOuoLEwMicKq8619SbrqG51DoyL82H9uKflPGNnOerMkoyjgzfEvCilGavYjWI8wHxfh4eyXsfEvXQyfhiwExHxfh4eyXsfEvXQyfhcKg)5ymeKkEwXjYW6qScVkoWjWILk8QIvXkoqjSUcVkoWjWILk8QIvXQyfNgWYWcKnzf6ufR4KxHxfvrFfEvCilizWy8IxdyXkovCGsrwSXRbSyfhQcROkfR4uYtHk0PIteQGcvdvHxfhKebuExXjBqeeyvCijGyXskuXb9vCG3iimun(tzAiwmbvXbujqwlpOYq4rnvCYjqIj44hGczxX
-- Change the name to the name of the WeakAura
local name = "A Test Group"
local GetRegion = function(name)
local DisplayType = function(name)
if WeakAuras then
if WeakAuras.auras and WeakAuras.auras[name] then return 'auras' end
if WeakAuras.regions and WeakAuras.regions[name] then return 'regions' end
end
end
local displayType = DisplayType(name)
// MISC
const fixed libMapM_gv_bALJungleBirthDelay = 3.0;
const fixed libMapM_gv_bALJungleCampCaptureTime = 1.5;
const fixed libMapM_gv_bALJungleCampCaptureRadius = 3.0;
const int libMapM_gv_dataJungleMaxNumberOfDefenderTypes = 15;
const int libMapM_gv_dataJungleMaxNumberOfDefendersPerCamp = 10;
const int libMapM_gv_dataJungleMaxNumberOfMercTypes = 15;
const int libMapM_gv_dataJungleMaxNumberOfMercsSpawned = 10;
const int libMapM_gv_dataJungleMaxNumberOfPaths = 6;
const int libMapM_gv_jungleMaxCamps = 15;
@GabeStah
GabeStah / kookie-autobuyer.user.js
Last active April 10, 2020 01:47
Kookie Autobuyer - Cookie Clicker Helper
// ==UserScript==
// @name Cookie Clicker Helper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Helps with all the things cookie!
// @author Gabe Wyatt <[email protected]>
// @match https://orteil.dashnet.org/cookieclicker/
// @require https://code.jquery.com/jquery-3.4.1.slim.min.js
// @require https://raw.githubusercontent.com/marcuswestin/store.js/master/dist/store.everything.min.js
// @use https://gist.github.com/GabeStah/bed9ca6b0227a5f4c5efc150eb9ba3cd/raw/9d1f559624d66831f4c6a79629baed1ee8f30e5d/kookie-autobuyer.user.js