Created
April 20, 2018 01:44
-
-
Save dankogai/8a4a3fedeb68d89be6f7dedc8fb3c77b to your computer and use it in GitHub Desktop.
tanakh in swift
This file contains hidden or 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 swift | |
// cf. https://twitter.com/mattn_jp/status/987128843633770496 | |
import Foundation | |
while true { | |
""" | |
(´・_・`)´・_・`) | |
(´・_・`)_・`) | |
(´・_・`)`) | |
((´・_・`) | |
(´・(´・_・`) | |
(´・_(´・_・`) | |
(´・_・`)´・_・`) | |
(´・_・`)_・`) | |
(´・_・`)`) | |
(´・_・`)) | |
((´・_・`) | |
(´・(´・_・`) | |
(´・_(´・_・`) | |
""".components(separatedBy:"\n").forEach { | |
Thread.sleep(forTimeInterval:0.1) | |
print($0 + " ", terminator:"\r") | |
fflush(stdout) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment