Skip to main content
Commonmark migration
Source Link

#JavaScript (ES6), 252 bytes

JavaScript (ES6), 252 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Note the first newline is a carriage return.

##Hexdump:

Hexdump:

00000000: 6274 6f61 600d c3a6 c296 32c2 8ac3 adc2  btoa`.....2.....
00000010: 8ac3 85c3 96c2 8ac3 aac3 9ac2 be26 026a  .............&.j
00000020: c2b8 c2ac c2b2 29c2 9ac2 996b 1ec2 aec3  ......)....k....
00000030: b6c2 adc2 bac2 bbc2 a665 c280 c39e 6963  .........e....ic
00000040: 28c2 aec3 98c2 ac5d 6b1e c2ae c3b6 c29b  (......]k.......
00000050: c2a1 c285 2d5a c397 c2a6 c2a6 c28a c39a  ....-Z..........
00000060: 5ac2 b7c2 9cc2 b5c3 a5c2 9dc2 b9c3 86c2  Z...............
00000070: a665 c286 04c2 b6c3 88c2 9672 c28a c396  .e.........r....
00000080: c28a 75c2 82c2 85c2 aa2c 5dc2 802e c2b5  ..u......,].....
00000090: 6168 c2ae c39b c2a7 6966 c39e c296 56c2  ah......if....V.
000000a0: 967d c3aa c39a c2b5 760e 71c3 8bc2 abc2  .}......v.q.....
000000b0: adc2 a9c2 967a c395 c2a8 6ec3 b8c2 9ac2  .....z....n.....
000000c0: 9968 c29b c2a1 c296 602e 7265 706c 6163  .h......`.replac
000000d0: 6528 2f5b 572d 5a3d 5d2f 672c 633d 3e60  e(/[W-Z=]/g,c=>`
000000e0: 202c 0a2e 605b 2257 5859 5a22 2e73 6561   ,..`["WXYZ".sea
000000f0: 7263 6828 6329 5d7c 7c22 2229            rch(c)]||"")

Edit: I found out that pasting into Firefox console changes carriage returns into line feeds. (Face-palm) Here is a whitespace safe version for two more bytes:

btoa`\ræ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,\n.`["WXYZ".search(c)]||"")

#JavaScript (ES6), 252 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Note the first newline is a carriage return.

##Hexdump:

00000000: 6274 6f61 600d c3a6 c296 32c2 8ac3 adc2  btoa`.....2.....
00000010: 8ac3 85c3 96c2 8ac3 aac3 9ac2 be26 026a  .............&.j
00000020: c2b8 c2ac c2b2 29c2 9ac2 996b 1ec2 aec3  ......)....k....
00000030: b6c2 adc2 bac2 bbc2 a665 c280 c39e 6963  .........e....ic
00000040: 28c2 aec3 98c2 ac5d 6b1e c2ae c3b6 c29b  (......]k.......
00000050: c2a1 c285 2d5a c397 c2a6 c2a6 c28a c39a  ....-Z..........
00000060: 5ac2 b7c2 9cc2 b5c3 a5c2 9dc2 b9c3 86c2  Z...............
00000070: a665 c286 04c2 b6c3 88c2 9672 c28a c396  .e.........r....
00000080: c28a 75c2 82c2 85c2 aa2c 5dc2 802e c2b5  ..u......,].....
00000090: 6168 c2ae c39b c2a7 6966 c39e c296 56c2  ah......if....V.
000000a0: 967d c3aa c39a c2b5 760e 71c3 8bc2 abc2  .}......v.q.....
000000b0: adc2 a9c2 967a c395 c2a8 6ec3 b8c2 9ac2  .....z....n.....
000000c0: 9968 c29b c2a1 c296 602e 7265 706c 6163  .h......`.replac
000000d0: 6528 2f5b 572d 5a3d 5d2f 672c 633d 3e60  e(/[W-Z=]/g,c=>`
000000e0: 202c 0a2e 605b 2257 5859 5a22 2e73 6561   ,..`["WXYZ".sea
000000f0: 7263 6828 6329 5d7c 7c22 2229            rch(c)]||"")

Edit: I found out that pasting into Firefox console changes carriage returns into line feeds. (Face-palm) Here is a whitespace safe version for two more bytes:

btoa`\ræ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,\n.`["WXYZ".search(c)]||"")

JavaScript (ES6), 252 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Note the first newline is a carriage return.

Hexdump:

