summaryrefslogtreecommitdiff
path: root/mar/hoon.hoon
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-22 06:14:42 +0700
committerpolwex <polwex@sortug.com>2025-06-22 06:14:42 +0700
commit6dccba9bb5100329209ad01732f9d63f4c4fb43b (patch)
tree140b33d2e25084174fce057056de9dea0e2dcbea /mar/hoon.hoon
metamask login getting there
Diffstat (limited to 'mar/hoon.hoon')
-rw-r--r--mar/hoon.hoon36
1 files changed, 36 insertions, 0 deletions
diff --git a/mar/hoon.hoon b/mar/hoon.hoon
new file mode 100644
index 0000000..428e105
--- /dev/null
+++ b/mar/hoon.hoon
@@ -0,0 +1,36 @@
+:::: /hoon/hoon/mar
+ ::
+/? 310
+::
+=, eyre
+|_ own=@t
+::
+++ grow :: convert to
+ |%
+ ++ mime `^mime`[/text/x-hoon (as-octs:mimes:html own)] :: convert to %mime
+ ++ hymn
+ ;html
+ ;head
+ ;title:"Source"
+ ;script@"//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js";
+ ;script@"/lib/syntax/hoon.js";
+ ;link(rel "stylesheet", href "//cdnjs.cloudflare.com/ajax/libs/".
+ "codemirror/4.3.0/codemirror.min.css");
+ ;link/"/lib/syntax/codemirror.css"(rel "stylesheet");
+ ==
+ ;body
+ ;textarea#src:"{(trip own)}"
+ ;script:'CodeMirror.fromTextArea(src, {lineNumbers:true, readOnly:true})'
+ ==
+ ==
+ ++ txt
+ (to-wain:format own)
+ --
+++ grab
+ |% :: convert from
+ ++ mime |=([p=mite q=octs] q.q)
+ ++ noun @t :: clam from %noun
+ ++ txt of-wain:format
+ --
+++ grad %txt
+--