Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
morse-code.json
{
"0": "-----",
"1": ".----",
"2": "..---",
"3": "...--",
"4": "....-",
"5": ".....",
"6": "-....",
"7": "--...",
"8": "---..",
"9": "----.",
"a": ".-",
"b": "-...",
"c": "-.-.",
"d": "-..",
"e": ".",
"f": "..-.",
"g": "--.",
"h": "....",
"i": "..",
"j": ".---",
"k": "-.-",
"l": ".-..",
"m": "--",
"n": "-.",
"o": "---",
"p": ".--.",
"q": "--.-",
"r": ".-.",
"s": "...",
"t": "-",
"u": "..-",
"v": "...-",
"w": ".--",
"x": "-..-",
"y": "-.--",
"z": "--..",
".": ".-.-.-",
",": "--..--",
"?": "..--..",
"!": "-.-.--",
"-": "-....-",
"/": "-..-.",
"@": ".--.-.",
"(": "-.--.",
")": "-.--.-"
}
@sidwarkd
Copy link

This just saved me about 20 minutes. Thanks.

@johnnymast
Copy link

Thanks i used this array to make a morsecode machine in python. Thanks a lot! btw the video of it can be found here .. https://www.youtube.com/watch?v=VXbkl6hj9dY

@kenmueller
Copy link

Thanks, this is very helpful!

@turnipsoup
Copy link

Cheers!

@zealshah2019
Copy link

Thank you for saving my time

@Kanan1996
Copy link

Thanks a lot!

@TheDarkSid3r
Copy link

awesome, thanks so much

@egefeyzioglu
Copy link

You just saved me 20 minutes. Thanks much!

@DaCapo7
Copy link

DaCapo7 commented Jan 9, 2021

thankss, i haddnt the bravour to copy my dict inversed...

@writeblankspace
Copy link

thanks, you saved me sooo much time

@maniacalhamster
Copy link

What a time saver, thanks!

@JulianWww
Copy link

Thank you this is great time saver.

@S-AMH
Copy link

S-AMH commented Jan 21, 2022

Thank you!

@frceapp
Copy link

frceapp commented Jan 23, 2022

thank you

@sleien
Copy link

sleien commented Mar 1, 2022

Thank you!

@brokenprison
Copy link

Thanks Buddy!!!

@TorhamDev
Copy link

thanks :)

@TorhamDev
Copy link

Reverse :)

{
  '-----': '0', 
  '.----': '1', 
  '..---': '2', 
  '...--': '3',
  '....-': '4',
  '.....': '5',
  '-....': '6', 
  '--...': '7',
  '---..': '8',
  '----.': '9',
  '.-': 'a',
  '-...': 'b', 
  '-.-.': 'c', 
  '-..': 'd', 
  '.': 'e', 
  '..-.': 'f',
  '--.': 'g',
  '....': 'h',
  '..': 'i', 
  '.---': 'j',
  '-.-': 'k',
  '.-..': 'l',
  '--': 'm',
  '-.': 'n',
  '---': 'o',
  '.--.': 'p',
  '--.-': 'q',
  '.-.': 'r',
  '...': 's', 
  '-': 't',
  '..-': 'u', 
  '...-': 'v',
  '.--': 'w', 
  '-..-': 'x', 
  '-.--': 'y', 
  '--..': 'z', 
  '.-.-.-': '.',
  '--..--': ',',
  '..--..': '?', 
  '-.-.--': '!',
  '-....-': '-', 
  '-..-.': '/', 
  '.--.-.': '@',
  '-.--.': '(',
  '-.--.-': ')',
}


@LevaniVashadze
Copy link

LevaniVashadze commented Apr 26, 2022

Thanks saved me a bunch of typing.
This is what I built with it: https://github.com/LevaniVashadze/simple_morse_code_decoder_and_encoder

@paulrousset
Copy link

paulrousset commented Aug 24, 2022

Thank you !

@iamBijoyKar
Copy link

Thanks 👍

@radianceBe
Copy link

Great🔥💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment