Escanea con tu iPhone para instalar
Vista previa
Using the sleep calculator, you can easily tell it when you want to wake up and it will show you a variety of times to fall asleep and how many sleep cycles you will achieve. Keep scrolling for our wake calculator!
Novedades
Versión 1.0
First release
Qué hace
12 acciones-
CommentAuthor: Ari R. Abdulla - Using the sleep calculator, you can easily tell it when you want to wake up and it will show you a variety of times to fall asleep and how many sleep cycles you will achieve. Keep scrolling for our wake calculator! - Powered…
-
Ask for InputI want to wake up at...
-
Adjust Date
-
Format Date
-
Adjust Date
-
Format Date
-
Adjust Date
-
Format Date
-
Adjust Date
-
Format Date
-
Text
-
Show Result
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#include 'actions/calendar'
#define color darkblue
#define glyph moon
/*
Author: Ari R. Abdulla
- Using the sleep calculator, you can easily tell it when you want to wake up and it will show you a variety of times to fall asleep and how many sleep cycles you will achieve. Keep scrolling for our wake calculator!
- Powered By:
https://sleepopolis.com/calculators/sleep/
*/
prompt("I want to wake up at...", "Time")
const NineHoursOfSleep = adjustDate(, "Subtract")
const SixCycles = formatDate(NineHoursOfSleep, "None")
const SevenAndAHalfHoursOfSleep = adjustDate(, "Subtract")
const FiveCycles = formatDate(SevenAndAHalfHoursOfSleep, "None")
const SixHoursOfSleep = adjustDate(, "Subtract")
const FourCycles = formatDate(SixHoursOfSleep, "None")
const FourAndAHalfHoursOfSleep = adjustDate(, "Subtract")
const ThreeCycles = formatDate(FourAndAHalfHoursOfSleep, "None")
const Result = "You should try to fall asleep at one of the following times:\n\n1️⃣ {SixCycles} For Six Cycles\n- Nine Hours of Sleep.\n2️⃣ {FiveCycles} For Five Cycles\n- Seven and a half Hours of Sleep.\n3️⃣ {FourCycles} For Four Cycles\n- Six Hours of Sleep.\n4️⃣ {ThreeCycles} For Three Cycles\n- Four and a half Hours of Sleep.\n\nPlease keep in mind that you should be falling asleep at these times. The average human takes fourteen minutes to fall asleep, so plan accordingly!"
show(Result)
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de arirafiq
También te puede gustar
Publicidad