GithubHelp home page GithubHelp logo

marcolussetti / adventofcode-percenter Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 1.0 195 KB

From rank to top % in the Advent of Code

Home Page: https://aocstats.marcolussetti.com

License: MIT License

HTML 45.36% CSS 3.84% JavaScript 50.80%
advent-of-code hacktoberfest

adventofcode-percenter's Introduction

About Marco Lussetti

I'm a developer currently working as the IT Solutions Architect for the City of Kamloops in British Columbia, Canada.

You can find out more about me at marcolussetti.com.

๐ŸŽ“ Projects publicly featured primarily involve my undergraduate research work:

๐Ÿ”จ Other projects:

adventofcode-percenter's People

Contributors

marcolussetti avatar oleksiyrudenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

oleksiyrudenko

adventofcode-percenter's Issues

Y-axis tick label may occasionally require roundup

The tool is great! It is informative and visually appealing.
Clearly shows the days one might get up earlier to score better.
Just noticed that one of the Y-axis ticks went wild (obviously famous JS 0.1+0.2 problem)
image

Seems like it can be quick-fixed here by replacing return rankOnly ? value : `${value * 100}%` with return rankOnly ? value : `${~~(value * 100)}%`

Handle Advent of Code Part 2 Timer

Many of us use this chrome extension which adds a third column to show the "delta time" as seen in the screen capture there.

Presently your display does not work with it but it would be nice if your code recognized that column and ignored it.

CORS request fails

Network request fails with 403 response on "Compute!" action at main.js line 22:
fetch(`https://marcors.ferned.net/https://adventofcode.com/${year}/stats`)

Not sure if it is an issue on marcors side or adventofcode has added any restrictions on their side.

Part 1 rate may have wrong base for percentage calculation

Have checked stats right after task completion and noticed the following anomaly in the chart:
AoC-percenter-121213-145pc-x

The data table also seems not really right:
AoC-percenter-121213-NaN

Quick calcs showed that Part 1 rank is rated rather against gold stars total count rather than that for silvers + golds.

Given that current day Golds == 1986 (G) and Silver == 1696 (S)
and participant's Part 1 (silver star) rank == 2857 (PS) and Part 2 (golden rank) == 1905
then participant's Part 1 rate should be PS / (G + S) == 2857 / (1986 + 1696) = 0.77 == 77%

I am not sure if the implemented formula for Part 1 rate is PS / G or PS / S. Looks more like it is PS / G. At least in the given example PS / G == 2857 / 1986 results in ~144% which correlates with what the chart shows.

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.