Last active
November 9, 2017 05:56
-
-
Save dharmab/8a9c0e0871551d34a0b076c883174b53 to your computer and use it in GitHub Desktop.
baseline
This file contains 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
#!/usr/bin/env python3 | |
from time import sleep | |
import base64 | |
import pickle | |
import sys | |
import zlib | |
b = "eJydmQe4FcUVgB8CIoJSRLCADgK+R1sEbET0gRCECBqVBFJMMvfu3Lvr3btzd3YvzxtjYnrviYnpPab3ZmJ676b3xPTem6meM3Nm99x733vxy/fxPd6+nfnPmTNnTpm9YebV2cjY9dmMscNHj4yMhLFMdDM76vAYPOwUtUTrEH7KekukuojitJmqPBc11ZSpKLTIO3EaZDMPz4LhqWyrbNbhGfDrvmx29/rs6LHoqMO3VaCN/wskdoq8lxeqLXRD1FWS5CJOC2WSOG2pUEzEOPH/eKFTJRALAtJQhEbJsNFNkp4I47yI03ohZFPGaV6IIlIilKa1QUhRyCQRE1FcKNHQ3bSAEaKTyJ4Kg2xO5BZ6aXYMLHQuLlTA435VjOairY8okGmX1XNyr3L/Z8dGsyI0zTycMQdm+Bfz4QWijsMXq+DFHqUSUEcWsCDR010jajrsjYuDoCFRs+OJtgAmRZ6wEAnnA+EQTg61ApMUooG4JG4p1KqmREeaAq1clLjxUslFhF3MsScg9hLc2xwnGSVk2rMb2aegU3lCpkWOkozKYzLroJQlJOVELmUpSrkIpOzWyBRNVYDNlcy7IFB3rco1hULltEtYRvCTOPxkhG8D+F4JGwTTeqIOvlCAo6AsZ5jpuacQ91TOXe4tXpomV/WuiYsemuauqLuCsKdx7OmIPbvP4iIHRwydjeu6DVuLHj4pUhByJUeegcjl6BtqFHhNjarBupsa/DUQu/AABdkqmroaR2NUoL+vIcqZ+PcN8PeDaMIJqxkclQ5sT6Fhx0BXAQrCCYrbqqSOEnUMFfKotYhaA6gDcZLEOs3BqyDg+AdnrnbJWEeM9ZyxARmn2UWBJriT6ghqYMD5YG/H/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6FuY3r2PLlZBHzgHcuBgW8GMS8BMu4Ke+W+jzl8LXrTle9khXU0AZCOkyTiZj/4zYP+fsX4zRvehw7oL8DX5eYBPoap67tIJfkpRfcSm/9icI+x1MQs6fqQxyfaJ1w2Heb4j3W877nc8lpDV0bw1laFZPUA+XxnBOJmP+nph/4Mw/Vj0ZFlXO0RPJS9FcTuApKqQxPZG3epOx/0TsP3P2X6oy10ZY65ENeUQbvJ7nV6ttjbdrw9i/EvZvHPt3XwjsoQv+ILuDxv0Dx91B4/7pS56yesyVi8HioAF3qT4QwL8r4SSOi4r4LyL+mxP/47un/nq0xHLgfkh6OknFLoW9K0f/16HNyIyREUY3M9yzvUnpV9lzc1tP+fQeY3YvseYomE7kmQPkWUTePJztyrTpDisUr6Yp8zYHz67ARw+A5xB4LVcZc7/94uERkS0oK+AxFXDuAPBYAi6wmvKvOIGZV02b74ZdQ3/CmcfRzJVlD9PBzw/2UxC0nwOs4yvWgmHWQmKt4nW9gKwhO5E2w7RFFW3xMO0Eom2jmjR0+XTwK1VbtlTZdg/LWFLJOHFYxlKSscJ+uJvmI5hZVnFOIs6yinMycS5j19C8oiozjHX8BsqJU9udekFwjCeTH5hTKsGnkpSlU2kbmOWVTitoNMsF1nWhY1YbBF4vRBuEjA0GwAlpD9sU0NMqFU6ntTM5guTsGJCTt+JOx2YZ27GW529aUSsrUWcMi1pFok6Z7oNtYFZXkDUEWV1BziTIYgsZ+AYbmNFq8hhNHq0mr6WDV6Mh69gzvl9Pz9Qemw3sGd9vJOEnofDJv88GJqhU2EQqBJUKZxGSyguzmT3j+y397olDtg56rAruBLHx8gg=" | |
def t(s, r=0.04): | |
for c in s: | |
sys.stdout.write(c) | |
sys.stdout.flush() | |
sleep(r) | |
print() | |
r = "\033[31m" | |
u = "\033[0m" | |
f = True | |
l = pickle.loads(zlib.decompress(base64.b64decode(b))) | |
for i, line in enumerate(l): | |
if line["name"] == "K": | |
if f: | |
t(r + line["dialog"] + u) | |
f = False | |
else: | |
t(r + line["dialog"].upper() + u, r=0.02) | |
else: | |
t(line["dialog"]) | |
if i < (len(l) - 1) and l[i]["name"] != l[i + 1]["name"]: | |
print() | |
sleep(0.30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment