Giter Site home page Giter Site logo

Comments (10)

vexorian avatar vexorian commented on July 28, 2024

Adding something to string() renderer or making a whole new renderer would be needed.

There are contests who are not SRMs, what do you expect it to do in that case?

@shivawu: What if we allow people to create their own named renderers and add them to greed through config?

from topcoder-greed.

vexorian avatar vexorian commented on July 28, 2024

Maybe I can add a special parameter to ContestCategory to customize the "SRM " prefix.

from topcoder-greed.

iofik avatar iofik commented on July 28, 2024

Another option is to add two more fields to Contest:
${Contest.Type} and ${Contest.Number} -- or something like this.
This will allow me to create directory structure I want.
Also such structure can be used:
./SRM/499

from topcoder-greed.

wookayin avatar wookayin commented on July 28, 2024

Yeah, I think we can add some useful fields that can be used in our template system, as you've mentioned above.
But anyway, what do you expect for non-SRM rounds (e.g. Topcoder Open 2013 Round 1)?

from topcoder-greed.

iofik avatar iofik commented on July 28, 2024

Just rename them manually after contest is finished. =)
TCO do not occur too often.
I know, my naming scheme is flawed, but I kind of got used to it.

from topcoder-greed.

vexorian avatar vexorian commented on July 28, 2024

In PR #100 I added a way to do this:
codeRoot = "${Contest;category(srm=1,no-space,srm-text=) }"

It will make SRM 456 render as 456. The remaining contest names will render as TCO, TCHS or Other. But you can change them too.

from topcoder-greed.

wookayin avatar wookayin commented on July 28, 2024

New customization #100 is good itself, but seems too hacky for this purpose :-)

from topcoder-greed.

vexorian avatar vexorian commented on July 28, 2024

Still thinking allowing custom renderers is a good idea because people will always have very specific needs.

from topcoder-greed.

zen0wu avatar zen0wu commented on July 28, 2024

#100 is indeed something. But I agree that this should be merged into the Contest class so that
the Contest object can provide more information. I'll just merge it for now.

@iofik Does this solve your problem?

from topcoder-greed.

iofik avatar iofik commented on July 28, 2024

Guys, thanks for all your quick responses and help!

@shivawu Yes.

from topcoder-greed.

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.