Skip to content

Instantly share code, notes, and snippets.

class Composition:
def __init__(self, *funcs):
self._funcs = [*funcs]
def append(self, obj):
if isinstance(obj, Composition):
self._funcs.extend(obj._funcs)
elif callable(obj):
self._funcs.append(obj)
else:
@PapyrusThePlant
PapyrusThePlant / agarify.py
Last active December 22, 2016 13:46 — forked from meew0/agarify.rb
"""
Translated from ruby to python
Original author : Meew (source : https://gist.github.com/meew0/d6c02cd156ad84869d58)
I would climb mountains to scream my thanks to you, but I'm afraid of taking initiatives so here's a comment:
You are no cause of anything but gratitude and joy for this amazingly addictive feature.
"""
import random
import string
@PapyrusThePlant
PapyrusThePlant / DCIPy.sh
Last active March 28, 2018 16:04
A script to download, compile and install Python on Debian/Ubuntu distribs
#!/bin/bash
# -----------------------------------------
# DCIPy (Download, Compile, Install Python)
# -----------------------------------------
# This script was written in order to download, compile and install Python on a Raspberry Pi.
# So this should work on most Debian/Ubuntu distribs.
# Use at your own risks, because idk wtf I'm doing most of the time.