Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created July 14, 2014 06:18
Show Gist options
  • 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": "--..",
".": ".-.-.-",
",": "--..--",
"?": "..--..",
"!": "-.-.--",
"-": "-....-",
"/": "-..-.",
"@": ".--.-.",
"(": "-.--.",
")": "-.--.-"
}
@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!

@munsif-solkar
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 👍

@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 👍

@EnderSand
Copy link

saved time :)

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