Created
November 11, 2014 16:00
-
-
Save tmcw/88bec219c7bf386cde44 to your computer and use it in GitHub Desktop.
Gist from mistakes.io
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
'-.-- --- ..-\ | |
/..- -. -.. . .-. ... - .- -. -../ \ | |
-- --- .-. ... ./\ | |
-.-. --- -.. . .-.-.-' | |
.split('/') | |
.map(function(s) { | |
return s.split(' ').map(function(s) { | |
return String.fromCharCode(97 + [ | |
'.-', '-...', '-.-.', '-..', | |
'.', '..-.', '--.', '....', | |
'..', '.---', '-.-', '.-..', | |
'--', '-.', '---', '.--.', | |
'--.-', '.-.', '...', '-', | |
'..-', '...-', '.--', '-..-', '-.--', '--..'] | |
.indexOf(s)); | |
}).join(''); | |
}).join(' '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment