File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * @title Rabbit
3+ * @author Bairui Su
4+ * @created 2026-01-04
5+ * @pull_request 195
6+ * @github pearmini
7+ * @label ASCII Art, Beginner
8+ * @thumbnail_start 21
9+ */
10+
11+ /**
12+ * ============================================================================
13+ * = Rabbit =
14+ * ============================================================================
15+ *
16+ * Create a simple animation of rabbit inspired by the OpenAI DevDay 2025
17+ *
18+ * - Ref. https://openai.com/devday/
19+ */
20+
21+ //➜ (\_/)
22+ //➜ (^.^)
23+ //➜ ╰ < ╯
24+ //➜ /(")(")
25+ {
26+ const c = echo . set ( "compact" , true ) ;
27+ const n = R . length ;
28+ const str = R [ t % n ] ;
29+ if ( str ) c ( x ( str ) ) ;
30+ }
31+
32+ const t = recho . interval ( 200 ) ;
33+
34+ const x = ( d ) => recho . inspect ( d , { quote : false } ) ;
35+
36+ // prettier-ignore
37+ const R = [
38+ ` (\\_/)
39+ (O.O)
40+ | ╰ ' ╯
41+ v /(")(") ` ,
42+ null ,
43+ null ,
44+ ` |)|)
45+ (O )
46+ | ╰' ╯
47+ v /(")(") ` ,
48+ ` |)|)
49+ (O )
50+ | ╰' ╯
51+ v o(")(") ` ,
52+ ` |)|)
53+ | (O )
54+ o ╰' ╯
55+ v (")(") ` ,
56+ ` |)|)
57+ (O )
58+ -o> ╯
59+ (")(") ` ,
60+ ` |)|)
61+ (O )
62+ -o> ╯
63+ (")(") ` ,
64+ ` |)|)
65+ (O )
66+ -o>╯
67+ (")(") ` ,
68+ ` (\\_/)
69+ (^.^)
70+ -> ╯
71+ /(")(") ` ,
72+ ` (\\_/)
73+ (^.^)
74+ ╰ ->
75+ /(")(") ` ,
76+ ` (\\_/)
77+ (^.^)
78+ ╰ ⟨->
79+ /(")(") ` ,
80+ null ,
81+ null ,
82+ null ,
83+ null ,
84+ null ,
85+ ` (\\_/)
86+ (^.^)
87+ ╰ < ╯
88+ /(")(") ` ,
89+ null ,
90+ null ,
91+ null ,
92+ ` (\\_/)
93+ (O.O)
94+ ╰ ' ╯
95+ /(")(") ` ,
96+ null ,
97+ null ,
98+ null ,
99+ null ,
100+ null ,
101+ null ,
102+ null ,
103+ null ,
104+ null ,
105+ ] ;
You can’t perform that action at this time.
0 commit comments