Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #43

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Test #43

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
12 changes: 11 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ group :jekyll_plugins do
end
gem 'classifier-reborn'
gem 'gsl'
gem 'html-proofer'
gem "minimal-mistakes-jekyll", "~> 4.24"

group :development, :test do
gem 'html-proofer'
gem "rspec"
gem "selenium-webdriver"
gem "webdrivers"
gem "puma"
gem "capybara"
gem "rack-jekyll"
gem "pry"
end
16 changes: 16 additions & 0 deletions _posts/2019-10-10-rts-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,19 @@ I app'en kan du også tracke din restitution blot ved at besvare nogle enkle sub
Du bestemmer selv, hvor detaljeret din træningsdagbog skal være. Træningsdagbogen bliver dit eget redksab til at tracke udviklingen i træningen, så du kan vurdere dine træningsrutiners effekt på din træning.

RTS 'App'en' er målrettet mod styrkeløft og øget styrke, men du kan også bruge den i forbindelse med hypertrofi.
=======
Når du laver unilaterale øvelser som fx bulgarian split-squat, så laver du øvelsen på samme måde på begge sider. RTS anbefaler, at du starter med din svageste side, og den svageste side bestemmer RPE for øvelsen.

### Supersets og Giant-sets

Du kan skrive i noterne, hvordan du gennemfører sættene. Du programmerer altså alle øvelserne som almindelige sæt, men noterer i noterne, hvordan du vælger at gennemføre træningsprogrammet.

### Densitet (tid det tager at udføre sættene)

Jeg synes densiteten kunne have været interessant også at registrere. Densiteten er den tid, det tager, at udføre arbejdet. Det er et træningsparameter, der vil fortælle noget om du er blevet stærkere over tid.

{% include figure image_path="https://articles.reactivetrainingsystems.com/wp-content/uploads/2018/03/JQE_0759-1024x731.jpg" caption="Billede fra Reactive Training Systems" alt="Billede fra Reactive Training Systems" %}

## TRAC din restitution

I app'en kan du også tracke din restitution blot ved at besvare nogle enkle subjektive spørgsmål om ømhed mv.
169 changes: 169 additions & 0 deletions assets/js/1rm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
let motionsplan = {};

motionsplan.Estimate1RM = function(weight, repetitions) {
var weight, repetitions;

weight = weight;
repetitions = repetitions;

function getBrzycki() {
return Math.round(weight * (36 / (37 - repetitions)));
}

function getEpley() {
return Math.round((1 + (0.0333 * repetitions)) * weight);
}

function getLander() {
return Math.round((100 * weight) / (101.3 - 2.67123 * repetitions));
}

function getLombardi() {
return Math.round(weight * (Math.pow(repetitions, 0.1)));
}

function getMayhew() {
return Math.round((100 * weight) / (52.2 + (41.9 * Math.exp(-0.055 * repetitions))));
}

function getOconnor() {
return Math.round(weight * (1 + 0.025 * repetitions));
}

function getWathan() {
return Math.round((100 * weight) / (48.8 + (53.8 * Math.exp(-0.075 * repetitions))));
}

/**
* Advanced - originally from motion-online.dk.
* https://www.motion-online.dk/rm-beregner/
* https://www.motion-online.dk/rm-beregner-teoretisk-baggrund/
*/
function getMOL(trained, sex) {
var trained, koen;
trained = trained;
koen = sex;

if (koen == 1 && trained == 1) {
var a = -2.1021,
b = 102.52;
}
else if (koen == 1 && trained == 0) {
var a = -2.6578,
b = 102.65;
}
else if (koen == 0 && trained == 1) {
var a = -2.1275,
b = 101.59;
}
else if (koen == 0 && trained == 0) {
var a = -2.6914,
b = 102.14;
}
if (repetitions == 1) {
var repmax = weight;
}
else {
var repmax = weight / (a * repetitions + b) * 100;
}

return repmax;
}

/**
* From motion-online RM calculator
*/
function getMOLBryzki()
{
var a = -2.78, b = 102.78;
if (repetitions == 1) {
var repmax = weight;
}
else {
var repmax = weight / (a * repetitions + b) * 100;
}

return repmax;
}

/*
$scope.percentOfRm = function(rm, percent) {
return rm * percent / 100;
};

$scope.calcRM = function(rm, number) {
var a = -2.78;
var b = 102.78;
return Math.round(((a*number+b)*rm/100) * Math.pow(10,1))/Math.pow(10,1);
};*/

var publicAPI = {
getBrzycki: getBrzycki,
getEpley: getEpley,
getLander: getLander,
getLombardi: getLombardi,
getMayhew: getMayhew,
getOconnor: getOconnor,
getWathan: getWathan,
getMOL: getMOL,
getMOLBryzki : getMOLBryzki

};

return publicAPI;
}

module.exports = motionsplan;

