summary refs log tree commit diff homepage
path: root/2019
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-01 00:25:59 -0500
committerJune McEnroe <june@causal.agency>2020-11-22 00:14:26 -0500
commitfbb0c3dd1ca55424745df8a658b11391ae172d61 (patch)
treeccb3885138905d559e86512fa2212417901341e8 /2019
parentSolve day 1 part 1 (diff)
downloadaoc-fbb0c3dd1ca55424745df8a658b11391ae172d61.tar.gz
aoc-fbb0c3dd1ca55424745df8a658b11391ae172d61.zip
Solve day 1 part 2
Diffstat (limited to '2019')
-rw-r--r--2019/day01-2.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/2019/day01-2.sh b/2019/day01-2.sh
new file mode 100644
index 0000000..806d56f
--- /dev/null
+++ b/2019/day01-2.sh
@@ -0,0 +1 @@
+sed 's,.*,a=&/3-2;b=a;while(b/3-2>0){b=b/3-2;a+=b};.+a,'|bc
500'>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