Giter Site home page Giter Site logo

Can you add a feature to show ongoing competitions on different website. Currently using alt+F9 it shows competitions which will start in future. about icie HOT 6 CLOSED

unneon avatar unneon commented on May 29, 2024
Can you add a feature to show ongoing competitions on different website. Currently using alt+F9 it shows competitions which will start in future.

from icie.

Comments (6)

unneon avatar unneon commented on May 29, 2024 2

Just so you know, I created a Discord for developing ICIE. Feel free to join and ask me if you are stuck on something!

from icie.

nadimakhtar97 avatar nadimakhtar97 commented on May 29, 2024 1

I actually don't have any idea about rust language. But with your help, I will try my best.

from icie.

unneon avatar unneon commented on May 29, 2024

If I recall correctly, I did not add this originally because CodeChef has a lot of ongoing contests, which would clog up the view. But now I'm thinking I can just display them at the bottom of the list with an [ONGOING] prefix or something.

It seems pretty easy to do: adding some bool is_ongoing for tasks, disable skipping parsing ongoing contests, add a prefix when displaying them. I will try to implement it sometime soon when I find the time. If you want to take a stab at this yourself, I will be happy to help!

from icie.

unneon avatar unneon commented on May 29, 2024

Sure! If you want to learn Rust, check out the Rust Book or Rust By Example, which are both really good. This change should not require a lot of knowledge about the language though, so you can also just look specific things up in RBE or ask me if you don't understand something. :)

After that, you can start with compiling the plugin and running the compiled extension to make sure everything works - the details on how to do that are in CONTRIBUTING.md. Tell me if anything there does not work though or is unclear since it's best to fix such stuff anyway.

There are three changes this feature will require. First, add an is_ongoing field to the ContestDetails struct. Second, add code that sets this field to true or false (the hardest part, see next paragraph). Third, add an if here that adds the [ONGOING] prefix to the option name, and change the sorting order here so that ongoing contests are displayed last.

I suggest to start with the first and third part, and only then do the second one properly. To start with, just set is_ongoing as always true for CodeChef, and always false for AtCoder and Codeforces. Then you can check if everything is compiling, and if displaying the [ONGOING] prefix works. I'll explain how to actually set is_ongoing to real values once you get to this point - leave a comment here and I'll respond.

If you get stuck at any point, or my explanations are unclear (they probably are...), please tell me here! I'll be happy to help.

from icie.

nadimakhtar97 avatar nadimakhtar97 commented on May 29, 2024

Thanks for considering me!!

from icie.

unneon avatar unneon commented on May 29, 2024

I have added scanning CodeChef permanent/ongoing contests, since this already worked on Codeforces/AtCoder. When I release 0.7.22, they will be displayed at the bottom of the contest scan list.

from icie.

Related Issues (20)

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.