Skip to content

Instantly share code, notes, and snippets.

/? 310
!:
::
:: make a new empty graph like so:
:: `(graph @ @)`[~ ~]
::
|%
++ graph
|* {a/mold b/mold}
$: nod/(map id/@ {dat/a adj/(set @)}) :: nodes
:- %say
|= *
:- %hymn
=< basic
|%
::::
:::: Replace line 4 with whatever arm your interested in from the core below.
::::
:::: From dojo it may be more useful to call `&html +sail` rather than just `+sail`
:::: not only for readability but because it will expose the nest-failing examples
# Static Site Builder
We now have a static site builder. This takes a set of resource files, most likely udon or sail in hoon files and outputs html. Why might we do this, you ask, since Urbit already builds and serves files?
We wanted something that could be used to generate a site, without neccesarily requiring that it be served by an Urbit. This is essentially Urbit's answer to Jekyll.
To use it call
```
> :static|build %/path/to/top/level/input/file %/path/to/output/dir
```
@ixv
ixv / eyre.md
Created June 18, 2018 23:50 — forked from xykj61/eyre.md

Eyre

Overview

Eyre is Arvo's web server and one of Arvo's eight kernel modules (vanes). Eyre is responsible for handling inbound and outbound HTTP requests, parsing mark extensions and query strings in URLs, and sending respective moves based on the requests to the other Arvo vanes, like Clay, Ford and Gall.

Specification

This document is for the current iteration of Eyre, which has not yet been designed and implemented into its ideal state.

urb@test-urbit-org-ships:~$ urbit -I zod -s -A ~/github/urbit/arvo/ -H test.urbit.org -G 0w0 -c ~/zod-5
~
urbit 0.6.0
urbit: home is /home/urb/zod-5
loom: mapped 2048MB
boot: installed 477 jets
fetching https://bootstrap.urbit.org/git-6810c106c2.pill to /home/urb/zod-5/.urb/urbit.pill
boot: loading /home/urb/zod-5/.urb/urbit.pill
jack: kernel 5ced97c8
%arvo-assembly
This file has been truncated, but you can view the full file.
~nec+
--------------| :: off +
--------------| rip +
[%processing-changes changes=21 block=5.969.830 id=0x770f.b8a0.1af9.671f.cef5.d72e.ddf6.7992]
[%duplicate-cause block=5.969.976 log=0]
worker_send_replace 6837 crud
%receive event failed:
bail: exit
/~zod/home/~2019.7.11..12.12.09..a1aa/sys/arvo:<[682 15].[700 27]>
/~zod/home/~2019.7.11..12.12.09..a1aa/sys/arvo:<[683 15].[700 27]>
500_.jpg
--------------| %saddam-hussein:
--------------| %saddam-hussein:
~winsyx-wicsyl> https://images-na.ssl-images-amazon.com/images/I/71ZaVaYZIaL._SY
500_.jpg
--------------| %hall-internal-dumb-chat:
----------[165]
~winsyx-wicsyl^ https://images-na.ssl-images-amazon.com/images/I/71ZaVaYZIaL._SY
500_.jpg
--------------| %errybody:
crud: %belt event failed
bail: exit
%failed-jack
[%lal %f %c]
[%lal %f %g]
[%failed-take %f]
[%failed-swim %f %g ~]
[%swim-call-vane %f %kill]
[%failed-slym-in %f]
:- %say
|= $: [now=@da eny=@uv bek=beak]
[arg=@p ~]
~
==
:- %noun
^- wain
%+ turn (gulf 1 0xffff)
|= pre=@
^- @t
@ixv
ixv / convert.hoon
Last active March 24, 2020 21:56
script I used for converting old fora posts to the new publish format
/- spider, publish
/+ strandio
=, strand=strand:spider
^- thread:spider
|= arg=vase
=/ m (strand ,vase)
^- form:m
=+ !<([pax=path ~] arg)
;< bol=bowl:spider bind:m get-bowl:strandio
=/ prefix /==/(scot %da now.bol)