mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
Compare commits
46 Commits
6fa18715f5
...
aaa8ef7353
| Author | SHA1 | Date | |
|---|---|---|---|
| aaa8ef7353 | |||
| c7bef43d41 | |||
| e0e8f41869 | |||
| 54d53ca826 | |||
| 2be5adf057 | |||
| bedd37c590 | |||
| d2c146547b | |||
| 8fa7ebc259 | |||
| 1cd74ff548 | |||
| 60f2509ca3 | |||
| d5d1f9eaeb | |||
| 96fe03e8a3 | |||
| f823cb282e | |||
| e69e6c617b | |||
| 0e4d42fe0e | |||
| ddc31231f4 | |||
| 2da9a200b2 | |||
| 1dae8b10e1 | |||
| 51566c7c27 | |||
| 4977473c92 | |||
| bebf2c5392 | |||
| cbb9491c16 | |||
| 74b9b9fade | |||
| df9f33809b | |||
| bd851fcf48 | |||
| 186c189a91 | |||
| c3e52e8e85 | |||
| 31976fdb7a | |||
| 80c3974789 | |||
| 3e45737eb6 | |||
| 7a6bc261d9 | |||
| 887a142a1a | |||
| d14efb53cb | |||
| 9c5e19bbf0 | |||
| cb6300d792 | |||
| 0a055dd655 | |||
| 7f6875b48f | |||
| c7836884a1 | |||
| 37a8697694 | |||
| 4de4753dce | |||
| 2de789d398 | |||
| 0066e9bdc8 | |||
| 2d01a36cbb | |||
| 4741327e9b | |||
| b74e195e92 | |||
| 241775f7b5 |
@@ -0,0 +1,3 @@
|
|||||||
|
- In the [[Flancia]] [[Pattern Language]], 13 means [[Bodhicitta]] and [[Right Conduct]].
|
||||||
|
- [[Gloria a las maravillas del universo]] is 13 syllables in Spanish.
|
||||||
|
- [[If you lose your Bodhicitta, sit down and find it]] is [[13 syllables]] in English.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
- #push [[13]]
|
||||||
|
- [[13 sílabas]].
|
||||||
@@ -16,3 +16,10 @@
|
|||||||
- Avalokiteshvara!
|
- Avalokiteshvara!
|
||||||
- The fun comes from synchronizing while saying the first three words, and then choosing to synchronize or not on the saying of the name. For beginner players remembering the full name might prove difficult (it was for me at first).
|
- The fun comes from synchronizing while saying the first three words, and then choosing to synchronize or not on the saying of the name. For beginner players remembering the full name might prove difficult (it was for me at first).
|
||||||
- I like it as a game because [[Avalokiteshvara]] reminds me of a lot of things I deeply care about, and I find their name beautiful.
|
- I like it as a game because [[Avalokiteshvara]] reminds me of a lot of things I deeply care about, and I find their name beautiful.
|
||||||
|
- #push [[16]] syllables
|
||||||
|
- #push [[9]]
|
||||||
|
- Avalo, avalo, avalo!
|
||||||
|
- #push [[7]]
|
||||||
|
- Avalokiteshvara!
|
||||||
|
|
||||||
|
-
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# First time I use [[click]], it looks cool like that other [[pallets project]], [[flask]].
|
# First time I use [[click]] ~ anagora.org/click, it looks cool like the other [[pallets project]], [[flask]], which we use in [[agora server]].
|
||||||
# https://click.palletsprojects.com/en/8.1.x/arguments/
|
# https://click.palletsprojects.com/en/8.1.x/arguments/
|
||||||
# https://click.palletsprojects.com/en/8.1.x/options/
|
# https://click.palletsprojects.com/en/8.1.x/options/
|
||||||
|
|
||||||
import click
|
import click
|
||||||
import math
|
import math
|
||||||
|
import sys
|
||||||
|
|
||||||
# I'm not proud (I am a little bit?).
|
# I'm not proud (I am a little bit?).
|
||||||
PROOF = [] # :)
|
PROOF = [] # :)
|
||||||
@@ -29,7 +30,7 @@ def is_prime(n):
|
|||||||
# for j in range(2, math.ceil(math.sqrt(n) + 1)):
|
# for j in range(2, math.ceil(math.sqrt(n) + 1)):
|
||||||
for j in range(2, n):
|
for j in range(2, n):
|
||||||
# I wrote >= here initially. That did *not* work ;)
|
# I wrote >= here initially. That did *not* work ;)
|
||||||
if i*j > n:
|
if i * j > n:
|
||||||
break
|
break
|
||||||
PROOF.append(f"[[{i*j}]] is composite: {i} * {j}.")
|
PROOF.append(f"[[{i*j}]] is composite: {i} * {j}.")
|
||||||
try:
|
try:
|
||||||
@@ -39,11 +40,29 @@ def is_prime(n):
|
|||||||
# click.echo(f"Sieve: {is_prime}.")
|
# click.echo(f"Sieve: {is_prime}.")
|
||||||
return is_prime[n]
|
return is_prime[n]
|
||||||
|
|
||||||
@click.command()
|
class AgoraCmd(click.Command):
|
||||||
|
def format_help(self, ctx, formatter):
|
||||||
|
click.echo("""Usage:
|
||||||
|
- Visit anagora.org/primes to execute this file in the Agora of Flancia.")
|
||||||
|
- 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)
|
||||||
|
|
||||||
|
@click.command(cls=AgoraCmd)
|
||||||
@click.argument('n', type=click.INT)
|
@click.argument('n', type=click.INT)
|
||||||
@click.option('-f', '--from', 'n0', type=click.INT, help="Lower bound of the range to factor.")
|
def prime(n):
|
||||||
@click.option('-t', '--to', 'n1', type=click.INT, help="Upper bound of the range to factor.")
|
|
||||||
def prime(n, n0, n1):
|
|
||||||
"""Simple program that factors a number using a [[Sieve of Eratosthenes]]."""
|
"""Simple program that factors a number using a [[Sieve of Eratosthenes]]."""
|
||||||
if is_prime(n):
|
if is_prime(n):
|
||||||
click.echo(f"[[{n}]] is prime.")
|
click.echo(f"[[{n}]] is prime.")
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- An [[essay]].
|
||||||
|
- On the importance of gathering a pro-social, rational good corpus.
|
||||||
|
- The [[Agora]] is a mechanism that tries to aid a community to gather an optimal corpus.
|
||||||
|
|
||||||
|
As of [[2023]] ([[7]] * [[17]] * 17) the models trained on a 2021 corpus clearly demonstrate the potential of LL/generative models based on [[Transformers]] and Stable [[Diffusion]] as long as they are trained on a rich enough [[corpus]]. The fact that [[Chat GPT]], the most used widely available free text completion service, has a [[2021]] (43 * 47) cutoff date...
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
- #push [[16]]
|
||||||
|
- Gloria, gloria, gloria!
|
||||||
|
- #push [[13]]
|
||||||
|
- [[Gloria a las maravillas del universo]]!
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
- [[Flancia]]!
|
- [[Flancia]]!
|
||||||
- [[agora slides]]
|
- [[agora slides]]
|
||||||
|
- #push [[Flancia
|
||||||
- #push [[debate]]
|
- #push [[debate]]
|
||||||
- Imagine a public global debate about the crimes of [[Moloch]], and the ways to move forward.
|
- Imagine a public global debate about the crimes of [[Moloch]], and the ways to move forward.
|
||||||
- #push [[liquid democracy]]
|
- #push [[liquid democracy]]
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
- What is the name of that nice Python CLI library again?
|
- What is the name of that nice Python CLI library again?
|
||||||
- [[click]]?
|
- [[click]]?
|
||||||
- [[state of html]] survey seems like a great way to learn about lots of modern [[HTML]] features: https://survey.devographics.com/en-US/survey/state-of-html/2023/
|
- [[state of html]] survey seems like a great way to learn about lots of modern [[HTML]] features: https://survey.devographics.com/en-US/survey/state-of-html/2023/
|
||||||
- [[fork]]!
|
- #push [[spaces]]
|
||||||
|
- [[fork]]!
|
||||||
- fork, fork!
|
- fork, fork!
|
||||||
- as we merge we'll fork!
|
- as we merge we'll fork!
|
||||||
- [[nostromo]] music
|
- [[nostromo]] music
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
- #push [[Flancia]]
|
||||||
|
- remember the importance of the [[corpus]].
|
||||||
|
- how it is gathered, how it is selected, how it is curated (gardened?) over time.
|
||||||
|
- [[Agora]]
|
||||||
|
- [[Agora development]]
|
||||||
|
- Working on [[prime]], [[executable nodes]] after a 10 month hiatus: I told myself I should go for something very free/open on this Sunday flowing :)
|
||||||
|
- [[Mycoverse]]
|
||||||
|
- [[space]]
|
||||||
|
- [[gloria]]
|
||||||
|
- [[avalokiteshvara]]
|
||||||
|
- [[trip to x]]
|
||||||
|
- [[japan]]
|
||||||
|
- [[best japanese movies]]
|
||||||
|
- [[sri lanka]]
|
||||||
+1
-4
@@ -1,5 +1,2 @@
|
|||||||
- #pull [[open letters]] [[closed letters]]
|
- #pull [[open letters]] [[closed letters]]
|
||||||
- [[trip to x]]
|
|
||||||
- [[japan]]
|
|
||||||
- [[best japanese movies]]
|
|
||||||
- [[sri lanka]]
|
|
||||||
|
|||||||
@@ -5,4 +5,8 @@
|
|||||||
- by [[silicon jungle]]
|
- by [[silicon jungle]]
|
||||||
- built on [[braid]], [[redwood]]
|
- built on [[braid]], [[redwood]]
|
||||||
- [[go]] https://siliconjungle.substack.com/p/spaces
|
- [[go]] https://siliconjungle.substack.com/p/spaces
|
||||||
|
- a [[thing]].
|
||||||
|
- in the [[Agora]], a [[node]].
|
||||||
|
- in the [[Agora]], a [[stoa]].
|
||||||
|
- on [[Wikipedia]], an [[article]].
|
||||||
|
- on [[Twitter]]/[[X]] and the [[Fediverse]], a [[post]]
|
||||||
|
|||||||
Reference in New Issue
Block a user