Git Product home page Git Product logo

obalunenko / advent-of-code Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 21.61 MB

This repository contains solutions for Advent Of Code puzzles and cli tool to run solutions to get answers for input on site.

Home Page: https://adventofcode.com/

License: MIT License

Go 99.97% Dockerfile 0.03%
advent-of-code advent-of-code-go advent-of-code-2019 go advent-of-code-2020 aoc2019 aoc2020 aoc2015 aoc2016 aoc2017

advent-of-code's Introduction

GitHub go.mod Go version GoDoc Latest release artifacts Lint & Test & Build & Release Lint Test & Build Go Report Card codecov Quality Gate Status coverbadger-tag-do-not-edit

advent-of-code

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.

This repository contains solutions for puzzles and cli tool to run solutions to get answers for input on site.

Implemented solutions

2023 Results

Day Part 1 Part 2
Day 1

2022 Results

Day Part 1 Part 2
Day 1

2021 Results

Day Part 1 Part 2
Day 1
Day 2
Day 3
Day 4
Day 5
Day 6
Day 7

2020 Results

Day Part 1 Part 2
Day 1
Day 2

2019 Results

Day Part 1 Part 2
Day 1
Day 2
Day 3
Day 4

2018 Results

Day Part 1 Part 2
Day 1
Day 2

2017 Results

Day Part 1 Part 2
Day 1
Day 2

2016 Results

Day Part 1 Part 2
Day 1
Day 2

2015 Results

Day Part 1 Part 2
Day 1
Day 2
Day 3

Usage of aoc-cli

  1. Download binary from Latest release artifacts

  2. Your https://adventofcode.com session token is required for downloading and caching the inputs.

  3. Set your Advent of Code session token in the environment variable AOC_SESSION, or pass explicitly via -session flag during aoc-cli execution

  4. Run aoc-cli run and follow instructions

Cli support optional metrics, to enable them you can use following flags:

    --elapsed, -e  Enables elapsed time metric
    --bench, -b    Enables benchmark metric

All available flags, commands and usage:

USAGE:
   aoc-cli [global options] command [command options] [arguments...]
   
COMMANDS:
   run      Runs advent-of-code application
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)
   
NAME:
   aoc-cli run - Runs advent-of-code application

USAGE:
   aoc-cli run [command options] [arguments...]

OPTIONS:
   --elapsed, -e              Enables elapsed time metric (default: false)
   --bench, -b                Enables benchmark metric (default: false)
   --session value, -s value  AOC auth session to get inputs (default: "<will get value from env ${AOC_SESSION} by default>") [$AOC_SESSION]
   --help, -h     show help (default: false)

Demo

asciicast

advent-of-code's People

Contributors

deepsourcebot avatar dependabot[bot] avatar obalunenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

a1ip elvinagam

advent-of-code's Issues

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.