Skip to content

Instantly share code, notes, and snippets.

@koumaza
Created May 9, 2020 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koumaza/b5b7c3c7ee8fd61413f04d8373eea715 to your computer and use it in GitHub Desktop.
Save koumaza/b5b7c3c7ee8fd61413f04d8373eea715 to your computer and use it in GitHub Desktop.
Ovulation day Calculator for fish
# 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