Created
May 9, 2020 07:14
-
-
Save koumaza/b5b7c3c7ee8fd61413f04d8373eea715 to your computer and use it in GitHub Desktop.
Ovulation day Calculator for fish
This file contains hidden or 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
# notyet!!!!! | |
#!/usr/bin/fish | |
# if Regular cycle | |
function regular_c | |
while true | |
echo 'How many days is your menstrual cycle?' | |
read regular_day -p "echo '(day) > '" | |
end | |
echo $regular_day | |
while true | |
echo 'When was the last menstruation?' | |
read regular_last_year -p "echo -en 'Year > |'" | |
if | |
read regular_last_month -p "echo -en 'Month > |'" | |
read regular_last_day -p "echo -en ' Day > |'" | |
end | |
echo "$regular_last_year"-"$regular_last_month"-"$regular_last_day" | |
# if Irregular cycle | |
function irregular_c | |
echo 'Ask Yes / No questions.' | |
read cycletype -p "echo -e 'Your menstrual cycle is regular?\n Y/N > '" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment