Last active
April 3, 2019 13:34
-
-
Save junpluse/8c8f628243e48a9d19f9eee2d62ab050 to your computer and use it in GitHub Desktop.
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/swift | |
import Darwin | |
signal(SIGINT) { _ in | |
print("π") | |
} | |
let konami = "ββββββββBA" | |
while let line = readLine(strippingNewline: true) { | |
guard line == konami else { continue } | |
print("π") | |
exit(0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment