Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created July 14, 2014 06:18
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save mohayonao/094c71af14fe4791c5dd to your computer and use it in GitHub Desktop.
Save mohayonao/094c71af14fe4791c5dd to your computer and use it in GitHub Desktop.
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": "--..",
".": ".-.-.-",
",": "--..--",
"?": "..--..",
"!": "-.-.--",
"-": "-....-",
"/": "-..-.",
"@": ".--.-.",
"(": "-.--.",
")": "-.--.-"
}
@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 👍

@tcitrogg
Copy link

tcitrogg commented Nov 9, 2022

Great🔥💜

@mzelder
Copy link

mzelder commented Mar 4, 2023

Thanks ! 🍏

@rlahmaidi
Copy link

simple work, but a life saving one, thank you.

@hogo1510
Copy link

thank you so much, saved me a good 20 minutes. currently making a morse decoder/encoder for a school project.

@frostrap
Copy link

frostrap commented Nov 4, 2023

thank you bro for saving me time!

@fosterchild1
Copy link

thanks g

@navinfeb15
Copy link

Thanks for the resource ✌️

@GregoryGromov
Copy link

Guys, thank you very much

@nuxeh
Copy link

nuxeh commented Apr 17, 2024

Incredible, just what i wanted, thanks 👍

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