mirror of
https://github.com/flancian/garden.git
synced 2026-07-31 11:36:19 +00:00
autopushed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
- Back noding in [[neovim]] to make sure I keep my travel setup running.
|
||||
- I could also move to running [[bull]] locally in [[guanyin]] while I travel...
|
||||
- Started the day nicely with [[AG]].
|
||||
- Then did [[Sadhana]], things around the house, and advanced on many threads :)
|
||||
- During the week I finished the two trivial bull PRs I wanted to get in.
|
||||
- [ ] Now I'm thinking of shifting to a different PR (which?) and to [[Betula]], [[Social.coop]] and [[Agora]] work.
|
||||
- [x] Sending something to the [[M&Ms]] :)
|
||||
- I enjoyed the process a lot! I hope they enjoy the result, even a subset :)
|
||||
- Thought about:
|
||||
- [[primes]], and again [[prime gaps]], which I now associate with the number #14 because 14 is a first notable prime gap on 113 - 127, and it easily answers 'prime?' for an interesting range
|
||||
@@ -0,0 +1,6 @@
|
||||
- Picked up my laptop after long. This has been quite an offline vacation!
|
||||
- In [[Buzios]] this week, reading about:
|
||||
- [[Beppo]], [[Borges]]'s cat.
|
||||
- [[Lord Byron]].
|
||||
- Also reading a compilation of short stories by [[Greg Egan]] :)
|
||||
- After a day by the beach, we went on a walk with [[AG]] to a lookout point near [[Ferradura]].
|
||||
@@ -0,0 +1,8 @@
|
||||
- I'm back!
|
||||
- In [[computer space]] (and time!)
|
||||
- Travelling was great but I'm looking forward to catching up with projects.
|
||||
- [[Agora]]:
|
||||
- Discussed [[2025]] with [[Timur]] in [[Flancia Meet]], also discussed [[Betula]] progress which is very exciting!
|
||||
- Thought about [[Fediverse]] integration, [[auth]] and data providers.
|
||||
- Also about simpler and more opaque stuff like [[autopull for numbers]]: number [[n]] should pull e.g. [[prime/n]] because that's a related node for all integers.
|
||||
- Hmm, what was by [[root node]] again...? :)
|
||||
@@ -0,0 +1,3 @@
|
||||
- [ ] Move the Incubator meeting to US-friendly
|
||||
- [ ] Check PM AI chatroom
|
||||
- [ ] go/detectr -- hold it until US takes it, or Gavin?
|
||||
@@ -0,0 +1,6 @@
|
||||
- [[work]]
|
||||
- [[ai for sre]]!
|
||||
- good progress overall even though I was a bit tired as I slept one hour fewer than normal
|
||||
- [[social.coop]]
|
||||
- early [[fellowship of the link]] with [[aram]]!
|
||||
- [[dibi58]]
|
||||
@@ -0,0 +1,4 @@
|
||||
- I met [[smurp]] today!
|
||||
- It was great!
|
||||
- I got a [[cal]] after seeing it at his smurp.com/cal and previously.
|
||||
-
|
||||
@@ -0,0 +1,5 @@
|
||||
- [[nostromo]] died today!
|
||||
- after almost dying many times.
|
||||
- I thank them for their service! beautiful computer.
|
||||
- [[paramita]] was ready to take its spot.
|
||||
- [[bouncepaw]] told me about [[xremap]] today! it looks great, like it could fix several issues I had in the back of my mind with the input layer in wayland.
|
||||
Executable
+65
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# https://click.palletsprojects.com/en/8.1.x/arguments/
|
||||
# https://click.palletsprojects.com/en/8.1.x/options/
|
||||
#
|
||||
# boilerplate shamelessly cloned from prime.py :).
|
||||
|
||||
import click
|
||||
import math
|
||||
import random
|
||||
import sys
|
||||
|
||||
class AgoraCmd(click.Command):
|
||||
def format_help(self, ctx, formatter):
|
||||
click.echo("""Usage:
|
||||
- Visit anagora.org/tare to execute this file in the Agora of Flancia.
|
||||
- Visit e.g. anagora.org/tare/23 to print 23 syllables.
|
||||
- In general visit anagora.org/foo, anagora.org/foo/bar to execute e.g. <bin/foo.py bar> from your garden.
|
||||
""")
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
try:
|
||||
return super(AgoraCmd, self).__call__(
|
||||
*args, standalone_mode=False, **kwargs)
|
||||
except click.MissingParameter as exc:
|
||||
exc.ctx = None
|
||||
exc.show(file=sys.stdout)
|
||||
click.echo()
|
||||
try:
|
||||
super(AgoraCmd, self).__call__(['--help'])
|
||||
except SystemExit:
|
||||
sys.exit(exc.exit_code)
|
||||
|
||||
def decompose(n, p):
|
||||
ret = []
|
||||
while n > 7:
|
||||
ret.append(7)
|
||||
n -= 7
|
||||
if n == 6:
|
||||
ret.append(3)
|
||||
ret.append(3)
|
||||
elif n == 5:
|
||||
ret.append(3)
|
||||
ret.append(2)
|
||||
else:
|
||||
ret.append(n)
|
||||
|
||||
return ret
|
||||
|
||||
@click.command(cls=AgoraCmd)
|
||||
@click.argument('n', type=click.INT)
|
||||
def tare(n):
|
||||
"""Just for fun, as many of these -- partly inspired by an Asimov story :)"""
|
||||
parts = {
|
||||
1: ['Om'],
|
||||
2: ['Tare', 'Ture'],
|
||||
3: ['Tuttare'],
|
||||
4: ['Tare Ture'],
|
||||
7: ['Tare Tuttare Ture'],
|
||||
8: ['Tuttare Tuttare Ture'],
|
||||
}
|
||||
click.echo(decompose(n, parts))
|
||||
|
||||
if __name__ == '__main__':
|
||||
tare()
|
||||
Reference in New Issue
Block a user