Skip to content

Instantly share code, notes, and snippets.

What is happening?

Michael Miller mnm364

What is happening?
  • Yext
  • United States
Block or report user

Report or block mnm364

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mnm364 /
Last active Apr 27, 2019
Pandoc: Convert DOT to TikZ

Pandoc: Convert DOT to TikZ

Using Pandoc's Lua AST manipulation, we can convert DOT blocks into TikZ during compile time, and then have LaTeX generate a graph rendering.


An example command that uses this filter

pandoc --pdf-engine=xelatex --lua-filter ./dot2tex.lua -o out.pdf
mnm364 /
Last active Aug 8, 2017
Composable Python argparse actions
import argparse
def compose_actions(*actions):
"""Compose many argparse actions into one callable action.
*actions: The actions to compose.
argparse.Action: Composed action.
You can’t perform that action at this time.