Skip to content

Instantly share code, notes, and snippets.

View Anaphory's full-sized avatar

Gereon Kaiping Anaphory

  • DB Netz
  • München area
View GitHub Profile
@JulienPalard
JulienPalard / curry.py
Created August 1, 2014 10:51
KISS Python curry
#!/usr/bin/env python
def curry(func):
"""
Decorator to curry a function, typical usage:
>>> @curry
... def foo(a, b, c):
... return a + b + c
@tgvaughan
tgvaughan / build.xml
Last active January 3, 2019 19:13
Generic ANT bulid file for BEAST 2 packages. Copy this into an otherwise empty directory and type "ant skeleton" to create a new package.
<project default="build" basedir=".">
<!-- Source, JUnit test code and jar library locations. -->
<property name="src" location="src"/>
<property name="test" location="test"/>
<property name="lib" location="lib"/>
<!-- Location to check for local copy of beast2 repository -->
<property name="beastDir" location="../beast2"/>