Fork me on GitHub
#adventofcode
<
2023-11-19
>
borkdude14:11:34

Alrighty! You can now solve an AOC puzzle from the #C03U8L2NXNC playground. Input it fetches after you add your AOC token :) https://squint-cljs.github.io/squint/?src=KHJlcXVpcmUgJ1tjbG9qdXJlLnN0cmluZyA6YXMgc3RyXSkKCihhc3NvYy1pbiEgKGpzL2RvY3VtZW50LnF1ZXJ5U2VsZWN0b3IgIiNjb21waWxlZENvZGUiKSBbOnN0eWxlIDpkaXNwbGF5XSA6bm9uZSkKCihkZWZuIGFwcGVuZCBbc3RyXQogIChqcy9kb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkCiAgICAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiZGl2IikKICAgICAgKHNldCEgLWlubmVyVGV4dCBzdHIpKSkpCgooZGVmbiBeOmFzeW5jIGZldGNoLWlucHV0IFt5ZWFyIGRheV0KICAod2hlbi1ub3QgKGpzL2xvY2FsU3RvcmFnZS5nZXRJdGVtICJBT0NfVE9LRU4iKQogICAgKGxldCBbc2Vzc2lvbiAoanMvcHJvbXB0ICJZb3VyIEFPQyBzZXNzaW9uIGlzIG5lZWRlZCIpXQogICAgICAoanMvbG9jYWxTdG9yYWdlLnNldEl0ZW0gIkFPQ19UT0tFTiIgc2Vzc2lvbikpKQogIChsZXQgW3Jlc3AgKGpzLWF3YWl0IChqcy9mZXRjaCAoc3RyICJodHRwczovL2FveC1wcm94eS5ib3JrZHVkZS53b3JrZXJzLmRldj95ZWFyPSIgeWVhciAiJmRheT0iIGRheSAiJmFvYy10b2tlbj0iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGpzL2xvY2FsU3RvcmFnZS5nZXRJdGVtICJBT0NfVE9LRU4iKSkpKQogICAgICAgICAgdHh0IChqcy1hd2FpdCAoLnRleHQgcmVzcCkpXQogICAgICB0eHQpKQoKKGRlZm4gc3B5IFt4XQogIChqcy9jb25zb2xlLmxvZyB4KQogIHgpCgooZGVmIGlucHV0ICgtPj4gKGpzLWF3YWl0IChmZXRjaC1pbnB1dCAyMDIyIDEpKQogICAgICAgICAgICAgI19zcHkKICAgICAgICAgICAgIHN0ci9zcGxpdC1saW5lcwogICAgICAgICAgICAgKG1hcHYgcGFyc2UtbG9uZykpKQoKKGRlZm4gcGFydC0xCiAgW10KICAoLT4%2BIGlucHV0CiAgICAocGFydGl0aW9uLWJ5IG5pbD8pCiAgICAodGFrZS1udGggMikKICAgIChtYXAgIyhhcHBseSArICUpKQogICAgKGFwcGx5IG1heCkKICAgIGFwcGVuZCkpCgooZGVmbiBwYXJ0LTIKICBbXQogICgtPj4gaW5wdXQKICAgIChwYXJ0aXRpb24tYnkgbmlsPykKICAgICh0YWtlLW50aCAyKQogICAgKG1hcCAjKGFwcGx5ICsgJSkpCiAgICAoc29ydC1ieSAtKQogICAgKHRha2UgMykKICAgIChhcHBseSArKQogICAgYXBwZW5kKSkKCih0aW1lIChwYXJ0LTEpKQoodGltZSAocGFydC0yKSk%3D

🆒 9
borkdude15:11:14

https://squint-cljs.github.io/squint/?src=OzsgRW50ZXIgeW91ciBBT0MgdG9rZW4gaW4gdGhlIGZpZWxkIGFuZCBoaXQgY29tcGlsZQo7OyBBZnRlciB0aGlzLCB0aGUgdG9rZW4gc2hvdWxkIGJlIHNhdmVkIGluIGxvY2Fsc3RvcmFnZQoKKHJlcXVpcmUgJ1tjbG9qdXJlLnN0cmluZyA6YXMgc3RyXSkKCihhc3NvYy1pbiEgKGpzL2RvY3VtZW50LnF1ZXJ5U2VsZWN0b3IgIiNjb21waWxlZENvZGUiKSBbOnN0eWxlIDpkaXNwbGF5XSA6bm9uZSkKCih3aGVuLW5vdCAoanMvZG9jdW1lbnQucXVlcnlTZWxlY3RvciAiI2FvY190b2tlbiIpCiAgKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZCAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiaW5wdXQiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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wcm94eS5ib3JrZHVkZS53b3JrZXJzLmRldj95ZWFyPSIgeWVhciAiJmRheT0iIGRheSAiJmFvYy10b2tlbj0iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b2tlbikpKQogICAgICAgICAgdHh0IChqcy1hd2FpdCAoLnRleHQgcmVzcCkpXQogICAgICB0eHQpKSkKCihkZWZuIHNweSBbeF0KICAoanMvY29uc29sZS5sb2cgeCkKICB4KQoKKGRlZiBpbnB1dCAoLT4%2BIChqcy1hd2FpdCAoZmV0Y2gtaW5wdXQgMjAyMiAxKSkKICAgICAgICAgICAgICNfc3B5CiAgICAgICAgICAgICBzdHIvc3BsaXQtbGluZXMKICAgICAgICAgICAgIChtYXB2IHBhcnNlLWxvbmcpKSkKCihkZWZuIHBhcnQtMQogIFtdCiAgKC0%2BPiBpbnB1dAogICAgKHBhcnRpdGlvbi1ieSBuaWw%2FKQogICAgKHRha2UtbnRoIDIpCiAgICAobWFwICMoYXBwbHkgKyAlKSkKICAgIChhcHBseSBtYXgpCiAgICBhcHBlbmQpKQoKKGRlZm4gcGFydC0yCiAgW10KICAoLT4%2BIGlucHV0CiAgICAocGFydGl0aW9uLWJ5IG5pbD8pCiAgICAodGFrZS1udGggMikKICAgIChtYXAgIyhhcHBseSArICUpKQogICAgKHNvcnQtYnkgLSkKICAgICh0YWtlIDMpCiAgICAoYXBwbHkgKykKICAgIGFwcGVuZCkpCgoodGltZSAocGFydC0xKSkKKHRpbWUgKHBhcnQtMikp

borkdude15:11:55

I should probably adapt the squint playground to hide boilerplate code from the actual code the user wants to fiddle with

borkdude16:11:46

I'll be updating the link in this section of the website if I make more changes, should you be interested: https://github.com/squint-cljs/squint#advent-of-code