Skip to content

Instantly share code, notes, and snippets.

View nebularg's full-sized avatar

Kyle Buller nebularg

View GitHub Profile
@nebularg
nebularg / toc.tmLanguage.json
Created September 26, 2022 20:15
WoW TOC Syntax Highlighting
{
"name": "toc",
"fileTypes": [
"toc"
],
"scopeName": "source.toc",
"uuid": "C22B105F-216F-4779-9E20-7C881A2B0C99",
"patterns": [
{
"match": "^(##\\s*(\\S+))\\s*(:)\\s*(.*)$",
@nebularg
nebularg / wow.toml
Last active September 22, 2020 01:54
Selene config file for WoW
This file has been truncated, but you can view the full file.
# A standard library for World of Warcraft generated from Blizzard_APIDocumentation
[selene]
base = "lua51"
name = "wow"
# std lua changes
[debug]
removed = true
@nebularg
nebularg / _header.toml
Last active March 3, 2021 13:22
Generate config files for Selene
# A standard library for World of Warcraft generated from Blizzard_APIDocumentation
[selene]
base = "lua51"
name = "wow"
# std lua changes
[debug]
removed = true
@nebularg
nebularg / bwapi.code-snippets
Last active August 4, 2020 08:00
BigWigs snippets for VSCode
{
// API
"Log": {
"scope": "lua",
"prefix": "bwlog",
"body": "self:Log(\"${1:event}\", \"${2:func}\", ${3:...})$0",
},
"Log AURA_APPLIED": {
"scope": "lua",
"prefix": "bwlogauraapplied",
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event)
if Transcriptor:IsLogging() then
Transcriptor:StopLog(event ~= "CHALLENGE_MODE_COMPLETED" and event ~= "PLAYER_ENTERING_WORLD")
end
if event ~= "PLAYER_ENTERING_WORLD" and event ~= "CHALLENGE_MODE_COMPLETED" then
Transcriptor:StartLog(event ~= "CHALLENGE_MODE_START")
end
end)
f:RegisterEvent("PLAYER_ENTERING_WORLD") -- left early
name: Release AddOn
on:
push:
tags:
- '**'
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
name: Docker Image CI
on:
push
branches:
- master
tags:
- *
paths-ignore:
- README.md
@nebularg
nebularg / send.sh
Last active September 16, 2019 01:36
GitHub Actions Discord webhook
#!/bin/bash
if [ -z "$WEBHOOK_URL" ]; then
echo "ERROR! You need to set the WEBHOOK_URL environment variable."
exit 0
fi
AUTHOR_NAME=$( git -C "$GITHUB_WORKSPACE" log -1 "$GITHUB_SHA" --pretty="%aN" )
COMMITTER_NAME=$( git -C "$GITHUB_WORKSPACE" log -1 "$GITHUB_SHA" --pretty="%cN" )
if [ "$AUTHOR_NAME" = "$COMMITTER_NAME" ]; then
------------------------------------------------------------------------------
-- DevToolsFrameStack.lua
--
-- Frame stacking monitor
--
-- Globals: DevTools, SLASH_DEVTOOLS_FRAMESTACK1
-- Globals: BINDING_HEADER_DEVTOOLS
-- Globals: BINDING_NAME_DEVTOOLS_FRAMESTACK_*
---------------------------------------------------------------------------
MapID ID Zone Name Area Name
4 1 Kalimdor Durotar
9 1 Kalimdor Mulgore
11 1 Kalimdor Barrens
13 1 Kalimdor Kalimdor
14 0 Eastern Kingdoms Azeroth
16 0 Eastern Kingdoms Arathi
17 0 Eastern Kingdoms Badlands
19 0 Eastern