Skip to content

Instantly share code, notes, and snippets.

@kemayo
kemayo / Brewfile
Last active November 29, 2023 15:52
My Brewfile, as of November 29th 2023
tap "homebrew/bundle"
tap "homebrew/cask-drivers"
brew "cask"
brew "mas"
brew "carthage"
brew "colordiff"
brew "composer"
brew "curl"
@kemayo
kemayo / practical-guide-characters.markdown
Last active June 18, 2021 17:16
A Practical Guide To Evil playlist

A Practical Guide To Evil: A Playlist of Songs

I started thinking of this when I stumbled over a tumblr post by st-just a few years ago. There's still a few of those songs in here!

This is pretty comprehensive through Book Three. After that there's some scattered character and event themes, but nowhere near as much as before then.

We're going to do this in a few themed sections. This is character-theme songs. Later there'll be some per-book songs.

local myname, ns = ...
local Debug
do
local TextDump = LibStub("LibTextDump-1.0")
local debuggable = GetAddOnMetadata(myname, "Version") == '@project-version@'
local _window
local function GetDebugWindow()
if not _window then
_window = TextDump:New(myname)
@kemayo
kemayo / SilverDragon_MyCoolTheme.toc
Created November 29, 2020 03:23
Demonstration of a custom theme
## Interface: 90002
## Title: SilverDragon: My Cool Theme
## Author: Kemayo
## Dependencies: SilverDragon
addon.lua
local myname, addon = ...
local TextDump = LibStub("LibTextDump-1.0")
addon.debuggable = GetAddOnMetadata(myname, "Version") == '@project-version@'
local _window
local function GetDebugWindow()
if not _window then
_window = TextDump:New(myname)
end
return _window
local options = {
type = "group",
name = "Testing of toggle",
get = function(info) return true end,
set = function(info, value) end,
args = {},
}
for i=1,1000 do
options.args["toggle" .. i] = {
type = "toggle",

Keybase proof

I hereby claim:

  • I am kemayo on github.
  • I am kemayo (https://keybase.io/kemayo) on keybase.
  • I have a public key ASB335_X5waMYbD78zwg4QiNhEZTbHWivZw-aPzgcHkNOAo

To claim this, I am signing this object:

@kemayo
kemayo / luaparse.py
Created September 1, 2016 05:19
Parse lua table syntax in python
import ply.yacc as yacc
import ply.lex as lex
""" Lua table syntax parser
Important reference: http://www.lua.org/manual/5.1/manual.html#8
This is incomplete. It parses enough of Lua's syntax to handle non-fancy
tables. In the official grammar provided in the manual, it starts at
"tableconstructor". It has no support for functions, or for complicated
[
{
"path": "SilverDragon",
"repo": "wow-silverdragon",
"curse": "silver-dragon",
"wowi": "6606",
"changelog": true
},
{
"path": "BankStack",
( function ( $ ) {
$.fn.openInNewWindow = function () {
var rel;
if ( this.tagName.toLowerCase() === 'a' ) {
this.setAttribute( 'target', '_blank' );
rel = this.getAttribute( 'rel' );
this.setAttribute( 'rel', rel ? ( rel + ' noopener' ) : 'noopener' );
}
}
)( jQuery )