Skip to content

Instantly share code, notes, and snippets.

@sijad
Created April 2, 2017 19:56
Show Gist options
  • Save sijad/9627e3795394c6a2ac8a2769efbfe565 to your computer and use it in GitHub Desktop.
Save sijad/9627e3795394c6a2ac8a2769efbfe565 to your computer and use it in GitHub Desktop.
having fun with exercises suitable for small places
#!/usr/bin/env fish
# it's based on https://www.reddit.com/r/Fitness/comments/2t1su3/does_anyone_jump_rope_in_their_small_apartment/cnv6way/
set -l exercis_time 60
set -l exercis_circles 5
set -l exercises "mountain climbers" "push ups" "crunches" "bodyweight squats" "Now rest for $exercis_time seconds!"
set -l sleep_exercis_time (math $exercis_time + 5)
for _ in (seq 1 $exercis_circles)
for e in $exercises
spd-say "Do $e for $exercis_time seconds!"
sleep $sleep_exercis_time
for _ in (seq 1 4)
play -q -n synth 0.1 sin 600
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment