Giter VIP home page Giter VIP logo

syssn13 / leetcode-rating-predictor Goto Github PK

View Code? Open in Web Editor NEW
534.0 534.0 54.0 5 MB

Leetcode Rating Predictor built with Node. Browser extension and web interface.

Home Page: https://lcpredictor.onrender.com/

License: MIT License

JavaScript 52.78% EJS 17.32% CSS 4.83% Python 4.46% Makefile 15.07% C++ 4.89% HTML 0.65%
browser-extension chrome-extension hacktoberfest hacktoberfest2022 javascript leetcode leetcode-ranking leetcode-rating-predictor nodejs nodejs-addon prediction rating-prediction

leetcode-rating-predictor's Introduction

leetcode-rating-predictor's People

Contributors

ajink7 avatar avada-kedavra avatar dependabot[bot] avatar developer-ishan avatar mirrorshih avatar rakhmedovrs avatar redheadphone avatar shuibinlong avatar strange-quark-007 avatar syssn13 avatar thetrio avatar vidithm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

leetcode-rating-predictor's Issues

Added Leetcode-cn to Chrome Extension

The English version:
Thank you very much for the author's plug-in. Could you add the url of the Chinese interface in Chrom Extension to facilitate the use of users in China
https://leetcode-cn.com/*
The original:
非常感谢作者的插件, 可否在chrom Extension中增加**区界面的网址 , 方便**区用户使用

The ranking information of weekly-contest-280 obtained is wrong

The reason for the error is probably the same as in #26 , Becaue this problem has occurred frequently recently,i think it should be delayed for a period of time to fetch the results or fetched the results after a period of time for verification.Finally, thank you for your time and effort on this project.This is a very useful project!

Generate sitemap.xml

A sitemap.xml file is required for the google search console so that ranking pages can be indexed on google. It should contain all contest ranking pages with the last updated date. Also, It should be automatically updated whenever new contest rankings are added.

Predictions are not available

The description says the predictions will be available after 15 minutes of contest or max 1hour in some cases. But there are no predictions till now of weekly contest 308

[ Heroku Alternatives ] Heroku is planning to start shutting down free dynos and data services

Starting November 28, 2022, we plan to stop offering free product plans and plan to start shutting down free dynos and data services. We will be sending out a series of email communications to affected users.

Heroku is planning to stop the free-tier service. Most of our workers and website are running on Heroku free-tier service. If you have any other platform in mind, please share it here.

Read more about it here: https://blog.heroku.com/next-chapter.

Hongkong is not a `country`

It is better to update header Country Name to Location(align with leetcode).
Region Name and Country/Region Name are alternative choices.

Application error

Hey, I guess Heroku has removed the free dynos that's why when I am opening the website it is showing an application error. Can you please check it?

Not displaying result

on dashbord its showing rating has been updated but on user list its just displaying '?' in place of current and new rateing.
image

Update website link in README.md

Currently, the README.md file has herokuapp link which doesn't work. Therefore, it needs an update from herokuapp to onrender.
Screenshot:

image

Some jobs related to fetching user-data are failing

This is the error message shown for the failed jobs:

TypeError: Cannot read property 'split' of undefined
    at fetchUserHelper (/opt/render/project/src/services/users.js:439:54)
    at updateUsers (/opt/render/project/src/services/users.js:464:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Queue.<anonymous> (/opt/render/project/src/services/job-queues/contestPredictionQueue.js:54:21)
TypeError: Cannot read property 'split' of undefined
    at fetchUserHelper (/opt/render/project/src/services/users.js:439:54)
    at updateUsers (/opt/render/project/src/services/users.js:464:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Queue.<anonymous> (/opt/render/project/src/services/job-queues/contestPredictionQueue.js:54:21)
TypeError: Cannot read property 'split' of undefined
    at fetchUserHelper (/opt/render/project/src/services/users.js:439:54)
    at updateUsers (/opt/render/project/src/services/users.js:464:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Queue.<anonymous> (/opt/render/project/src/services/job-queues/contestPredictionQueue.js:54:21)
TypeError: Cannot read property 'split' of undefined
    at fetchUserHelper (/opt/render/project/src/services/users.js:439:54)
    at updateUsers (/opt/render/project/src/services/users.js:464:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Queue.<anonymous> (/opt/render/project/src/services/job-queues/contestPredictionQueue.js:54:21)
TypeError: Cannot read property 'split' of undefined
    at fetchUserHelper (/opt/render/project/src/services/users.js:439:54)
    at updateUsers (/opt/render/project/src/services/users.js:464:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Queue.<anonymous> (/opt/render/project/src/services/job-queues/contestPredictionQueue.js:54:21)

Do not load all the contests metadata on home page

Currently, all the contests are being fetched In the contests table, and pagination is added to the fetched data. It would be better to fetch only one table page at a time. It will help to reduce the server-load and load the home page faster.

To achieve this, we can introduce API endpoints for the contest's metadata and use it in the front end. I'm not sure if can integrate API with data tables. If API integration is not possible, then we can go with custom pagination implementation.

Is the project dead?

Since the results for leetcode contest have not been being predicted already for several months I assume this will not be resolved and the project now is dead. Is it the case? Just want to make it official, so that people do not have empty hopes and do not waste their time.

Result not updated

The result for today's contest has not been updated yet... When will we get the result?

Show user's predicted rating when click on extension

Users can provide their username. After that whenever they click on the LC Predictor extension icon the pop page should also show the user's predicted rating for the latest contest.
It can be achieved by doing this:

  • User can enter/edit username on options/popup page.
  • Whenever the pop page is opened, the extension calls API for getting the latest predicted rating and shows it. A new endpoint can be added or we can utilize the existing endpoint in the backend api.

Rating update for Biweekly Contest 67

Hi @SysSn13

Wanted to know when will the update be out for Biweekly Contest 67? Generally the ratings are updated within 15 minutes after the contest is finished.

Thank you for maintaining this amazing website.

Rank shown is wrong

In weekly contest 254, my rank is shown as 4581 on your website whereas it is 4603. Presumably, you are loading the list at the exact time of completion of the contest whereas you should wait for a few minutes when the rank list is finalized.

[Tutorial Request] LCPredictor offline hwo to use?

Since few contests the results are not uploaded and I need to make a request for same.

@SysSn13 Maybe you can make some tutorial that how can we run it on our local machines so. It will be really helpful.

i tried the steps shown in readme file but it's not working for me.
Can you share some screen recording with commentory maybe how to predict rating on local machine.

Update contest rating for Biweekly and Weekly contests together.

Your prediction of contest rating is pretty close to the actual one though your site doesn't take into consideration when a user has participated in both the biweekly and weekly contests. It should be solved if you change the Previous rating in the weekly contest to the Expected new rating in the biweekly contest predicted by your site.


Biweekly_58


Weekly_253

Suggest to Predict again after Rejudging

The contests may be rejudged when new test cases are added. After rejudging, it will still take several days to update the rating. Therefore, I suggest to predict again sometime after the contests. For example, the predictor can be run 60 hours after the weekly contest is over, with both the biweekly contest (if exists) and the weekly contest being predicted.

Incorrect values of previous rating in predictions for weekly contest 325 and biweekly contest 94

In the predictions for this weekend's contests, incorrect previous ratings are shown on the predictions, resulting in incorrect final predictions. As per my understanding, this week's biweekly should display the previous rating as the value predicted after weekly-contest-324, but it has the rating value that was before the occurrence of that contest. It should lead to incorrect prediction results until this is corrected.

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.