Skip to content

Instantly share code, notes, and snippets.

View lmullen's full-sized avatar

Lincoln Mullen lmullen

View GitHub Profile
@lmullen
lmullen / README.md
Last active August 29, 2015 14:06
Starter files for using the American Converts Database API
@lmullen
lmullen / 00-bad-assign-groups.html
Last active August 29, 2015 14:06
Solution to an in-class assignment for Clio 3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script src="00-bad-assign-groups.js"></script>
</body>
</html>
@lmullen
lmullen / beancounting.html
Created September 10, 2014 03:29
My solutions to exercises for week 3 of Clio 3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
</body>
<script src="beancounting.js"></script>
</html>
@lmullen
lmullen / chicago-fullnote-bibliography-no-ibid-markdown.csl
Created September 9, 2014 14:49
A Chicago citation style sheet that uses Markdown
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="never" page-range-format="chicago">
<info>
<title>Chicago Manual of Style 16th edition (full note, no Ibid.) [Markdown]</title>
<id>http://www.zotero.org/styles/chicago-fullnote-bibliography-no-ibid-markdown</id>
<link href="http://www.zotero.org/styles/chicago-fullnote-bibliography-no-ibid" rel="self"/>
<link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
@lmullen
lmullen / Makefile
Created September 3, 2014 18:21
Very minimal HTML for JavaScript
serve :
ruby -run -e httpd . -p 4000
@lmullen
lmullen / .gitignore
Last active August 29, 2015 14:06
Sample Makefile for Clio 3
analysis
html
text
@lmullen
lmullen / README.md
Created September 1, 2014 20:49
Getting the Ace editor to work with gitit

The file page.st goes in the templates/ directory in the Gitit wiki home directory. You'll put the Ace JavaScript and CSS files in static/.

@lmullen
lmullen / Makefile
Last active February 25, 2023 21:14
PDF slides and handouts using Pandoc and Beamer
SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md))
HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md))
all : $(SLIDES) $(HANDOUTS)
%.md.slides.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -o $@
%.md.handout.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -V handout -o $@
@lmullen
lmullen / markdown-quickfix.vim
Last active August 29, 2015 14:02
Add flags in format {TODO: description} or the like to the quickfix list when writing
" Add all flags in the style {TODO: description} or {PAGE} in current document
" to quickfix list
nnoremap <leader>{ :vimgrep /\v\{[A-Z]+(:\_.{-})?\}/gj %<CR>:copen<CR>
" Do the same for all Markdown documents in this directory and subdirectories
nnoremap <leader>} :vimgrep /\v\{[A-Z]+(:\_.{-})?\}/gj ./**/*.md<CR>:copen<CR>
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.graticule {
fill: none;
stroke: #777;
}
.boundary {