GithubHelp home page GithubHelp logo

hirajanwin / google_codejam_stats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vstrimaitis/google_codejam_stats

0.0 0.0 0.0 41.5 MB

Website for examining statistics of Google Code Jam rounds

Home Page: https://vstrimaitis.github.io/google_codejam_stats/

Python 8.93% TypeScript 77.89% CSS 9.58% HTML 3.60%

google_codejam_stats's Introduction

Google Code Jam Stats

Website for examining statistics of Google Code Jam rounds

Why?

There are some great website already up (e.g. https://a2oj.com/CodeJamTools/ and https://www.go-hero.net/jam), but they only provide data for rounds up to the year 2017. This website uses the new Google Competitions API, which was launched in 2018, to collect and display some statistics about past rounds.

Development

The project uses these technologies:

  • Python 3.6 for retrieving round data
  • React + TypeScript for the frontend

The script scores.py is used to download and save data about a given Google Code Jam round. It downloads the scoreboard 200 entries at a time, because (at least when I developed this), the API seemed to allow getting at most 200 entries with one request. So the script retrieves the data in windows of size 200 until all the results are downloaded.

To run the script, use the command line python scores.py <round_id>, where round_id is the ID of the round and can be extracted from the URL of the contest, which you want to download the data for. For example, the URL of the Qualification Round 2019 is https://codingcompetitions.withgoogle.com/codejam/round/0000000000051705. The ID of this round in this case is 0000000000051705.

The folder client/ holds the client code. It is written using React and TypeScript. The actual data, downloaded by the mentioned script is stored in client/public/round_data/ and served as a static resource. It would, of course, be better to use a database, but this website is hosted on Github Pages, which only allows static sites.

You can run the app locally by opening a terminal in the client/ folder and running npm start.

google_codejam_stats's People

Contributors

dependabot[bot] avatar gerdasi avatar vstrimaitis avatar

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.