Skip to content

Instantly share code, notes, and snippets.

@jschaf
jschaf / Gruntfile.js
Last active August 29, 2015 14:09
Gruntfile.js Watch Task doesn't produce output
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
@jschaf
jschaf / Makefile
Last active August 29, 2015 14:03
pandoc-citeproc bibtex
INPUT = minimal.md
OUTPUT = minimal.pdf
TEMPLATE = template.tex
all:
pandoc \
--filter pandoc-citeproc \
--standalone \
--variable="linestretch=2" \
--template=$(TEMPLATE) \
+ 9646f0b... 06/29/14 13:07 public Pandoc Citeproc
1371055 11/16/11 14:25 public haskell regex.dfa engine
479954 07/17/10 19:56 public
@jschaf
jschaf / Makefile
Last active August 29, 2015 14:03
Pandoc Citeproc
all:
pandoc --filter pandoc-citeproc --variable="linestretch=2" --include-after-body=afterbody.tex -o minimal.pdf minimal.md
@jschaf
jschaf / gist:1371055
Created November 16, 2011 19:25
haskell regex.dfa engine
{-
Engine-mod.hs is an attempt to add missing functionality to Engine.hs
* ^ and $ anchor support
* Multiline compile option to affect .
* case sensitive compile option for characters (just downcase everything?)
* substring matching? (libTRE papers?)
Anchors are "boundary" matchers, not character matchers. So I need to
generalize the concept of the branching. And boundaries can coincide.
-----BEGIN WEBFACTION INSTALL SCRIPT-----
#!/usr/local/bin/python2.4
"""
MediaWiki 1.15.4
Notes:
- The database will be named after your application,
e.g. username_application.