Created
March 30, 2018 14:37
-
-
Save nicu-chiciuc/32e042fbdc0a93c6fb522f938ce5493d 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
f = (s,y=' _ | | | _||_||_ 025133046044153064065033055054'.match(/.{3}/g))=>[...' ..'].map((v,i,_,a=n=>y[y[+s[n]+7][i]])=>a(0)+a(1)+v+a(3)+a(4)).join`\n` | |
some = f('09:36') | |
console.log(f('11:11')) | |
console.log(f('00:88')) | |
console.log(f('12:34')) | |
console.log(some) | |
console.log(f.toString().length) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment