Skip to content

Instantly share code, notes, and snippets.

# generic currying decorator
# right currying behavior
from functools import partial
"""
Curry decorator
"""
def curry(func, args_num=1, args_total=None):
if not args_total: args_total = func.func_code.co_argcount
def curried(arg1):
###
# DO YOU HEAR THE PEOPLE SING? (Uplifting Mix)
# version 1.3 (clearer kick sound)
#
# Converted from CoffeeScript
# Source: https://gist.github.com/11080149
# Usage: coffee -bcp file.coffee
#
# Original from Les Miserables
###
# DO YOU HEAR THE PEOPLE SING? (Uplifting Mix)
# version 1.2
#
# Converted from CoffeeScript
# Source: https://gist.github.com/11080149
# Usage: coffee -bcp file.coffee
#
# Original from Les Miserables
# (http://www.youtube.com/watch?v=QngGvHTOKh4)