GithubHelp home page GithubHelp logo

advent-of-code's Introduction

advent-of-code

Solutions

Gradle tasks

Leaderboard slope chart

generate a slope chart for a private leaderboard

How-to

  • clone repository

  • store Advent of Code Cookie request header in file cookie.txt

  • run command:

./gradlew leaderboardSlopeChart --year=<year> --id=<leaderboard-id> [--top=<top>] [--force] \
   [--from=<from>] [--until=<until>] [--final]
  • year: year of advent calendar

  • id: ID of private leaderboard

  • top: number of top members displayed in slope chart

  • force: force download of leaderboard JSON
    By default, download is skipped if file build/aoc/leaderboards/<year>/<id>.json already exists.
    ⚠️ Please don't make frequent automated requests to Advent of code API.
    ⚠️ Avoid download of leaderboard JSON more often than once every 15 minutes (900 seconds).

  • from: first day displayed in slope chart (default: 1)

  • until: last day displayed in slope chart (default: 25)

  • min: minimum required number of appearances in top for members not in top on last day (default: 2)

  • final: include final ranking in slope chart

  • Slope chart is generated in build/aoc/leaderboards/<year>/<id>.json.png

Example

./gradlew leaderboardSlopeChart --year=2023 --id=12345 --top=10    # example uses a fake id

Leaderboard slope chart

Init day

generate base sources for requested day

How-to

  • clone repository

  • run command:

./gradlew initDay [--day=<day>] [--year=<year>] [--force]
  • day: day in advent calendar (defaults to current day of month)
  • year: year of advent calendar (defaults to current year)
  • force: overwrite existing sources

Fetch day input

fetch input of current user for requested day

How-to

  • clone repository

  • store Advent of Code Cookie request header in file cookie.txt

  • run command:

./gradlew fetchDayInput [--day=<day>] [--year=<year>]
  • day: day in advent calendar (defaults to current day of month)
  • year: year of advent calendar (defaults to current year)

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.