Comments (10)
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.
Maybe I can add a special parameter to ContestCategory to customize the "SRM " prefix.
from topcoder-greed.
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.
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.
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.
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.
New customization #100 is good itself, but seems too hacky for this purpose :-)
from topcoder-greed.
Still thinking allowing custom renderers is a good idea because people will always have very specific needs.
from topcoder-greed.
#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.
Guys, thanks for all your quick responses and help!
@shivawu Yes.
from topcoder-greed.
Related Issues (20)
- Cannot configure pathPattern and fileNamePattern HOT 7
- Not recognizing config file HOT 1
- Config error: Config object needed, ConfigString found HOT 3
- The return value of long[] is attached with "L" in testcase.sample HOT 3
- Question: Is it possible to detect "practice room"? HOT 5
- Allow camelCase properties in templates
- Ecosystems for community-created contents (templates) HOT 5
- Code generation fails on SRM 627 Div 2 500 point problem HOT 3
- Is it possible to get a hook when the contest starts or to get contest time when generating code?
- Is it possible to get a raw string of the problem description? HOT 3
- Is there a support to generate the tests by supplying the problem statement offline?
- Grid containing whitespaces are not displayed in HTML properly HOT 1
- Submission from terminal without going to arena HOT 1
- Tests are not working in Xcode 6.1 (Passed : 0/0 cases) HOT 1
- About Release and Roadmap plans HOT 1
- OverWrite existing workspace
- SRM 676 div2 Farmville the test code does not work
- Filtering source code before submit
- Is the default language configurable?
- "data" causes compile error in C++17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from topcoder-greed.