Skip to content

Instantly share code, notes, and snippets.

View wilenius's full-sized avatar

Heikki Wilenius wilenius

  • University of Helsinki
  • Finland
View GitHub Profile
@troeger
troeger / zot5exp2bbt.py
Last active August 7, 2017 06:15
Script for emulating the Zotero BetterBibtex stable citation key feature
#!/usr/bin/env python
'''
Script for emulating the BetterBibtex stable citation key feature.
(see https://github.com/retorquere/zotero-better-bibtex)
input.bib: A BibLatex export from a Zotero 5 library that has "Extra" field
entries for stable BibTex keys ("bibtex: <my_key>"). They end up in the
note field of the standard Zotero 5 export.
output.bib: A BibTex file where the citation keys from the Extra/note field are
@bmschmidt
bmschmidt / lectureToOutline.hs
Created October 28, 2014 18:43
Markdown headers to outline conversion
import Text.Pandoc
import Text.Pandoc.Walk (walk,query)
import Text.Pandoc.Builder
--
--Functions to first build up a new document consisting of
--all the header blocks or all the bold entries outside of headers.
--These will be recombined into a new document.