Git Product home page Git Product logo

adventofcode's Introduction

Advent Of Code Typescript

My solutions for Advent of Code.

Repo designed to minimize time fucking around and get straight to code. See it in action:

Code_C0oogG5KYu.mp4

Usage

Ensure you have node and npm, have ran npm i, and have set up your AOC token

You can specify various start modes

# asks user what day they want to launch
npm start # equivalent to npm start ask

# instantly opens today's AOC
npm start today

# waits up to 15 minutes for tomorrow's AOC to release, starting the instant it's available
# behaves like npm start today if tomorrow's AOC won't come out within 15 minutes
npm start race

If you aren't using VSCode or WSL, change the code in src/start.ts to fit how you launch your browser/editor

Advent Of Code Token

  1. go to any AOC input in your browser, such as 2022/day/1/input
  2. ctrl+shift+i to open devtools
  3. go to the "Network" tab of the devtools and refresh the page
  4. click the request that looks like "200 GET INPUT"
  5. click the "Cookies" tab of the request view, and copy the value of session

an example of where you should be looking

Once you have your token, create .env with your token, using .env.example for help with formatting.

adventofcode's People

Contributors

codef53 avatar

Watchers

 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.