Skip to content

Instantly share code, notes, and snippets.

@tacryt-socryp
Last active May 31, 2020 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tacryt-socryp/447afd3298fcf6ed0628b3a80d636a67 to your computer and use it in GitHub Desktop.
Save tacryt-socryp/447afd3298fcf6ed0628b3a80d636a67 to your computer and use it in GitHub Desktop.
/- *post
|%
+$ network
$: graphs=(map resource (unit graph))
tags=(set term)
tag-queries=(map term resources)
==
::
+$ graph (ordered-map time node)
+$ node [=post replies=(unit graph)]
+$ action
$% [%add-network =network]
[%remove-network ~]
::
[%add-graph =resource =graph]
[%remove-graph =resource]
::
[%add-tag =term =resources]
[%remove-tag =term =resources
::
[%add-nodes uids=(set [=uid =node)]
[%remove-nodes uids=(set uid)]
::
[%add-signatures =uid =signatures]
[%remove-signatures =uid =signatures]
==
::
+$ update action
--
|%
+$ resource [=entity =term]
+$ resources (set resource)
::
+$ entity
$% [%ship =ship]
[%ships ships=(set ship)]
:: [%ring ...]
==
::
+$ index (list time)
+$ post
$: author=ship
=hash
=index
=signatures
contents=(list content)
==
::
+$ uid [=entity =index]
+$ content
$% [%text =cord]
[%url =cord]
[%code expression=cord output=(list tank)]
[%reference =uid]
:: [%cage =cage]
==
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment