urbit/mar/talk/report.hoon

151 lines
4.0 KiB
Plaintext
Raw Normal View History

2014-12-06 11:12:52 +03:00
::
2016-02-05 06:05:37 +03:00
:::: /hoon/report/talk/mar
2014-12-06 11:12:52 +03:00
::
2016-02-18 02:00:12 +03:00
/? 310
/- talk
2017-02-14 03:02:25 +03:00
/+ talk, old-zuse
2016-11-17 04:42:58 +03:00
::
2016-11-17 04:37:39 +03:00
=, talk
2016-12-03 03:56:54 +03:00
=, mimes:html
=, html
2017-02-14 03:02:25 +03:00
=, format
=, old-zuse
|_ rep/report
2014-12-06 11:12:52 +03:00
::
++ grab :: convert from
|%
++ noun report :: clam from %noun
--
++ grow
|%
2016-12-03 03:56:54 +03:00
++ mime [/text/json (as-octs (crip (en-json json)))]
2015-06-19 04:47:41 +03:00
++ json
2014-12-10 02:11:30 +03:00
=> +
2014-12-06 11:12:52 +03:00
|^ %+ joba -.rep
?- -.rep
$cabal (cabl +.rep)
$house a+(turn ~(tap by +.rep) jose)
$glyph ((jome |=(a/char a) nack) +.rep)
$grams (jobe num+(jone p.rep) tele+[%a (turn q.rep gram)] ~)
$group (jobe local+(grop p.rep) global+%.(q.rep (jome parn grop)) ~)
2014-12-06 11:12:52 +03:00
==
++ joce |=(a/knot [%s a])
2015-01-26 20:44:09 +03:00
++ jose
|= {a/knot b/posture c/cord}
(jobe name+[%s a] posture+[%s a] caption+[%s b] ~)
2015-01-26 20:44:09 +03:00
::
2015-06-19 04:47:41 +03:00
++ jove
|= {a/envelope b/delivery}
2015-01-26 20:44:09 +03:00
%- jobe :~
envelope+(jobe visible+[%b p.a] sender+?~(q.a ~ s+(parn u.q.a)) ~)
delivery+[%s b]
2015-01-26 20:44:09 +03:00
==
++ jope |=(a/ship (jape +:<a>)) ::[%s (crip +:(scow %p a))])
2017-02-14 03:02:25 +03:00
++ joke |=(a/tank (jape (of-wall (wash 0^80 a))))
++ jode |=(a/time (jone (div (mul (sub a ~1970.1.1) 1.000) ~s1)))
2014-12-06 11:12:52 +03:00
++ jome :: stringify keys
|* {a/_cord b/_json}
|= c/(map _+<.a _+<.b)
(jobe (turn ~(tap by c) (both a b)))
2014-12-06 11:12:52 +03:00
::
++ both :: cons two gates
|* {a/_* b/_*}
|=(c/_[+<.a +<.b] [(a -.c) (b +.c)])
2014-12-06 11:12:52 +03:00
::
::
++ nack |=(a/(set (set partner)) [%a (turn ~(tap in a) sorc)])
++ grop (jome phon stas) :: (map ship status)
++ phon |=(a/ship (scot %p a))
++ stas |=(status (jobe presence+(joce p) human+(huma q) ~))
++ gram |=(telegram (jobe ship+(jope p) thought+(thot q) ~))
2015-06-19 04:47:41 +03:00
++ thot
|= thought
(jobe serial+(jape <p>) audience+(audi q) statement+(stam r) ~)
2014-12-06 11:12:52 +03:00
::
2015-01-26 20:44:09 +03:00
++ audi (jome parn jove)
++ bouq
|= a/bouquet
a+(turn ~(tap in a) |=(b/path a+(turn b |=(c/knot s+c))))
2015-01-26 20:44:09 +03:00
::
++ parn
|= a/partner ^- cord
2015-04-06 22:57:23 +03:00
?- -.a
$& (stat p.a)
$| %- crip
2015-04-06 22:57:23 +03:00
?- -.p.a
$twitter "{(trip -.p.a)}/{(trip p.p.a)}"
2015-04-06 22:57:23 +03:00
==
2014-12-06 11:12:52 +03:00
==
::
2015-04-06 22:57:23 +03:00
++ stat
|= a/station ^- cord
2015-04-06 22:57:23 +03:00
(crip "{<p.a>}/{(trip q.a)}")
::
2015-06-19 04:47:41 +03:00
++ stam
|= statement
(jobe date+(jode p) bouquet+(bouq q) speech+(spec r) ~)
2015-01-26 20:44:09 +03:00
::
2014-12-06 11:12:52 +03:00
++ spec
|= a/speech
2014-12-06 11:12:52 +03:00
%+ joba -.a
?+ -.a ~|(stub+-.a !!)
$lin (jobe txt+[%s q.a] say+[%b p.a] ~)
$url (joba txt+[%s (crip (earf p.a))])
$exp (joba txt+[%s p.a])
$app (jobe txt+[%s q.a] src+[%s p.a] ~)
$fat (jobe tor+(tors p.a) taf+$(a q.a) ~)
$mor a+(turn p.a spec)
2016-03-26 03:47:22 +03:00
$api
%- jobe :~
service+s+service.a
id+s+id.a
2016-04-01 03:39:48 +03:00
id-url+s+(crip (earf id-url.a))
2016-03-26 03:47:22 +03:00
summary+s+summary.a
body+s+body.a
2016-04-01 03:39:48 +03:00
url+s+(crip (earf url.a))
2016-03-26 03:47:22 +03:00
meta+meta.a
==
:: %inv (jobe ship+(jope p.a) party+[%s q.a] ~)
2014-12-06 11:12:52 +03:00
==
::
2015-06-19 04:47:41 +03:00
++ tors
|= a/torso
2015-06-19 04:47:41 +03:00
%+ joba -.a
?- -.a
$text [%s (of-wain +.a)]
$tank [%a (turn +.a joke)]
$name (jobe nom+s+p.a mon+$(a q.a) ~)
2015-06-19 04:47:41 +03:00
==
::
2014-12-06 11:12:52 +03:00
++ huma
|= human
%^ jobe
hand+?~(hand ~ [%s u.hand])
2014-12-06 11:12:52 +03:00
:- %true
2015-06-19 04:47:41 +03:00
?~ true ~
=+ u.true
(jobe first+[%s p] middle+?~(q ~ [%s u.q]) last+[%s r] ~)
2014-12-06 11:12:52 +03:00
~
::
2015-04-06 22:57:23 +03:00
++ cabl
|= cabal
%- jobe :~
loc+(conf loc)
ham+((jome stat conf) ham)
2015-04-06 22:57:23 +03:00
==
::
++ sorc
|= a/(set partner) ^- json
[%a (turn ~(tap in a) |=(b/partner s+(parn b)))]
::
2014-12-06 11:12:52 +03:00
++ conf
|= config
%- jobe :~
sources+(sorc sources)
caption+[%s caption]
=- cordon+(jobe posture+[%s -.cordon] list+[%a -] ~)
(turn ~(tap in q.cordon) jope) :: XX jase
2014-12-06 11:12:52 +03:00
==
--
-- --