Giter VIP home page Giter VIP logo

aoc's Introduction

aoc

An umbrella project for Advent of Code exercises.

INSTALLATION

USAGE

aoc init

Temporary usage

lang/${LANG}/run ${YEAR} ${DAY}
lang/${LANG}/test ${YEAR}

DESIGN PHILOSOPHY

I like to use AoC each year to learn a new programming language. Unfortunately, this means installing a new programming language each year, keeping it updated as needed, and remembering to uninstall it once AoC is complete for the year. Toolchain managers like asdf take some of the pain away, but not all of it.

Another thing I'd like to try is using a year's solutions in one language to help learn another. Depending on how I go about it, I could be downloading and storing multiple copies of the contest data. I'd like to avoid this if possible.

I decided to see if I could leverage Docker. Several advantages came to mind:

  • Docker containers can mount storage, and this storage can be shared by several containers. I'll need to take care to not write to storage from more than one container.
  • Docker images for programming languages are commonly available, so working with a new language should be as simple as finding an image and creating a container from it.

Authenticate

Follow these instructions to get your auth token and paste it in the prompt below.

  1. Open https://adventofcode.com/auth/login in a web browser.
  2. Open your browser's developer tools (usually F12) and switch to the network tab.
  3. On the Advent of Code login page, click on the link for the auth provider of your choice.
  4. Follow the steps to complete authentication. This should result in a logged-in Advent of Code page.
  5. Switch back to the developer tools and look for a network request starting with "callback?" - click on it.
  6. Under Response headers, find the "set-cookie" header and look for a string starting with "session=".
  7. Paste everything after "session=" until the semicolon into the prompt below.

ROADMAP

  • aoc-get to fetch data

aoc's People

Contributors

krisalyssa avatar

Watchers

 avatar  avatar  avatar

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.