Skip to content

Commit acbc262

Browse files
committed
Adds cheatsheet from Mu refs #114
1 parent 4a1e532 commit acbc262

File tree

3 files changed

+507
-3
lines changed

3 files changed

+507
-3
lines changed

doc/Language/faq.pod6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ L<ecosystem|http://modules.perl6.org/>.
8989
See L<the official documentation website|https://docs.perl6.org/> (especially
9090
its L<"Language" section|https://docs.perl6.org/language.html>) as well as
9191
the L<Resources page|https://perl6.org/resources/>.
92-
93-
There is a cheat sheet at
94-
L<https://github.com/perl6/mu/raw/master/docs/Perl6/Cheatsheet/cheatsheet.txt>
92+
You can also consult this
93+
L<great cheatsheet|/cheatsheet.html>.
9594
9695
Be mindful of publication dates when reading third-party articles. Anything
9796
published before December, 2015 likely describes pre-release version of Perl 6.

html/cheatsheet.css

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
h1,h2 {
2+
padding: 0;
3+
margin: 0;
4+
font-family: futura, "Andale Mono", arial, helvetica, sans-serif;
5+
}
6+
7+
div {
8+
display: block;
9+
padding: 0.5em;
10+
/* border: 1px solid gray; */
11+
border: 1px solid white;
12+
-moz-border-radius: 0.5em;
13+
-webkit-border-radius: 0.5em;
14+
border-radius: 1em;
15+
}
16+
17+
div.P6cheat {
18+
margin: 0.5em auto;
19+
/* white-space: pre-line; */
20+
white-space: pre;
21+
}
22+
23+
p,th,td {
24+
font-family: "Lucida console", Courier, monospace;
25+
padding: 0;
26+
margin: 0;
27+
}
28+
29+
address,hr
30+
{
31+
clear: both;
32+
}
33+
34+
#container
35+
{
36+
width: 90%;
37+
clear: both;
38+
}
39+
40+
#sigils,#twigils
41+
{
42+
float: left;
43+
clear: left;
44+
background-color: aquamarine;
45+
}
46+
47+
#contexts
48+
{
49+
float: left;
50+
background-color: palegreen;
51+
}
52+
53+
#access_div
54+
{
55+
float: right;
56+
clear: right;
57+
background-color: lightcyan;
58+
min-width: 40%;
59+
max-width: 50%;
60+
}
61+
62+
TABLE.access
63+
{
64+
background-color: paleturquoise;
65+
border: 1px solid white;
66+
margin: 0.5em auto;
67+
-moz-border-radius: 0.5em;
68+
-webkit-border-radius: 0.5em;
69+
border-radius: 0.5em;
70+
}
71+
72+
TH,TD
73+
{
74+
text-align: left;
75+
vertical-align: top;
76+
/* border: 1px solid white; */
77+
padding: 0.2em;
78+
}
79+
80+
TR
81+
{
82+
border: 0;
83+
padding: 0;
84+
margin: 0;
85+
}
86+
87+
#topleft
88+
{
89+
-moz-border-top-left-radius: 0.5em;
90+
-webkit-border-top-left-radius: 0.5em;
91+
border-top-left-radius: 0.5em;
92+
}
93+
94+
#topright
95+
{
96+
-moz-border-top-right-radius: 0.5em;
97+
-webkit-border-top-right-radius: 0.5em;
98+
border-top-right-radius: 0.5em;
99+
}
100+
101+
#botleft
102+
{
103+
-moz-border-bottom-left-radius: 0.5em;
104+
-webkit-border-bottom-left-radius: 0.5em;
105+
border-bottom-left-radius: 0.5em;
106+
}
107+
108+
#botright
109+
{
110+
-moz-border-bottom-right-radius: 0.5em;
111+
-webkit-border-bottom-right-radius: 0.5em;
112+
border-bottom-right-radius: 0.5em;
113+
}
114+
115+
#top
116+
{
117+
-moz-border-top-left-radius: 0.5em;
118+
-webkit-border-top-left-radius: 0.5em;
119+
border-top-left-radius: 0.5em;
120+
-moz-border-top-right-radius: 0.5em;
121+
-webkit-border-top-right-radius: 0.5em;
122+
border-top-right-radius: 0.5em;
123+
}
124+
125+
#bot
126+
{
127+
-moz-border-bottom-left-radius: 0.5em;
128+
-webkit-border-bottom-left-radius: 0.5em;
129+
border-bottom-left-radius: 0.5em;
130+
-moz-border-bottom-right-radius: 0.5em;
131+
-webkit-border-bottom-right-radius: 0.5em;
132+
border-bottom-right-radius: 0.5em;
133+
}
134+
135+
#access_head,#arrays,#hashes
136+
{
137+
white-space: pre;
138+
float: left;
139+
/* text-align: bottom; */
140+
background-color: paleturquoise;
141+
}
142+
143+
#composers
144+
{
145+
float: left;
146+
background-color: peachpuff;
147+
}
148+
149+
#automatic_dereference
150+
{
151+
float: right;
152+
clear: right;
153+
background-color: lemonchiffon;
154+
}
155+
156+
#control_syntax
157+
{
158+
float: right;
159+
clear: right;
160+
background-color: moccasin;
161+
}
162+
163+
#operator_precedence
164+
{
165+
float: left;
166+
background-color: lightsalmon;
167+
}
168+
169+
#scope_declarators
170+
{
171+
float: left;
172+
background-color: lightblue;
173+
}
174+
175+
#types
176+
{
177+
float: right;
178+
clear: right;
179+
background-color: burlywood;
180+
}
181+
182+
#operator_domains
183+
{
184+
float: right;
185+
clear: right;
186+
background-color: lightpink;
187+
}
188+
189+
#metaoperators
190+
{
191+
float: left;
192+
clear: left;
193+
background-color: palevioletred;
194+
}
195+
196+
#special_variables
197+
{
198+
float: left;
199+
clear: left;
200+
background-color: bisque;
201+
}
202+
203+
#regex_metachars
204+
{
205+
float: left;
206+
background-color: lightcoral;
207+
}
208+
209+
#regex_modifiers
210+
{
211+
float: right;
212+
clear: right;
213+
background-color: thistle;
214+
}
215+
216+
#regex_charclasses
217+
{
218+
float: right;
219+
clear: right;
220+
background-color: lightsteelblue;
221+
}
222+
223+
#links
224+
{
225+
float: right;
226+
background-color: powderblue;
227+
}
228+
229+
#IRC
230+
{
231+
float: right;
232+
background-color: turquoise;
233+
}

0 commit comments

Comments
 (0)