This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |