From c9e00f92ad3c0d6f59cd64d53e997139d2131b92 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 21 Dec 2016 23:01:42 -0500 Subject: Why doesn't day 21 work? The example works. I've stepped through like 20 operations manually. What the hell? --- input/day21.txt | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 input/day21.txt (limited to 'input') diff --git a/input/day21.txt b/input/day21.txt new file mode 100644 index 0000000..68bb697 --- /dev/null +++ b/input/day21.txt @@ -0,0 +1,100 @@ +swap position 5 with position 6 +reverse positions 1 through 6 +rotate right 7 steps +rotate based on position of letter c +rotate right 7 steps +reverse positions 0 through 4 +swap letter f with letter h +reverse positions 1 through 2 +move position 1 to position 0 +rotate based on position of letter f +move position 6 to position 3 +reverse positions 3 through 6 +rotate based on position of letter c +rotate based on position of letter b +move position 2 to position 4 +swap letter b with letter d +move position 1 to position 6 +move position 7 to position 1 +swap letter f with letter c +move position 2 to position 3 +swap position 1 with position 7 +reverse positions 3 through 5 +swap position 1 with position 4 +move position 4 to position 7 +rotate right 4 steps +reverse positions 3 through 6 +move position 0 to position 6 +swap position 3 with position 5 +swap letter e with letter h +rotate based on position of letter c +swap position 4 with position 7 +reverse positions 0 through 5 +rotate right 5 steps +rotate left 0 steps +rotate based on position of letter f +swap letter e with letter b +rotate right 2 steps +rotate based on position of letter c +swap letter a with letter e +rotate left 4 steps +rotate left 0 steps +move position 6 to position 7 +rotate right 2 steps +rotate left 6 steps +rotate based on position of letter d +swap letter a with letter b +move position 5 to position 4 +reverse positions 0 through 7 +rotate left 3 steps +rotate based on position of letter e +rotate based on position of letter h +swap position 4 with position 6 +reverse positions 4 through 5 +reverse positions 5 through 7 +rotate left 3 steps +move position 7 to position 2 +move position 3 to position 4 +swap letter b with letter d +reverse positions 3 through 4 +swap letter e with letter a +rotate left 4 steps +swap position 3 with position 4 +swap position 7 with position 5 +rotate right 1 step +rotate based on position of letter g +reverse positions 0 through 3 +swap letter g with letter b +rotate based on position of letter b +swap letter a with letter c +swap position 0 with position 2 +reverse positions 1 through 3 +rotate left 7 steps +swap letter f with letter a +move position 5 to position 0 +reverse positions 1 through 5 +rotate based on position of letter d +rotate based on position of letter c +rotate left 2 steps +swap letter b with letter a +swap letter f with letter c +swap letter h with letter f +rotate based on position of letter b +rotate left 3 steps +swap letter b with letter h +reverse positions 1 through 7 +rotate based on position of letter h +swap position 1 with position 5 +rotate left 1 step +rotate based on position of letter h +reverse positions 0 through 1 +swap position 5 with position 7 +reverse positions 0 through 2 +reverse positions 1 through 3 +move position 1 to position 4 +reverse positions 1 through 3 +rotate left 1 step +swap position 4 with position 1 +move position 1 to position 3 +rotate right 2 steps +move position 0 to position 5 \ No newline at end of file -- cgit 1.4.1 t/www/git.causal.agency/source-filter.sh?id=9b00ec17f2fd2d4aee1819fd85cd1f9a3ee51550&follow=1'>Switch git.causal.agency to hilex and htagmlJune McEnroe Still missing a shell lexer in hilex, but well... it's shell. 2021-01-13Try to return make substitutions as single tokensJune McEnroe 2021-01-13Shorten hilex class namesJune McEnroe 2021-01-13Move text "lexer" to hilex.cJune McEnroe 2021-01-13Try to return strings as single tokensJune McEnroe 2021-01-13Match [] as Operator in C lexerJune McEnroe 2021-01-13Fix C lexer to require a digit in a float literalJune McEnroe Otherwise ".l" is matched as Number. 2021-01-13Support long double in c.shJune McEnroe 2021-01-13Update Terminal.app coloursJune McEnroe God what is this garbage I only changed one colour. 2021-01-13Increase dark white brightness slightlyJune McEnroe 2021-01-13Add hilex example to htagml manualJune McEnroe 2021-01-12Style causal.agency like bin HTMLJune McEnroe 2021-01-12Avoid matching tag text inside HTML elementsJune McEnroe 2021-01-12Use hilex for up -hJune McEnroe 2021-01-12Use hilex for bin HTMLJune McEnroe 2021-01-12Don't output a pre in hilex by defaultJune McEnroe 2021-01-12Move hilex out of hilex directoryJune McEnroe 2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe 2021-01-12Remove hacky tagging from hilexJune McEnroe God that makes the lexers so much simpler. 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe