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
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 |
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
// ==UserScript== | |
// @name Gerrit: Remove size from searchbox | |
// @namespace http://davidlynch.org/ | |
// @version 0.1 | |
// @description Searchbox too wide; removing its size attribute helps there | |
// @author David Lynch <kemayo@gmail.com> | |
// @match https://gerrit.wikimedia.org/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Xenforo invisitext | |
// @namespace http://davidlynch.org/ | |
// @version 0.1 | |
// @description Make some invisible text a little more visible | |
// @author David Lynch | |
// @match https://forums.sufficientvelocity.com/* | |
// @match https://forums.spacebattles.com/* | |
// @match https://forums.questionablequesting.com/* | |
// @match https://xenforo.com/community/* |
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 | |
for D in *; do | |
if [ -d "${D}/.git" ]; then | |
echo "${D}:" "${1:-pull}" "${@:2}" | |
git -C "${D}" "${1:-pull}" "${@:2}" | |
fi | |
done |
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
[ | |
{ | |
"path": "SilverDragon", | |
"repo": "wow-silverdragon", | |
"curse": "silver-dragon", | |
"wowi": "6606", | |
"changelog": true | |
}, | |
{ | |
"path": "BankStack", |
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
# Description | |
# Drop a link into chat which will work as a skype conference call for the requested user | |
# | |
# Dependencies: | |
# "slack-node": "^0.0.95" | |
# "hubot-slack-attachment": "^1.0.0" | |
# | |
# Configuration: | |
# HUBOT_SLACK_TOKEN | |
# HUBOT_SLACK_INCOMING_WEBHOOK |
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 crash_wow() | |
local model = CreateFrame("PlayerModel") | |
model:SetWidth(300) | |
model:SetHeight(300) | |
model:SetPoint("CENTER", WorldFrame) | |
model:SetCreature(83008) | |
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
source ~/.profile | |
# employing this prompt: http://vvv.tobiassjosten.net/bash/dynamic-prompt-with-git-and-ansi-colors | |
# Configure colors, if available. | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
c_reset='\[\e[0m\]' | |
c_user='\[\033[1;33m\]' | |
c_path='\[\e[0;33m\]' | |
c_git_clean='\[\e[0;36m\]' |
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 is_cloth = function(itemid, bag, slot) return select(7, GetItemInfo(itemid)) == "Cloth" end | |
SlashCmdList["MOVECLOTH"] = = BankStack.CommandDecorator(function(from, to) | |
BankStack.Stack(from, to, is_cloth) | |
BankStack.Fill(from, to, false, is_cloth) | |
end, "bags bank", 2) | |
SLASH_MOVECLOTH1 = "/movecloth" |
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
Show hidden characters
[ | |
{ "keys": ["alt+p"], "command": "wrap_text", "args": {"start":"<? ", "end":" ?>" }}, | |
] |