-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
237 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,21 @@ In the interest of fostering an open and welcoming environment, we as contributo | |
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
### Behaviors that contributes to creating a positive environment include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
- Using kind and inclusive language. | ||
- Valuing and appreciating different views and opinions. | ||
- Give and accept constructive feedback. | ||
- Focusing on the collective good and growth of the team. | ||
- Showing compassion and understanding toward others in the community. | ||
|
||
Examples of unacceptable behavior by participants include: | ||
### unacceptable behaviors by participants include: | ||
|
||
- Using sexualized language or imagery or making unwelcome sexual advances or inappropriate gestures. | ||
- Engaging in harassment, whether conducted publicly or privately. | ||
- Sharing someone’s personal details, such as their physical or email address, without their explicit consent. | ||
- Exhibiting any behavior that could reasonably be regarded as unprofessional or inappropriate in a professional context. | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
|
@@ -34,10 +34,16 @@ This Code of Conduct applies both within project spaces and in public spaces whe | |
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at <[email protected]>. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## Procedure for reporting and dealing with unacceptable behaviour | ||
|
||
First strike - A written slack notice that outlines the violation of the team contract. | ||
Second strike - Reach out to the lab instructor or TAs of the issues with the teammate. | ||
|
||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant homepage](http://contributor-covenant.org/version/1/4), version 1.4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#import | ||
def bmr(weight, height, age, sex): | ||
""" | ||
Computes Basal Metabolic Rate (BMR) using the Harris-Benedict equation. | ||
The BMR is an estimate of the number of calories your body needs to perform | ||
basic life-sustaining functions, such as breathing, circulation, and cell production. | ||
Parameters | ||
---------- | ||
weight : float | ||
Weight of the individual in kilograms. | ||
height : float | ||
Height of the individual in centimeters. | ||
age : int | ||
Age of the individual in years. | ||
sex : str | ||
Biological sex of the individual. Accepted values are "male" or "female". | ||
Returns | ||
------- | ||
float | ||
The estimated BMR value in calories per day. | ||
Notes | ||
----- | ||
The Harris-Benedict equation is used to calculate BMR: | ||
- For males: BMR = 88.362 + (13.397 * weight) + (4.799 * height) - (5.677 * age) | ||
- For females: BMR = 447.593 + (9.247 * weight) + (3.098 * height) - (4.330 * age) | ||
Examples | ||
-------- | ||
>>> bmr(70, 175, 25, "male") | ||
1668.872 | ||
>>> bmr(60, 165, 30, "female") | ||
1392.247 | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters