Skip to content

Instantly share code, notes, and snippets.

View qnub's full-sized avatar
👁️‍🗨️

Vadim Lopatiuk qnub

👁️‍🗨️
View GitHub Profile
@averrin
averrin / gist:2794727
Created May 26, 2012 17:31
Oh My Doc!
import pyparsing as p
import inspect
import pprint
def process(fn, inline=True, badges=True, multiline=True, tag="", mtag="", debug=False, skip_lines=2):
"""
You can use semicolon tags or specify pyparsing tag in function call
for example, for @tag:
'@' + p.Word(p.alphas + '_').setResultsName('tag')
s = {
'tag': '<span class="boom"></span>',
'content':
[
'Server status: ',
{
'tag': '<a></a>',
'content':
[
'[online]',