Skip to content

Instantly share code, notes, and snippets.

@boukeversteegh
boukeversteegh / functionalprogramming.py
Last active December 17, 2015 02:09
How to do functional programming in Python
import inspect
# Callable class to wrap functions
class F:
def __init__(self, func, *args):
self.func = func
self.args = args
# Currying
@livibetter
livibetter / README.rst
Last active November 22, 2025 10:35
Frequency spectrum of sound using PyAudio, NumPy, and Matplotlib