Giter VIP home page Giter VIP logo

advent-of-code's Introduction

Advent of Code

My solutions for Advent of Code.

Run solutions by passing the year, day and puzzle input like so:

$ python aoc <year> <day> [input]

If no input is provided, and you have a .token file in the root of the project, the script will attempt to automatically download your puzzle input from the Advent of Code website. Steps to get your session token are in the Puzzle Input Tip section below.

Solutions

2015
2019
2021
2022
2023

Puzzle Input Tip

If you have your Advent of Code session token saved to a file like .token, you can download your test input with curl:

$ curl "https://adventofcode.com/2022/day/1/input" \
       --header "Cookie: $(cat .token)"

You can find your session token by looking at the Cookie header in the network tab in your browser tools when navigating to https://adventofcode.com/2022/day/1/input. Save the value of this Cookie header in .token. e.g.

session=XXXX

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.