Code Monkey home page Code Monkey logo

workout-helper's Introduction

workout-helper

Small tool to help with workout timing, and guided sections with a simple robo-coach.

Back story

In spring, in the the lockdown, I did workout at home based on the workout scripts that my kettlebell instructor gave me.

The workouts followed similar patterns, with little variance. Warmup at the start and stretch at the end were part of every session. Between those the sections had different approximate times. Once per week we had a tabata session with isometric movements.

Now that the pandemic lockdown has arrived again, I come prepared for the second act.

I'm happy with the result, from now on I do not need to check the time again, and a calm voice guides me through these workouts.

Getting started

Currently I do not ship binaries, or docker image, so in order to run it you need to have golang installed, I recommend the latest version.

The base workout consists of 10 minutes of warmup, 50 minutes of a general task, 10 minutes of stretching.

go run .

The code can accept one string parameter. Tabata is marked with t, and general sections are marked with s\d+. They have to be separated by a space character. Order counts.

e.g: 't s10 s20' means:

  1. Warmup
  2. A Tabata session
  3. 10 minutes for one task
  4. 20 minutes for another task
  5. Stretching
go run . 't s10 s20'

You can skip warmup with --skip-warmup flag before the workout string.

You can skip stretching with --skip-stretch flag before the workout string.

workout-helper's People

Contributors

budavariam 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.