Gym application











up vote
-2
down vote

favorite
1












I currently want to create my first project app, that will help user to start an adventure in a gym. The code that I provided is for set by given earlier value the spinners with body parts. I've got some methods that I think can be shorter, but I don't know how I can make it. First, I'll explain how it all should work. Let's take a closer look at every method that I have to make everything work.



The first one called getMondayBodyParts. It has to search in a database for three Strings with a value choose by us body parts from previous layout (to make it more clear - in a previous layout we just have a three Spinners where we can select which body parts we want to train in Monday).



public void getMondayBodyParts(){
Cursor cursor = db.getMondaySplitPlan();
while (cursor.moveToNext()){
mondayFirstBodyPartFirstExerciseString = cursor.getString(1);
mondaySecondBodyPartFirstExerciseString = cursor.getString(2);
mondayThirdBodyPartFirstExerciseString = cursor.getString(3);
}
}


The second method is populateSpinners, which just populates spinners which will display exercises for specified by us body parts.



public List<String> populateSpinners(String string) {
List<String> data = new ArrayList<>();
switch (string) {
case "shoulders": {
data = db.getShouldersData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "chest": {
data = db.getChestData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "back": {
data = db.getBackData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "biceps": {
data = db.getBicepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "triceps": {
data = db.getTricepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "forearm": {
data = db.getForearmData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "stomach": {
data = db.getAbsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "legs": {
data = db.getLegsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "calf": {
data = db.getCalfData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}

}
return data;
}


The third method that I want to change is called setMondayFirstBodyPartExercises. I don't know how exactly it should look like, but I want to just paste three Strings which will populate spinners with specified data. For example, let's assume that we want to train like legs, biceps, triceps (then this method will sent value from those Strings to populateSpinners and it will show exercises. For now, I've created three methods which practically look the same with one difference between them.



public void setMondayFirstBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondaySecondBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondayThirdBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}


I want to change this line:



List<String> data = populateSpinners(bodyPartString);


I think it will be better when I call this method three times, and everything will be populated just by one method, instead of three different ones.










share|improve this question









New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    What's this app for? Tell us, and make that the title of the question — see How to Ask. Is this an online programming exercise or something? If so, please provide a link in addition to the description.
    – 200_success
    9 hours ago










  • I've edited post. :)
    – Tymbar
    6 hours ago















up vote
-2
down vote

favorite
1












I currently want to create my first project app, that will help user to start an adventure in a gym. The code that I provided is for set by given earlier value the spinners with body parts. I've got some methods that I think can be shorter, but I don't know how I can make it. First, I'll explain how it all should work. Let's take a closer look at every method that I have to make everything work.



The first one called getMondayBodyParts. It has to search in a database for three Strings with a value choose by us body parts from previous layout (to make it more clear - in a previous layout we just have a three Spinners where we can select which body parts we want to train in Monday).



public void getMondayBodyParts(){
Cursor cursor = db.getMondaySplitPlan();
while (cursor.moveToNext()){
mondayFirstBodyPartFirstExerciseString = cursor.getString(1);
mondaySecondBodyPartFirstExerciseString = cursor.getString(2);
mondayThirdBodyPartFirstExerciseString = cursor.getString(3);
}
}


The second method is populateSpinners, which just populates spinners which will display exercises for specified by us body parts.



public List<String> populateSpinners(String string) {
List<String> data = new ArrayList<>();
switch (string) {
case "shoulders": {
data = db.getShouldersData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "chest": {
data = db.getChestData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "back": {
data = db.getBackData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "biceps": {
data = db.getBicepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "triceps": {
data = db.getTricepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "forearm": {
data = db.getForearmData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "stomach": {
data = db.getAbsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "legs": {
data = db.getLegsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "calf": {
data = db.getCalfData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}

}
return data;
}


The third method that I want to change is called setMondayFirstBodyPartExercises. I don't know how exactly it should look like, but I want to just paste three Strings which will populate spinners with specified data. For example, let's assume that we want to train like legs, biceps, triceps (then this method will sent value from those Strings to populateSpinners and it will show exercises. For now, I've created three methods which practically look the same with one difference between them.



public void setMondayFirstBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondaySecondBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondayThirdBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}


I want to change this line:



List<String> data = populateSpinners(bodyPartString);


I think it will be better when I call this method three times, and everything will be populated just by one method, instead of three different ones.










share|improve this question









New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    What's this app for? Tell us, and make that the title of the question — see How to Ask. Is this an online programming exercise or something? If so, please provide a link in addition to the description.
    – 200_success
    9 hours ago










  • I've edited post. :)
    – Tymbar
    6 hours ago













up vote
-2
down vote

favorite
1









up vote
-2
down vote

favorite
1






1





I currently want to create my first project app, that will help user to start an adventure in a gym. The code that I provided is for set by given earlier value the spinners with body parts. I've got some methods that I think can be shorter, but I don't know how I can make it. First, I'll explain how it all should work. Let's take a closer look at every method that I have to make everything work.



The first one called getMondayBodyParts. It has to search in a database for three Strings with a value choose by us body parts from previous layout (to make it more clear - in a previous layout we just have a three Spinners where we can select which body parts we want to train in Monday).



public void getMondayBodyParts(){
Cursor cursor = db.getMondaySplitPlan();
while (cursor.moveToNext()){
mondayFirstBodyPartFirstExerciseString = cursor.getString(1);
mondaySecondBodyPartFirstExerciseString = cursor.getString(2);
mondayThirdBodyPartFirstExerciseString = cursor.getString(3);
}
}


The second method is populateSpinners, which just populates spinners which will display exercises for specified by us body parts.



public List<String> populateSpinners(String string) {
List<String> data = new ArrayList<>();
switch (string) {
case "shoulders": {
data = db.getShouldersData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "chest": {
data = db.getChestData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "back": {
data = db.getBackData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "biceps": {
data = db.getBicepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "triceps": {
data = db.getTricepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "forearm": {
data = db.getForearmData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "stomach": {
data = db.getAbsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "legs": {
data = db.getLegsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "calf": {
data = db.getCalfData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}

}
return data;
}


The third method that I want to change is called setMondayFirstBodyPartExercises. I don't know how exactly it should look like, but I want to just paste three Strings which will populate spinners with specified data. For example, let's assume that we want to train like legs, biceps, triceps (then this method will sent value from those Strings to populateSpinners and it will show exercises. For now, I've created three methods which practically look the same with one difference between them.



public void setMondayFirstBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondaySecondBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondayThirdBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}


I want to change this line:



List<String> data = populateSpinners(bodyPartString);


I think it will be better when I call this method three times, and everything will be populated just by one method, instead of three different ones.










share|improve this question









New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I currently want to create my first project app, that will help user to start an adventure in a gym. The code that I provided is for set by given earlier value the spinners with body parts. I've got some methods that I think can be shorter, but I don't know how I can make it. First, I'll explain how it all should work. Let's take a closer look at every method that I have to make everything work.



The first one called getMondayBodyParts. It has to search in a database for three Strings with a value choose by us body parts from previous layout (to make it more clear - in a previous layout we just have a three Spinners where we can select which body parts we want to train in Monday).



public void getMondayBodyParts(){
Cursor cursor = db.getMondaySplitPlan();
while (cursor.moveToNext()){
mondayFirstBodyPartFirstExerciseString = cursor.getString(1);
mondaySecondBodyPartFirstExerciseString = cursor.getString(2);
mondayThirdBodyPartFirstExerciseString = cursor.getString(3);
}
}


The second method is populateSpinners, which just populates spinners which will display exercises for specified by us body parts.



public List<String> populateSpinners(String string) {
List<String> data = new ArrayList<>();
switch (string) {
case "shoulders": {
data = db.getShouldersData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "chest": {
data = db.getChestData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "back": {
data = db.getBackData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "biceps": {
data = db.getBicepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "triceps": {
data = db.getTricepsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "forearm": {
data = db.getForearmData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "stomach": {
data = db.getAbsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "legs": {
data = db.getLegsData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}
case "calf": {
data = db.getCalfData();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
break;
}

}
return data;
}


The third method that I want to change is called setMondayFirstBodyPartExercises. I don't know how exactly it should look like, but I want to just paste three Strings which will populate spinners with specified data. For example, let's assume that we want to train like legs, biceps, triceps (then this method will sent value from those Strings to populateSpinners and it will show exercises. For now, I've created three methods which practically look the same with one difference between them.



public void setMondayFirstBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondaySecondBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}

public void setMondayThirdBodyPartExercises(String bodyPartString, Spinner first, Spinner second, Spinner third) {
List<String> data = populateSpinners(bodyPartString);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, data);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
first.setAdapter(adapter);
second.setAdapter(adapter);
third.setAdapter(adapter);
}


I want to change this line:



List<String> data = populateSpinners(bodyPartString);


I think it will be better when I call this method three times, and everything will be populated just by one method, instead of three different ones.







java sql android database






share|improve this question









New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 8 mins ago









Jamal

30.2k11115226




30.2k11115226






New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









Tymbar

11




11




New contributor




Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Tymbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    What's this app for? Tell us, and make that the title of the question — see How to Ask. Is this an online programming exercise or something? If so, please provide a link in addition to the description.
    – 200_success
    9 hours ago










  • I've edited post. :)
    – Tymbar
    6 hours ago














  • 1




    What's this app for? Tell us, and make that the title of the question — see How to Ask. Is this an online programming exercise or something? If so, please provide a link in addition to the description.
    – 200_success
    9 hours ago










  • I've edited post. :)
    – Tymbar
    6 hours ago








1




1




What's this app for? Tell us, and make that the title of the question — see How to Ask. Is this an online programming exercise or something? If so, please provide a link in addition to the description.
– 200_success
9 hours ago




What's this app for? Tell us, and make that the title of the question — see How to Ask. Is this an online programming exercise or something? If so, please provide a link in addition to the description.
– 200_success
9 hours ago












I've edited post. :)
– Tymbar
6 hours ago




I've edited post. :)
– Tymbar
6 hours ago















active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");

StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "196"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Tymbar is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f208396%2fgym-application%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Tymbar is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Tymbar is a new contributor. Be nice, and check out our Code of Conduct.













Tymbar is a new contributor. Be nice, and check out our Code of Conduct.












Tymbar is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f208396%2fgym-application%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'