Giter Club home page Giter Club logo

aoc2022-ts's Introduction

AoC Node Language Template

๐ŸŽ„ Advent of Code 2022 TypeScript ๐ŸŽ„

Solutions

Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day Day

Click a badge to go to the specific day.


Installation

All project dependencies are covered in the Dockerfile definition in the repository root.

Local

This assumes Docker as a runtime (feel free to use other runtimes). First ensure that Docker is installed. From the repository root, build an image and tag appropriately (e.g., aoc-ts:local):

docker build --tag aoc-ts:local --file Dockerfile .

Once logged in on Advent of Code, locate your session key; this shows up as the value for the cookie key in your request headers that you can pull out from browser network tab. Write this value to a .env file in the repository root under AOC_SESSION_KEY variable:

AOC_SESSION_KEY=<insert session key here>

From the repository root, instantiate a container with the current directory mounted and environment variables exported:

docker run --rm -it \
  --env-file .env \
  --volume $PWD:/aoc-ts/$(basename $PWD) \
  --workdir /aoc-ts/$(basename $PWD) \
  aoc-ts:local /bin/bash

GitHub Codespaces

Once logged in on Advent of Code, locate your session key; this shows up as the value for the cookie key in your request headers that you can pull out from browser network tab. Manage this value as an encrypted secret for your codespaces and name it AOC_SESSION_KEY.

Create a Codespace from your repository fork.

Develop with aocrunner

After getting setup, whether it's locally or on GitHub Codespaces, execute the aocrunner tool for the day of the challenge. This will prompt you to install esbuild once for the duration of the container.

pnpm start <day>

Example:

pnpm start 1

Results

Day 01
Time part 1: -
Time part 2: -
Both parts: -
Day 02
Time part 1: -
Time part 2: -
Both parts: -
Day 03
Time part 1: -
Time part 2: -
Both parts: -
Day 04
Time part 1: -
Time part 2: -
Both parts: -
Day 05
Time part 1: -
Time part 2: -
Both parts: -
Day 06
Time part 1: -
Time part 2: -
Both parts: -
Day 07
Time part 1: -
Time part 2: -
Both parts: -
Day 08
Time part 1: -
Time part 2: -
Both parts: -
Day 09
Time part 1: -
Time part 2: -
Both parts: -
Day 10
Time part 1: -
Time part 2: -
Both parts: -
Day 11
Time part 1: -
Time part 2: -
Both parts: -
Day 12
Time part 1: -
Time part 2: -
Both parts: -
Day 13
Time part 1: -
Time part 2: -
Both parts: -
Day 14
Time part 1: -
Time part 2: -
Both parts: -
Day 15
Time part 1: -
Time part 2: -
Both parts: -
Day 16
Time part 1: -
Time part 2: -
Both parts: -
Day 17
Time part 1: -
Time part 2: -
Both parts: -
Day 18
Time part 1: -
Time part 2: -
Both parts: -
Day 19
Time part 1: -
Time part 2: -
Both parts: -
Day 20
Time part 1: -
Time part 2: -
Both parts: -
Day 21
Time part 1: -
Time part 2: -
Both parts: -
Day 22
Time part 1: -
Time part 2: -
Both parts: -
Day 23
Time part 1: -
Time part 2: -
Both parts: -
Day 24
Time part 1: -
Time part 2: -
Both parts: -
Day 25
Time part 1: -
Time part 2: -
Both parts: -
Total stars: 0/50
Total time: 0ms

โœจ๐ŸŽ„๐ŸŽ๐ŸŽ„๐ŸŽ…๐ŸŽ„๐ŸŽ๐ŸŽ„โœจ

aoc2022-ts's People

Contributors

aglorei avatar

Watchers

James Cloos 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.