Skip to content

Instantly share code, notes, and snippets.

@yousefamar
Last active September 4, 2015 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yousefamar/ab315bd7cfba2396ea80 to your computer and use it in GitHub Desktop.
Save yousefamar/ab315bd7cfba2396ea80 to your computer and use it in GitHub Desktop.
#!/usr/bin/env lsc
const CHARS = 5
ords = [0 for til CHARS]
ord-to-char = -> String.from-char-code 97 + it
while true
ords |> (.map ord-to-char) |> (.join '') |> (+ \.com) |> console.log
for v, i in ords
if v < 25
++ords[i]
break
ords[i] = 0
break unless ords |> (.join '') |> (.replace /0/g '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment