GithubHelp home page GithubHelp logo

micahhauge / advent-of-code-2023 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holdercp/advent-of-code-2023

0.0 0.0 0.0 24 KB

๐ŸŽ… Solutions for Advent of Code 2023 written in TypeScript

License: MIT License

JavaScript 8.76% TypeScript 91.24%

advent-of-code-2023's Introduction

Advent of Code 2023

๐ŸŽ… Solutions for Advent of Code 2023 written in TypeScript.

I'm using Bun this year. Find instructions to install the Bun executable here.

Set Up

Install the dependencies using Bun.

bun install

Create a .env file at the root that contains your Advent session cookie. You can find this cookie value by inspecting the network request made to https://adventofcode.com/2023/day/DAY_NUMBER/input in the browser.

# .env

ADVENT_SESSION=YOUR_SESSION_COOKIE

Scaffolding Each Day

I've provided a scaffold package.json script that will set up the files needed for solving both parts for each day, as well as pulling your unique input. It will output them in a solutions/DAY_NUMBER directory.

The first argument should be the day number and the remaining arguments should be the words in the day's title. The title argument is optional.

# The following will create a solutions/01 directory and place all necessary files there.
# It will also replace the recap.md title placeholder with "The First Day"

bun scaffold 1 The First Day

Solving Each Day

Run the solve package.json script to execute the solution code for a given day.

bun solve 1

advent-of-code-2023's People

Contributors

holdercp 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.