Skip to content

Instantly share code, notes, and snippets.

:octocat:
Started work for @alphagov!

Tristram Oaten 0atman

:octocat:
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
@0atman
0atman / thread.py
Last active Jan 5, 2018 — forked from anonymous/chain.py
clojure `->`-style functional threading
View thread.py
from functools import reduce
def thread(*args):
"functional thread, inspired by clojure and https://stackoverflow.com/a/17122666/333294"
caller = lambda x, y: y(x)
return reduce(caller, args[1:], args[0])
@0atman
0atman / mdlp.awk
Created Mar 11, 2017 — forked from trauber/mdlp.awk
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
@0atman
0atman / clapping_music.alda.clj
Last active Aug 29, 2016 — forked from daveyarwood/clapping_music.alda
Steve Reich's "Clapping Music" in Alda
View clapping_music.alda.clj
(ns clapping "
Clapping Music (1972)
for two performers
Steve Reich
sheet music:
https://sites.ualberta.ca/~michaelf/SEM-O/SEM-O_2014/Steve's%20piece/clapping_reich.jpg
This alda version slightly tweaked from daveyarwood:
@0atman
0atman / remove-sidebar.css
Last active Oct 1, 2018 — forked from nottrobin/remove-sidebar.css
slack.com remove left sidebar
View remove-sidebar.css
/* hide the sidebar */
#team_menu {display: none;}
#col_channels_bg {display: none;}
#col_channels {display: none;}
#messages_container {margin-left: 0;}
#messages-input-container {left: -160px;}
/* move the favouites star over */
#channel_header .star {
View fabfile.py
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
You can’t perform that action at this time.