#!/usr/bin/env python import sys import time import base64 import random from itertools import cycle """ Author : flo date : 2016.12.13 Purpose : Almost Christmas, so close, so close..... !!! Comments: None, what so ever. : CTRL-C to end, there is no way of ending this program during runtime. To run : python christmas.txt """ def printCode(): word = [] head = '\033[1;' tail = '\033[1;m' mess = "TWVycnkgQ2hyaXN0bWFzLCBFdmVyeW9uZSAh" value = base64.b64decode(mess) value=value+"\n" for i in value: word.append(i) pool = cycle(word) try : for i in pool: time.sleep(1) sys.stdout.write(head+str(random.randint(31,38))+'m') sys.stdout.write(i) sys.stdout.write(tail) sys.stdout.flush() except KeyboardInterrupt: print "\n\nCaught ending Interrupt, ending program." pass def main(): printCode() # calling main if __name__ == "__main__": main()