Skip to content

Instantly share code, notes, and snippets.

View nebularg's full-sized avatar

Kyle Buller nebularg

View GitHub Profile
#!/usr/bin/env python3
import sys
import requests
from bs4 import BeautifulSoup
def parse_page(locale, page):
url = 'http://%s.wowhead.com/%s' % (locale, page)
if locale == 'www':
locale = 'en'
-- http://luacheck.readthedocs.io/en/stable/warnings.html
std = "lua51"
max_line_length = false
codes = true
exclude_files = {
"**/Libs",
}
ignore = {
"11./SLASH_.*", -- Setting an undefined (Slash handler) global variable
@nebularg
nebularg / snippets.cson
Last active April 17, 2016 10:54
BigWigs snippets for Atom
'.source.lua':
################
# BigWigs stuff
################
# API
'Log':
'prefix': 'bwlog'
@nebularg
nebularg / ldoc.ltp
Last active August 22, 2016 22:55
LDoc md template for GitHub (-x md)
> local function format_anchor_link(name)
> -- make an educated guess at what the id of the function header will be
> return name:lower():gsub("%p", ""):gsub("%s", "-")
> end
> local function format_see_link(see)
> if see.href then return see.href end
> return format_anchor_link(see.name)
> end
> local escape = ldoc.escape
> local show_return_and_params = not ldoc.no_return_or_parms