Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 549 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 549 Bytes

Advent of Code

My solutions for Advent of Code, there are probably more elegant solutions but ¯\_(ツ)_/¯

To print the answer for a days puzzle (might be helpful for checking your answer before submission)

Open the browsers console on an input page and paste in this line

url = window.location.pathname.split('/')
eval(await fetch(`https://raw.githubusercontent.com/judaschwartz/AOC/main/answers-${url[1]}/day-${url[3].padStart(2, 0)}.js`).then(r=>r.text()))