ShareShortcuts

SleepCycle Calculator

arirafiq
Bifurcar “SleepCycle Calculator”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que arirafiq reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
39K
Guardado
0
Acciones
12
Categoría
Calculations
Versión
1.0
Idioma
EN

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

Historial de versiones
1.0 5 de sep. de 2022

First release

Qué hace

12 acciones
  1. Comment
    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…
  2. Ask for Input
    I want to wake up at...
  3. Adjust Date
  4. Format Date
  5. Adjust Date
  6. Format Date
  7. Adjust Date
  8. Format Date
  9. Adjust Date
  10. Format Date
  11. Text
  12. Show Result

Ver como código
Beta

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

Ver todo

También te puede gustar

Ver todo
Publicidad