Skip to content

Instantly share code, notes, and snippets.

@andrewaylett
andrewaylett / blaze
Last active September 12, 2017 10:34 — forked from 0atman/blaze.md
Blaze is lit. It allows language-agnostic literate-style programming
#!/usr/bin/env sh
in=$1
script=`mktemp -p .`
awk '{ if (/^```/) { i++; next } if ( i % 2 == 1) { print } }' < $in > $script
chmod a+x $script
./$script
rm $script

Keybase proof

I hereby claim:

  • I am andrewaylett on github.
  • I am andrewaylett (https://keybase.io/andrewaylett) on keybase.
  • I have a public key ASC1w-WVOj5pTgTbAhQbQ_9k5oa6VeSuAh1pCkD8DBqDGgo

To claim this, I am signing this object: