# install dependecies
apt-get install qemu qemu-user-static binfmt-support
# download raspbian image
wget https://downloads.raspberrypi.org/raspbian_latest
# extract raspbian image
unzip raspbian_latest
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
var dotLength = 110; | |
var dashLength = 3 * dotLength; | |
var pauseBetweenElements = 2 * dotLength; | |
var pauseBetweenWords = 3 * dotLength; | |
function nameToVibrations(fullName) { | |
var initials = getInitials(fullName); | |
var vibrations = initials.map(wordToMorseCode) | |
.map(morseCodeToVibrations) | |
.join(",".concat(pauseBetweenWords).concat(",")); |