about summary refs log tree commit diff stats
path: root/retro
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-10-08 22:15:37 +0000
committerelioat <elioat@tilde.institute>2022-10-08 22:15:37 +0000
commit3cc753c6529f512922a17b4fd30cc9680037fc04 (patch)
tree30d2ce6d8725bfb79997ba47af8e9d2cd2148043 /retro
parentc276f8d4ddd40d2eb159eb77a154adb6b8fe970a (diff)
downloadtour-3cc753c6529f512922a17b4fd30cc9680037fc04.tar.gz
*
Diffstat (limited to 'retro')
-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
+~~~