tools: git output and pull fallback
[sheet.git] / index.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'cheat sheets',
5         version => '1.9',
6         description => [
7                 "Cheat sheets summarising various software programs and standards.",
8         ],
9         keywords => [qw'
10                 sheet cheat reference software overview summary help keyboard map unicode
11         '],
12         raw => [
13                 '<link rel="alternate" type="application/rss+xml"',
14                 ' title="RSS feed of repository updates"',
15                 ' href="http://git.shiar.nl/sheet.git/rss">',
16         ],
17 });
18
19 :>
20 <h1>Shiar's cheat sheets</h1>
21
22 <p>
23 Through the miracle of formatting, design, abbreviation, compression, and Perl,
24 the following topics have been condensed into single pages of reference.
25 <br>
26 Originally created by Mischa <span class="family-name">Poslawsky</span>,
27 but you're free to use, print, alter, and redistribute under the AGPL license.
28 </p>
29 <:
30 my @format = ('--date=short', "--pretty=%ad (%ar)\t%s");
31 if (open my $log, '-|', git => 'log', -1, @format) {{
32         my $line = readline $log;
33         $line or next;  # explicitly ignore empty input
34         my ($date, $subject) = split /[\t\n]/, $line;
35         $date =~ s/ \K/<small>/ and $date .= '</small>';
36         say "<p><strong>Last update</strong>: $date $subject</p>";
37 }}
38
39 :>
40 <nav>
41 <div class="section">
42 <h2>Keyboard maps</h2>
43 <ul>
44 <li><a href="/readline">readline</a>
45 <li><a href="/screen">screen</a>
46 <li><a href="/less">less</a>
47 <li><a href="/vi">vi/vim</a>
48 <li><a href="/vimperator">vimperator</a>
49 <li><a href="/mutt">mutt</a>
50 <li><a href="/nethack">nethack</a>
51 <li><a href="/mplayer">mplayer</a>
52 </ul>
53 </div>
54
55 <div class="section">
56 <h2>Unicode characters</h2>
57 <ul>
58 <li><a href="/charset">charsets</a>
59 <li><a href="/unicode">common glyphs</a>
60 <li><a href="/digraphs">digraphs</a>
61 <li><a href="/writing">alphabet comparison</a>
62 <li><a href="/latin">latin variants</a>
63 <li><a href="/digits">numerals</a>
64 <li><a href="/font">font coverage</a>
65 </ul>
66 </div>
67
68 <div class="section">
69 <h2>Other references</h2>
70 <ul>
71 <li><a href="/browser">browser support</a>
72 <li><a href="/countries">country codes</a>
73 <li><a href="/perl">perl versions</a>
74 <li><a href="/apl">apl symbols</a>
75 <li><a href="/termcol">terminal colours</a>
76 <li><a href="/sc/2">starcraft 2 units</a>
77         (<a href="/sc" title="StarCraft: Brood War">bw</a>)
78 <li><a href="/emoji">emoticons</a>
79 </ul>
80 </div>
81 </nav>
82