There was an error while loading. Please reload this page.
1 parent 7b86981 commit c3bda58Copy full SHA for c3bda58
2 files changed
config/holes.toml
@@ -755,20 +755,29 @@ preamble = '''
755
inclusive, each on their own line.
756
'''
757
758
-['Hexdump']
+[Hexdump]
759
category = 'Transform'
760
-experiment = 644
761
-links = []
762
preamble = '''
763
-Given a string, output the hexdump of the string as given by the xxd utility using the default settings, as described below.
+<p>
+ Given a string, output the hexdump of the string as given by the xxd
+ utility using the default settings, as described below.
764
+
765
766
+ Divide up the input string into groups of 16 bytes (16 octets). For each
767
+ group, print in order:
768
-Divide up the input string into groups of 16 bytes (16 octets). For each group, print in order:
769
<ul>
- <li> The (hexadecimal, lowercase) index of the starting octet, padded with zeros to eight hexadecimal digits
- <li> A single colon (<code>:</code>), followed by a single space.
- <li> 8 space-separated pairs of octets, with each pair printed as 4 hexadecimal digits
770
- <li> Spaces to pad to 51 bytes
771
- <li> The original 16 bytes, except with newline replaced with full stop (<code>.</code>)
+ <li>
+ The (hexadecimal, lowercase) index of the starting octet, padded with
772
+ zeros to eight hexadecimal digits
773
+ <li>A single colon (<code>:</code>), followed by a single space.
774
775
+ 8 space-separated pairs of octets, with each pair printed as 4
776
+ hexadecimal digits
777
+ <li>Spaces to pad to 51 bytes
778
779
+ The original 16 bytes, except with newline replaced with full stop
780
+ (<code>.</code>)
781
</ul>
782
783
db/a-schema.sql
@@ -25,9 +25,9 @@ CREATE TYPE hole AS ENUM (
25
'catalan-numbers', 'catalans-constant', 'christmas-trees', 'css-colors',
26
'cubes', 'diamonds', 'divisors', 'emirp-numbers', 'emojify',
27
'evil-numbers', 'fibonacci', 'fizz-buzz', 'foo-fizz-buzz-bar',
28
- 'fractions', 'happy-numbers', 'happy-numbers-long', 'intersection',
29
- 'isbn', 'kolakoski-constant', 'kolakoski-sequence', 'leap-years',
30
- 'levenshtein-distance', 'leyland-numbers', 'look-and-say',
+ 'fractions', 'happy-numbers', 'happy-numbers-long', 'hexdump',
+ 'intersection', 'isbn', 'kolakoski-constant', 'kolakoski-sequence',
+ 'leap-years', 'levenshtein-distance', 'leyland-numbers', 'look-and-say',
31
'lucky-numbers', 'lucky-tickets', 'morse-decoder', 'morse-encoder',
32
'musical-chords', 'niven-numbers', 'number-spiral', 'odious-numbers',
33
'ordinal-numbers', 'pangram-grep', 'pascals-triangle',
0 commit comments