about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--retro/pomo.retro15
1 files changed, 15 insertions, 0 deletions
diff --git a/retro/pomo.retro b/retro/pomo.retro
new file mode 100644
index 0000000..6f19aa9
--- /dev/null
+++ b/retro/pomo.retro
@@ -0,0 +1,15 @@
+# Pomodoro timer in retro
+
+Basic implementation of a pomodoro timer from maleza
+
+<https://merveilles.town/@maleza/109134681346931539>
+
+~~~
+:pomo #25 [ #60 unix:sleep #25 I - '%n_pomo_left s:format s:put nl ] indexed-times ;
+
+:rest #10 [ #60 unix:sleep #10 I - '%n_rest_left s:format s:put nl ] indexed-times ;
+
+:pomo-loop (n-) [ pomo rest ] times ;
+
+#3 pomo-loop
+~~~