dragonslayerx / codeforcesimporter Goto Github PK
View Code? Open in Web Editor NEWJust a small script for importing user statistics and past submissions on codeforces
Just a small script for importing user statistics and past submissions on codeforces
I get some errors, I tried running it using pyhon2.7, python, python2 and python3. output this one is for 2.7
For example all solutions for problems of contest id 600 can be inside a subdirectories named 600 and so on where as the other files (html, css etc.) can be in the main directory.
hey @dragonslayerx
currently we use cfiignore to keep track of submissions that have been already fetched from the CF server.
I got an alternative approach which seems efficient (correct me if i'm wrong) and re-usable for generating visualizations easily!
We can store submissions in an sqlite file!
this sqlite file can act as the table from which we can query to generate the classification html and/or visualization html.
for classification data something like "select * from local_sqlite_table group by problem_type".
for visualization data (say date vs submission count) "select date as submission_date, count(*) as submission_count from local_sqlite_table group by date"
Advantages of this approach:
Approach for sync:
we can maintain something called 'last-sync-time' .
every time we sync, we can fetch all submissions whose date > last-sync-time
gym contest cannot neither be classified nor their submissions can be imported. add feature to ignore the gym submissions.
For people who rely on codeforces to practice visualizing their submission data would be a great feature to have!
Visualizations can help in
A picture is worth a thousand words..
The API provides enough data so as to be able to save the solutions with proper extension rather than '.txt' files. The user can then run a file them directly rather that having to rename it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.