Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Easter egg at the Dojo prompt. #6960

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion pkg/arvo/app/dojo.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
$~ [%ex *hoon]
$% [%ur p=@t] :: http GET request
[%ge p=dojo-model] :: generator
[%ee p=[=desk =term] q=(list dojo-source)] :: Easter egg
[%te p=[=desk =term] q=(list dojo-source)] :: thread
[%dv p=beak q=path] :: core from source
[%ex p=hoon] :: hoon expression
Expand Down Expand Up @@ -244,12 +245,17 @@
;~ pose
;~(plug (cold %ur lus) parse-url)
;~(plug (cold %ge lus) parse-model)
;~(plug (cold %ee sig) parse-easter-egg)
;~(plug (cold %te hep) parse-thread (star ;~(pfix ace parse-source)))
;~(plug (cold %as pam) sym ;~(pfix ace parse-source))
;~(plug (cold %do cab) parse-hoon ;~(pfix ace parse-source))
parse-value
==
::
++ parse-easter-egg
%+ cook |=(a=cord [p=[%base %egg] q=~])
(jest 'Urbit')
::
++ parse-goal
%+ cook |=(a=goal a)
;~ pose
Expand Down Expand Up @@ -446,6 +452,7 @@
|= bul=dojo-build
^+ [bul +>]
?- -.bul
%ee [bul +>.$]
%ex [bul +>.$]
%dv [bul +>.$]
%sa [bul +>.$]
Expand Down Expand Up @@ -744,7 +751,7 @@
=- >[-]<
=+ `[@ bil=dojo-build]`a
|- ^- dy-shown
?- -.bil
?+ -.bil !!
$?(%ur %dv %sa) bil
%ex ?. ?=([%cltr *] p.bil) p.bil
|- ^- hoon
Expand Down Expand Up @@ -991,6 +998,7 @@
%ex (dy-mere p.bil)
%dv (dy-sing hand+q.bil %a p.bil (snoc q.bil %hoon))
%ge (dy-run-generator (dy-cage p.p.p.bil) q.p.bil desk.q.p.p.bil)
%ee (dy-wool-poke p.bil q.bil) :: Easter egg
%sa
=/ has-mark .?((get-fit:clay he-beak %mar p.bil))
?. has-mark
Expand Down
35 changes: 35 additions & 0 deletions pkg/arvo/ted/egg.hoon
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
:: Easter egg output for "~Urbit"
::
:::: /hoon/egg/ted
::
/- spider
/+ strandio
=, strand=strand:spider
^- thread:spider
|= arg=vase
|^
=/ m (strand ,vase)
^- form:m
%- %- slog :_ ~
urbit-logo
(pure:m !>(~))
++ urbit-logo
:- %leaf
:: This image was generated using https://www.asciiart.eu/image-to-ascii
:: with the "25 characters" setting.
"""
~~~~~~~~~
~~~~~~~~~~~~~~~
~~~~~ ~~~~~
~~~ ~~~
~~~ ~~~
~~ ~~~~ ~~ ~~
~~ ~~~~~~~~~~~~~ ~~
~~ ~~ ~~~~ ~~
~~~ ~~~
~~~ ~~~
~~~~ ~~~~~
~~~~~~~~~~~~~~~
~~~~~~~~~
"""
--