Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. from time import sleep
  4. from random import uniform
  5.  
  6. GREEN = '\033[92m'
  7. ENDC = '\033[0m'
  8. FAIL = '\033[91m'
  9.  
  10. def msg(action,time=1,status="OK"):
  11. print("{:<40s}".format(action), end='')
  12. sleep(time)
  13. if status == "OK":
  14. print("{:>35s}".format("[" + GREEN + "OK" + ENDC + "]"))
  15. else:
  16. print("{:>35s}".format("[" + FAIL + status + ENDC + "]"))
  17.  
  18.  
  19. msg("Synchronizing cyclotrons...", time=uniform(0.1,1.5))
  20. sleep(0.5)
  21. msg("Aligning beam tuners...", time=uniform(0.1,1.5))
  22. sleep(0.5)
  23. msg("Calibrating axial transvector...", time=uniform(0.1,1.5))
  24. sleep(0.5)
  25. msg("Pressurizing reactor...", time=uniform(0.1,1.5))
  26. msg("Inserting fuel assembly...", time=uniform(0.5,2.5))
  27. sleep(0.5)
  28. msg("Engaging phase interlocks...", time=uniform(0.5,2.5))
  29. sleep(0.5)
  30. msg("Generating graviton wave...", time=uniform(0.1,1.5))
  31. sleep(0.5)
  32. msg("Reticulating splines...", time=uniform(0.1,1.5))
  33. sleep(0.5)
  34. msg("Charging jump capacitors...", time=uniform(0.1,1.5))
  35. sleep(0.5)
  36. msg("Initiating hyperwave pulse...", time=uniform(1.0,2.5), status="ER")
  37. sleep(1.0)
  38. print("-- \033[91m JUMP SEQUENCE ABORTED \033[0m --")
  39. print("[" + FAIL + "ERROR" + ENDC + "] JSR mid phase interlock out of band")
  40. print("[" + FAIL + "ERROR" + ENDC + "] Recalibrate JSR lower sequence wave coil")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement