Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a quick calculator for wolverine workout
  • Loading branch information
maxim committed Jan 2, 2015
1 parent df9bb4b commit 1dfcf44
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/wolverine
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby

# Usage:
# wolverine [1rm]

orm = ARGV[0].to_i

[ [[60, 65, 75, 75], '4x5' ],
[[65, 75, 85, 85], '4x4' ],
[[70, 80, 90, 90], '4x3' ],
[[40, 50, 60, 60], '4x10'] ].each.with_index do |(sets, desc), i|
puts "W#{i+1} " +
sets.map{|f| ((orm * (f / 100.0)) / 5.0).round * 5 }.join(',') +
" #{desc}"
end

0 comments on commit 1dfcf44

Please sign in to comment.