00000000: 6274 6f61 600d c3a6 c296 32c2 8ac3 adc2  btoa`.....2.....
00000010: 8ac3 85c3 96c2 8ac3 aac3 9ac2 be26 026a  .............&.j
00000020: c2b8 c2ac c2b2 29c2 9ac2 996b 1ec2 aec3  ......)....k....
00000030: b6c2 adc2 bac2 bbc2 a665 c280 c39e 6963  .........e....ic
00000040: 28c2 aec3 98c2 ac5d 6b1e c2ae c3b6 c29b  (......]k.......
00000050: c2a1 c285 2d5a c397 c2a6 c2a6 c28a c39a  ....-Z..........
00000060: 5ac2 b7c2 9cc2 b5c3 a5c2 9dc2 b9c3 86c2  Z...............
00000070: a665 c286 04c2 b6c3 88c2 9672 c28a c396  .e.........r....
00000080: c28a 75c2 82c2 85c2 aa2c 5dc2 802e c2b5  ..u......,].....
00000090: 6168 c2ae c39b c2a7 6966 c39e c296 56c2  ah......if....V.
000000a0: 967d c3aa c39a c2b5 760e 71c3 8bc2 abc2  .}......v.q.....
000000b0: adc2 a9c2 967a c395 c2a8 6ec3 b8c2 9ac2  .....z....n.....
000000c0: 9968 c29b c2a1 c296 602e 7265 706c 6163  .h......`.replac
000000d0: 6528 2f5b 572d 5a3d 5d2f 672c 633d 3e60  e(/[W-Z=]/g,c=>`
000000e0: 202c 0a2e 605b 2257 5859 5a22 2e73 6561   ,..`["WXYZ".sea
000000f0: 7263 6828 6329 5d7c 7c22 2229            rch(c)]||"")

Edit: I found out that pasting into Firefox console changes carriage returns into line feeds. (Face-palm) Here is a whitespace safe version for two more bytes:

btoa`\ræ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,\n.`["WXYZ".search(c)]||"")
added 1178 characters in body
Source Link
intrepidcoder
  • 2.7k
  • 13
  • 36

#JavaScript (ES6), 172252 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Base 64 encoded version to preserve non-printable characters. Note the first newline is a carriage return.

##Hexdump:

eval00000000: 6274 6f61 600d c3a6 c296 32c2 8ac3 adc2  btoa`.....2.....
00000010: 8ac3 85c3 96c2 8ac3 aac3 9ac2 be26 026a  .............&.j
00000020: c2b8 c2ac c2b2 29c2 9ac2 996b 1ec2 aec3  ......)....k....
00000030: b6c2 adc2 bac2 bbc2 a665 c280 c39e 6963  .........e....ic
00000040: 28c2 aec3 98c2 ac5d 6b1e c2ae c3b6 c29b  (atob......]k.......
00000050: c2a1 c285 2d5a c397 c2a6 c2a6 c28a c39a  ....-Z..........
00000060: 5ac2 b7c2 9cc2 b5c3 a5c2 9dc2 b9c3 86c2  Z...............
00000070: a665 c286 04c2 b6c3 88c2 9672 c28a c396  .e.........r....
00000080: c28a 75c2 82c2 85c2 aa2c 5dc2 802e c2b5  ..u......,].....
00000090: 6168 c2ae c39b c2a7 6966 c39e c296 56c2  ah......if....V.
000000a0: 967d c3aa c39a c2b5 760e 71c3 8bc2 abc2  .}......v.q.....
000000b0: adc2 a9c2 967a c395 c2a8 6ec3 b8c2 9ac2  .....z....n.....
000000c0: 9968 c29b c2a1 c296 602e 7265 706c 6163  .h......`.replac
000000d0: 6528 2f5b 572d 5a3d 5d2f 672c 633d 3e60  e("YnRvYWAN5pYyiu2KxdaK6tq+JgJquKyyKZqZax6u9q26u6ZlgN5pYyiu2Kxdax6u9puhhS1a16amitpat5y15Z25xqZlhgS2yJZyitaKdYKFqixdgC61YWiu26dpZt6WVpZ96tq1dg5xy6utqZZ61ahu+JqZaJuhYC5yZXBsYWNlKC9bVy1aPV0vZyxjPT5gICwKLmBbIldYWVoiLnNlYXJjaChjKV18fCIiKQ=="/[W-Z=]/g,c=>`
000000e0: 202c 0a2e 605b 2257 5859 5a22 2e73 6561   ,..`["WXYZ".sea
000000f0: 7263 6828 6329 5d7c 7c22 2229            rch(c)]||"");

