Skip to content

Instantly share code, notes, and snippets.

@dankogai
Created April 20, 2018 01:44
Show Gist options
  • Save dankogai/8a4a3fedeb68d89be6f7dedc8fb3c77b to your computer and use it in GitHub Desktop.
Save dankogai/8a4a3fedeb68d89be6f7dedc8fb3c77b to your computer and use it in GitHub Desktop.
tanakh in swift
#!/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