<< Back to Programming Forum   Search

Posts 1 - 7 of 7   
Days of Christmas (in Morse code): 12/24/2018 20:49:06


DanWL 
Level 63
Report
Had nothing better to do, so here it is:

--- -. / - .... . / .---- ... - / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
.- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / ..--- -. -.. / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / ...-- .-. -.. / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / ....- - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / ..... - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / -.... - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / --... - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
--... / ... .-- .- -. ... / .- -....- ... .-- .. -- -- .. -. --. --..--
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / ---.. - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
---.. / -- .- .. -.. ... / .- -....- -- .. .-.. -.- .. -. --. --..--
--... / ... .-- .- -. ... / .- -....- ... .-- .. -- -- .. -. --. --..--
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / ----. - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
----. / .-.. .- -.. .. . ... / -.. .- -. -.-. .. -. --. --..--
---.. / -- .- .. -.. ... / .- -....- -- .. .-.. -.- .. -. --. --..--
--... / ... .-- .- -. ... / .- -....- ... .-- .. -- -- .. -. --. --..--
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / .---- ----- - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
.---- ----- / .-.. --- .-. -.. ... / .- -....- .-.. . .- .--. .. -. --. --..--
----. / .-.. .- -.. .. . ... / -.. .- -. -.-. .. -. --. --..--
---.. / -- .- .. -.. ... / .- -....- -- .. .-.. -.- .. -. --. --..--
--... / ... .-- .- -. ... / .- -....- ... .-- .. -- -- .. -. --. --..--
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / .---- .---- - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
.---- .---- / .--. .. .--. . .-. ... / .--. .. .--. .. -. --. --..--
.---- ----- / .-.. --- .-. -.. ... / .- -....- .-.. . .- .--. .. -. --. --..--
----. / .-.. .- -.. .. . ... / -.. .- -. -.-. .. -. --. --..--
---.. / -- .- .. -.. ... / .- -....- -- .. .-.. -.- .. -. --. --..--
--... / ... .-- .- -. ... / .- -....- ... .-- .. -- -- .. -. --. --..--
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-

--- -. / - .... . / .---- ..--- - .... / -.. .- -.-- / --- ..-. / -.-. .... .-. .. ... - -- .- ... --..-- / -- -.-- / - .-. ..- . / .-.. --- ...- . / ... . - / - --- / -- . /
.---- ..--- / -.. .-. ..- -- -- . .-. ... / -.. .-. ..- -- -- .. -. --. --..--
.---- .---- / .--. .. .--. . .-. ... / .--. .. .--. .. -. --. --..--
.---- ----- / .-.. --- .-. -.. ... / .- -....- .-.. . .- .--. .. -. --. --..--
----. / .-.. .- -.. .. . ... / -.. .- -. -.-. .. -. --. --..--
---.. / -- .- .. -.. ... / .- -....- -- .. .-.. -.- .. -. --. --..--
--... / ... .-- .- -. ... / .- -....- ... .-- .. -- -- .. -. --. --..--
-.... / --. . . ... . / .- -....- .-.. .- -.-- .. -. --. --..--
..... / --. --- .-.. -.. / .-. .. -. --. ... --..--
....- / -.-. .- .-.. .-.. .. -. --. / -... .. .-. -.. ... --..--
...-- / ..-. .-. . -. -.-. .... / .... . -. ... --..--
..--- / - ..- .-. - .-.. . / -.. --- ...- . ...
.- -. -.. / .- / .--. .- .-. - .-. .. -.. --. . / .. -. / .- / .--. . .- .-. / - .-. . . .-.-.-
Days of Christmas (in Morse code): 12/24/2018 22:14:57


Zero2
Level 57
Report
Absolutely beatiful. I cried as I read this. :')
Days of Christmas (in Morse code): 12/25/2018 01:01:08


Cata Cauda
Level 59
Report
Morse code is a dieing language.
Days of Christmas (in Morse code): 12/30/2018 02:54:54


h
Level 53
Report
@DanWL It's sad, that a one-liner in Python could do what you did in a long time (encoding this into Morse code).

So you should check for programming alternatives next time you do something like this.

This happened to me too. I was writing the "Hello, World!" program for my programming language ("Turing Machine But Way Worse"; https://tio.run/#tmbww or https://github.com/MilkyWay90/Turing-Machine-But-Way-Worse), and it took me 3 hours.

After a few days, it occurred to me to write a program which could convert any print statement in Python 3 to Turing Machine But Way Worse. It took me 5 minutes to write the program to support printing anything, compared to 3 hours to print "Hello, World!" to the console.
Days of Christmas (in Morse code): 12/30/2018 03:06:18


DanWL 
Level 63
Report
Took me about 1 hour (I already had defined how to convert characters to Morse). Did it in C++. The line breaks are intensional.
Days of Christmas (in Morse code): 12/30/2018 03:09:46


Sora【𝓒𝓡𝓔𝓦】
Level 57
Report
i decided to decipher your song into something i can understand.. here goes

On the first day of Christmas
my true love sent to me:
A Partridge in a Pear Tree

On the second day of Christmas
my true love sent to me:
2 Turtle Doves
and a Partridge in a Pear Tree


On the third day of Christmas
my true love sent to me:
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the fourth day of Christmas
my true love sent to me:
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the fifth day of Christmas
my true love sent to me:
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the sixth day of Christmas
my true love sent to me:
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree




On the seventh day of Christmas
my true love sent to me:
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the eighth day of Christmas
my true love sent to me:
8 Maids a Milking
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the ninth day of Christmas
my true love sent to me:
9 Ladies Dancing
8 Maids a Milking
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the tenth day of Christmas
my true love sent to me:
10 Lords a Leaping
9 Ladies Dancing
8 Maids a Milking
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the eleventh day of Christmas
my true love sent to me:
11 Pipers Piping
10 Lords a Leaping
9 Ladies Dancing
8 Maids a Milking
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree

On the twelfth day of Christmas
my true love sent to me:
12 Drummers Drumming
11 Pipers Piping
10 Lords a Leaping
9 Ladies Dancing
8 Maids a Milking
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree
Days of Christmas (in Morse code): 12/30/2018 03:41:07


DanWL 
Level 63
Report
You didn’t quite decipher it correctly.
Posts 1 - 7 of 7