aboutsummaryrefslogtreecommitdiffstats
path: root/sejmanas.py
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-05-27 14:59:49 -0500
committersejo <sejo@texto-plano.xyz>2021-05-27 14:59:49 -0500
commitfb33351d6213216969d718365a979a6954a6794b (patch)
tree1dfb42fba1c3db1c77d84e49e208c921c2939e26 /sejmanas.py
parent37627aa5f5f0e7d3a7bb1d0542f60e15bfce954f (diff)
downloadsitio-fb33351d6213216969d718365a979a6954a6794b.tar.gz
script de sejmanas
Diffstat (limited to 'sejmanas.py')
-rw-r--r--sejmanas.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/sejmanas.py b/sejmanas.py
new file mode 100644
index 0000000..52e0282
--- /dev/null
+++ b/sejmanas.py
@@ -0,0 +1,19 @@
+# uso:
+# python3 sejmanas.py 1660 | xclip -sel c
+# (donde 1660 es el número de sejmana actual)
+import sys
+
+first = 1655
+s = int(sys.argv[1])
+# s=1660
+#print('<p id="count" aria-hidden="true">')
+for i in range(1,3900):
+ if i<=s:
+ if i<first:
+ print('.',end='')
+ else:
+ print('<a href="#sjm-',i,'" title="sjm-',i,'">.</a>',sep='',end='')
+ else:
+ print('*',end='')
+
+#print('</p>')
Un proyecto texto-plano.xyz