/* Bryzki og avanceret fra motion-online

function Calculate1(thisform)
{
reps = thisform.reps.value;
weight = thisform.weight.value;
trained = thisform.trained.value*1;
koen = thisform.koen.value*1;
bformel = 0
bformel = thisform.bformel.value*1;
if (koen == 1 && trained == 1 && bformel == 0) {
a = -2.1021, b = 102.52;
}
if (koen == 1 && trained == 0 && bformel == 0) {
a = -2.6578, b = 102.65;
}
if (koen == 0 && trained == 1 && bformel == 0) {
a = -2.1275, b = 101.59;
}
if (koen == 0 && trained == 0 && bformel == 0) {
a = -2.6914, b = 102.14;
}
if (bformel == 1) {
a = -2.78, b = 102.78;
}
if (reps == 1) {
repmax = weight; }
else {
repmax=weight/(a*reps+b)*100; }
thisform.rm1.value=Math.round((repmax) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm2.value=Math.round(((a*2+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm3.value=Math.round(((a*3+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm4.value=Math.round(((a*4+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm5.value=Math.round(((a*5+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm6.value=Math.round(((a*6+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm8.value=Math.round(((a*8+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm10.value=Math.round(((a*10+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm12.value=Math.round(((a*12+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.rm15.value=Math.round(((a*15+b)*repmax/100) * Math.pow(10,1))/Math.pow(10,1)
thisform.p100.value=Math.round((repmax) * Math.pow(10,1))/Math.pow(10,1)
thisform.p95.value=Math.round((repmax*0.95) * Math.pow(10,1))/Math.pow(10,1)
thisform.p90.value=Math.round((repmax*0.90) * Math.pow(10,1))/Math.pow(10,1)
thisform.p85.value=Math.round((repmax*0.85) * Math.pow(10,1))/Math.pow(10,1)
thisform.p80.value=Math.round((repmax*0.80) * Math.pow(10,1))/Math.pow(10,1)
thisform.p75.value=Math.round((repmax*0.75) * Math.pow(10,1))/Math.pow(10,1)
thisform.p70.value=Math.round((repmax*0.70) * Math.pow(10,1))/Math.pow(10,1)
thisform.p60.value=Math.round((repmax*0.60) * Math.pow(10,1))/Math.pow(10,1)
thisform.p50.value=Math.round((repmax*0.50) * Math.pow(10,1))/Math.pow(10,1)
thisform.p40.value=Math.round((repmax*0.40) * Math.pow(10,1))/Math.pow(10,1)
return false;
}
*/
165 changes: 165 additions & 0 deletions assets/js/cooper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
let motionsplan = {};

motionsplan.CooperClinicMortalityRiskIndex = function(age, hr, bloodpressure, diabetes, smoker, bmi, fitness) {
var age, hr, bloodpressure, diabetes, smoker, bmi, fitness;

age = age;
hr = hr;
bloodpressure = bloodpressure;
diabetes = diabetes;
smoker = smoker;
bmi = bmi;
fitness = fitness;

function getAgePoint() {
var point;
if (age < 44) {
point = 0
}
else if (age < 49) {
point = 3;
}
else if (age < 54) {
point = 6;
}
else if (age < 59) {
point = 8;
}
else if (age < 64) {
point = 9;
}
else if (age < 69) {
point = 10;
}

return point;
}

function getHrPoint() {
if (hr >= 80) {
return 2;
}
return 0;
}

function getBMIPoint() {
if (bmi > 35) {
return 3;
}

return 0;
}

function getFitnessPoint() {
if (fitness < 35) {
return 2;
}

return 0;
}

function getRiskPoint() {
var point = getAgePoint() + getHrPoint() + bloodpressure + diabetes + smoker + getBMIPoint() + getFitnessPoint();
return point;
}

function getAbsoluteRisk() {
var risk;
var point = getRiskPoint();
if (point == 0) {
risk = 1.8;
}
else if (point == 1) {
risk = 2.2;
}
else if (point == 2) {
risk = 2.6;
}
else if (point == 3) {
risk = 3.1;
}
else if (point == 4) {
risk = 3.7;
}
else if (point == 5) {
risk = 4.4;
}
else if (point == 6) {
risk = 5.4;
}
else if (point == 7) {
risk = 6.5;
}
else if (point == 8) {
risk = 7.9;
}
else if (point == 9) {
risk = 9.7;
}
else if (point == 10) {
risk = 11.8;
}
else if (point == 11) {
risk = 14;
}
else if (point == 12) {
risk = 16.5;
}
else if (point == 13) {
risk = 20.4;
}
else if (point == 14) {
risk = 23.2;
}
else if (point == 15) {
risk = 28.1;
}
else if (point == 16) {
risk = 32.1;
}
else {
risk = 46.7;
}

return risk;
}

function getRelativeRisk() {
var risk2, risk3;
var risk = getAbsoluteRisk();
if (age < 34) {
risk2 = risk / 2.4;
}
else if (age < 44) {
risk2 = risk / 2.6;
}
else if (age < 49) {
risk2 = risk / 4.6;
}
else if (age < 54) {
risk2 = risk / 8.2;
}
else if (age < 59) {
risk2 = risk / 12.6;
}
else if (age < 64) {
risk2 = risk / 16.1;
}
else {
risk2 = risk / 18.1;
}
risk3 = Math.round((risk2) * Math.pow(10, 1)) / Math.pow(10, 1);
return risk3;
}

var publicAPI = {
getRiskPoint: getRiskPoint,
getAbsoluteRisk: getAbsoluteRisk,
getRelativeRisk: getRelativeRisk

};

return publicAPI;
}

module.exports = motionsplan;
Loading