Skip to content

Instantly share code, notes, and snippets.

Started work for @alphagov!

Tristram Oaten 0atman

Started work for @alphagov!
Block or report user

Report or block 0atman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trauber / mdlp.awk
Last active Aug 1, 2019
Agnostic literate programming for github flavored markdown.
View mdlp.awk
#!/usr/bin/awk -e { if (/^```/) { i++; next } if ( i % 2 == 1) { print } }
# mdlp - agnostic literate programming for github flavored markdown.
# I release this script into the public domain.
# Rich Traube, Fri Feb 15 09:07:27 EST 2013
from datetime import date, timedelta
from textwrap import wrap
years = timedelta(weeks=52)
tris = {
"fullname": "Tristram Oaten",
"email": "",
"bio": """I specialise in functional and object-oriented Javascript,Python and Django development
and high-availability Linux systems administration in a heterogeneous environment.
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

jneira / express-sample.cljs
Created Aug 25, 2011
Clojurescript / node.js basic examples
View express-sample.cljs
(ns express_sample
(:require [cljs.nodejs :as node]))
(def express (node/require "express"))
(def app (. express (createServer)))
(defn -main [& args]
(doto app
(.use (. express (logger)))
(.get "/" (fn [req res]
You can’t perform that action at this time.