Skip to content

Instantly share code, notes, and snippets.

View dj311's full-sized avatar
🤙

Dan Jones dj311

🤙
  • London
  • 02:11 (UTC +01:00)
  • X @djwj_
View GitHub Profile
@dj311
dj311 / example-snippet.tex
Last active May 9, 2024 15:30
force recompile of all memos if an external file has been changed (memoize latex package)
% automatically recompile all memoised bits if notation.sty has been edited
\newcommand \HashOfNotationSty {\directlua{tex.print(md5.sumhexa(io.open("notation.sty","r"):read("a")))}}
\mmzset{context={\HashOfNotationSty}}
% (i put this in preamble so the mmzset is applied to all memos in the document)

Keybase proof

I hereby claim:

  • I am dj311 on github.
  • I am djwj (https://keybase.io/djwj) on keybase.
  • I have a public key ASCU2PJYAjVZFgs3OFWHHF7TiKu9kjkJ9WJw6qr6qy-h5wo

To claim this, I am signing this object:

@dj311
dj311 / build.py
Last active August 29, 2015 14:11 — forked from will-hart/build.py
"""
Free to use under the MIT license
Builds a static site from a list of Markdown source files. The source
files should have the same directory structure as the desired output.
Files are rendered using Markdown2 and can declare metadata variables:
---