Edit: I found out that pasting into Firefox console changes carriage returns into line feeds. (Face-palm) Here is a whitespace safe version for two more bytes:

btoa`\ræ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,\n.`["WXYZ".search(c)]||"")

#JavaScript (ES6), 172 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Base 64 encoded version to preserve non-printable characters. Note the first newline is a carriage return.

eval(atob("YnRvYWAN5pYyiu2KxdaK6tq+JgJquKyyKZqZax6u9q26u6ZlgN5pYyiu2Kxdax6u9puhhS1a16amitpat5y15Z25xqZlhgS2yJZyitaKdYKFqixdgC61YWiu26dpZt6WVpZ96tq1dg5xy6utqZZ61ahu+JqZaJuhYC5yZXBsYWNlKC9bVy1aPV0vZyxjPT5gICwKLmBbIldYWVoiLnNlYXJjaChjKV18fCIiKQ=="));

#JavaScript (ES6), 252 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Note the first newline is a carriage return.

##Hexdump:

00000000: 6274 6f61 600d c3a6 c296 32c2 8ac3 adc2  btoa`.....2.....
00000010: 8ac3 85c3 96c2 8ac3 aac3 9ac2 be26 026a  .............&.j
00000020: c2b8 c2ac c2b2 29c2 9ac2 996b 1ec2 aec3  ......)....k....
00000030: b6c2 adc2 bac2 bbc2 a665 c280 c39e 6963  .........e....ic
00000040: 28c2 aec3 98c2 ac5d 6b1e c2ae c3b6 c29b  (......]k.......
00000050: c2a1 c285 2d5a c397 c2a6 c2a6 c28a c39a  ....-Z..........
00000060: 5ac2 b7c2 9cc2 b5c3 a5c2 9dc2 b9c3 86c2  Z...............
00000070: a665 c286 04c2 b6c3 88c2 9672 c28a c396  .e.........r....
00000080: c28a 75c2 82c2 85c2 aa2c 5dc2 802e c2b5  ..u......,].....
00000090: 6168 c2ae c39b c2a7 6966 c39e c296 56c2  ah......if....V.
000000a0: 967d c3aa c39a c2b5 760e 71c3 8bc2 abc2  .}......v.q.....
000000b0: adc2 a9c2 967a c395 c2a8 6ec3 b8c2 9ac2  .....z....n.....
000000c0: 9968 c29b c2a1 c296 602e 7265 706c 6163  .h......`.replac
000000d0: 6528 2f5b 572d 5a3d 5d2f 672c 633d 3e60  e(/[W-Z=]/g,c=>`
000000e0: 202c 0a2e 605b 2257 5859 5a22 2e73 6561   ,..`["WXYZ".sea
000000f0: 7263 6828 6329 5d7c 7c22 2229            rch(c)]||"")

Edit: I found out that pasting into Firefox console changes carriage returns into line feeds. (Face-palm) Here is a whitespace safe version for two more bytes:

btoa`\ræ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,\n.`["WXYZ".search(c)]||"")
Source Link
intrepidcoder
  • 2.7k
  • 13
  • 36

#JavaScript (ES6), 172 bytes

btoa`
æ2íÅÖêÚ¾&j¸¬²)k®ö­º»¦eÞic(®Ø¬]k®ö¡-Zצ¦ÚZ·µå¹Æ¦e¶ÈrÖuª,].µah®Û§ifÞV}êÚµvqË«­©zÕ¨nøh¡`.replace(/[W-Z=]/g,c=>` ,
.`["WXYZ".search(c)]||"")

Base 64 encoded version to preserve non-printable characters. Note the first newline is a carriage return.

eval(atob("YnRvYWAN5pYyiu2KxdaK6tq+JgJquKyyKZqZax6u9q26u6ZlgN5pYyiu2Kxdax6u9puhhS1a16amitpat5y15Z25xqZlhgS2yJZyitaKdYKFqixdgC61YWiu26dpZt6WVpZ96tq1dg5xy6utqZZ61ahu+JqZaJuhYC5yZXBsYWNlKC9bVy1aPV0vZyxjPT5gICwKLmBbIldYWVoiLnNlYXJjaChjKV18fCIiKQ=="));