1
0
Fork 0
forked from boyska/infissi

che ritmo

This commit is contained in:
boyska 2016-06-04 17:15:42 +02:00
parent 0ff56cfb55
commit 2d14369d62
2 changed files with 37 additions and 0 deletions

5
anni90.py Normal file
View file

@ -0,0 +1,5 @@
from infissa import *
not d^_^b
(d^_^b) + [o_o] == 883

32
infissa.py Normal file
View file

@ -0,0 +1,32 @@
from subprocess import Popen, PIPE
class Giappo:
def __init__(self, symbol):
self.s = symbol
def __xor__(self, other):
return Giappo(self.s + other.s)
def __add__(self, other):
if other == [o_o]:
return Musicona('883.mp4')
class Musicona:
def __init__(self, url):
self.url = url
def __eq__(self, other):
if other == 883:
p = Popen(['mplayer', '-fs', self.url], stdout=PIPE, stderr=PIPE)
p.communicate()
class Musicassetta:
def __init__(self):
pass
d = Giappo('d')
b = Giappo('b')
_ = Giappo('_')
o_o = Musicassetta()
__all__ = ['d', '_', 'b', 'o_o']