GithubHelp home page GithubHelp logo

rock-gym-pro-analysis's Introduction

Hive Booking

This is a collection of scripts and templates I use to collect data from The Hive's Rock Gym Pro booking page and make illustrations. The scripts make use of Ruby, R, Nemerle (a .NET language), and Inkscape. The scripts generate three types of illustrations: schedule, fast bookings, and timelines.

Schedule

Schedule

Creates an illustration colour-coding The Hive's schedule by the speed with which each slot fills up.

  1. Run dl.rb for a week to record the status of every slot every minute. The script records data to disk once a day.
  2. Run consolidate.rb to combine the daily records into a single file.
  3. Run update schedule.rb to fill the SVG template schedule.svg with the collected data. The result is written to analysis/schedule.svg.

Fast Bookings

Fast Bookings

Creates a diagram These scripts use the file produced by consolidate.rb to get the slot schedule. It is enough to run dl.rb only briefly to get enough data for this. However, time starts.rb benefits from running for one or more weeks.

  1. Run get schedule.rb to get the slot schedule from the consolidated file.
  2. Run time starts.rb to randomly visit each slot several times near its start.
  3. Run analyze starts.r to generate a density plot for fast starts in analysis/starts.svg.
  4. Incorporate the plot into fast booking.svg.

Timeline

Timeline

Creates an illustration showing each slot's status during the whole duration it is available. These scripts use the file produced by consolidate.rb to get slot status statistics. Run dl.rb for two weeks to gather the data.

  1. Compile and run plot timelines.n to produce cancellation statistics and the slot diagram in analysis/timelines.png.
  2. Run analyze timelines.r to generate the slot availability density plot in analysis/cancels.svg.
  3. Incorporate the diagrams into timelines.svg.

rock-gym-pro-analysis's People

Contributors

don-reba avatar

Watchers

 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.