-/* media features */
-
-@import url(terse.css) all and (max-width: 80em);
-
-@import url(mono.css) all and (monochrome);
-
/* general */
body {
-<:
-use utf8;
-use strict;
-use warnings;
-use open IO => ':utf8';
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = 'text/html; charset=utf-8';
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>country code cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
- my %styles = map {$_ => $_} qw(dark mono red);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css", $_
- ) for keys %styles;
-:>
+<:= stylesheet(qw'light dark mono red') :>
</head>
<body>
-<:
-use utf8;
-use strict;
-use warnings;
-use open IO => ':utf8';
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = 'text/html; charset=utf-8';
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>charset cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="/base.css">
+<:= stylesheet(qw'light') :>
</head>
<body id="charset">
+@import url(base.css);
+@import url(terse.css) all and (max-width: 80em);
+
.pm {background: #8F8} /* motion */
.po {background: #BF6} /* window */
.co {background: #FF6} /* command */
--- /dev/null
+<:
+use utf8;
+use strict;
+use warnings;
+no warnings 'qw'; # you know what you doing
+no warnings 'uninitialized'; # save some useless checks for more legible code
+use open IO => ':utf8';
+
+our $style;
+
+$header{content_type} = 'text/html; charset=utf-8';
+
+sub stylesheet {
+ my %styles = map {$_ => $_} @_;
+ $style = exists $get{style} && $styles{$get{style}} || $_[0];
+ return join "\n", map { sprintf(
+ '<link rel="%s" type="text/css" media="all" href="%s" title="%s">',
+ $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css", $_
+ ) } @_;
+}
+
+@import url(base.css);
+@import url(terse.css) all and (max-width: 80em);
+
body {
background: #000;
color: #CCC;
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # to quote or not to quote, that is the question
-use open IO => ':utf8';
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = 'text/html; charset=utf-8';
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>digraph cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-:>
+<:= stylesheet(qw'light') :>
</head>
<body id="digraphs">
-<:
-use utf8;
-use strict;
-use warnings;
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = "text/html; charset=utf-8";
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<title>vi cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<title>cheat sheets</title>
+<:= stylesheet(qw'light dark') :>
<style type="text/css">
ul {
margin-bottom: 1ex;
--- /dev/null
+@import url(base.css);
+@import url(terse.css) all and (max-width: 80em);
+@import url(mono.css) all and (monochrome);
+@import url(base.css);
+@import url(terse.css) all and (max-width: 80em);
+
body dl.legend-options dt {background: #EEE}
body .pm {background: #FFF} /* motion */
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign);
+<(common.inc.plp)><:
+ use Shiar_Sheet::KeySigns qw(%sign);
-our $VERSION = 'v1.0';
+ our $VERSION = 'v1.0';
-$header{content_type} = "text/html; charset=$sign{charset}";
+ $header{content_type} = "text/html; charset=$sign{charset}";
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
-<title>mplayer cheat sheet</title>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<title>mplayer cheat sheet</title>
+<:= stylesheet(qw'light dark circus mono red terse') :>
<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
<!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+ print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
+ unless $showkeys;
print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
if $showkeys and $get{keys} eq 'ghost';
:>
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign);
+<(common.inc.plp)><:
+ use Shiar_Sheet::KeySigns qw(%sign);
-our $VERSION = 'v1.0';
+ our $VERSION = 'v1.0';
-$header{content_type} = "text/html; charset=$sign{charset}";
+ $header{content_type} = "text/html; charset=$sign{charset}";
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
-<title>mutt cheat sheet</title>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<title>mutt cheat sheet</title>
+<:= stylesheet(qw'light dark circus mono red terse') :>
<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
<!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+ print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
+ unless $showkeys;
print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
if $showkeys and $get{keys} eq 'ghost';
:>
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign);
+<(common.inc.plp)><:
+ use Shiar_Sheet::KeySigns qw(%sign);
-our $VERSION = 'v1.0';
+ our $VERSION = 'v1.0';
-$header{content_type} = "text/html; charset=$sign{charset}";
+ $header{content_type} = "text/html; charset=$sign{charset}";
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>nethack cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<:= stylesheet(qw'light dark circus mono red terse') :>
<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
<!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+ print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
+ unless $showkeys;
print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
if $showkeys and $get{keys} eq 'ghost';
:>
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii}
+<(common.inc.plp)><:
+ use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii}
-our $VERSION = 'v1.0';
+ our $VERSION = 'v1.0';
-$header{content_type} = "text/html; charset=$sign{charset}";
+ $header{content_type} = "text/html; charset=$sign{charset}";
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>readline cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<:= stylesheet(qw'light dark circus mono red terse') :>
<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
<!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+ print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
+ unless $showkeys;
print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
if $showkeys and $get{keys} eq 'ghost';
:>
+@import url(base.css);
+
body {
background: #000;
color: #CCC;
-<:
-use utf8;
-use strict;
-use warnings;
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = "text/html; charset=utf-8";
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>sheet page source code</title>
-<link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
- my %styles = map {$_ => $_} qw(dark mono red);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css", $_
- ) for keys %styles;
-:>
+<:= stylesheet(qw'light dark mono red') :>
</head>
<body id="source">
-<:
-use utf8;
-use strict;
-use warnings;
-use open IO => ':utf8';
-use List::Util 'min';
-
-our $VERSION = 'v1.0';
+<(common.inc.plp)><:
+ use List::Util 'min';
-$header{content_type} = 'text/html; charset=utf-8';
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>terminal colour cheat sheet</title>
<meta http-equiv="content-type" content="utf-8">
-<link rel="stylesheet" type="text/css" media="all" href="/base.css">
+<:= stylesheet(qw'light') :>
</head>
<body id="colour">
+@import url(base.css);
+
body ul.keys li {
position: relative; /* hides overflow */
width: 4.5em;
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # that's not a comment, it's a NUMBER SIGN
-use open IO => ':utf8';
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = 'text/html; charset=utf-8';
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="utf-8">
<title>digraph cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-:>
+<:= stylesheet(qw'light dark') :>
</head>
<body id="unicode">
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii}
+<(common.inc.plp)><:
+ use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii}
-our $VERSION = 'v1.2';
+ our $VERSION = 'v1.2';
-$header{content_type} = "text/html; charset=$sign{charset}";
+ $header{content_type} = "text/html; charset=$sign{charset}";
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>vi cheat sheet</title>
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<:= stylesheet(qw'light dark circus mono red terse') :>
<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
<!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+ print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
+ unless $showkeys;
print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
if $showkeys and $get{keys} eq 'ghost';
:>
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign);
+<(common.inc.plp)><:
+ use Shiar_Sheet::KeySigns qw(%sign);
-our $VERSION = 'v1.0';
+ our $VERSION = 'v1.0';
-$header{content_type} = "text/html; charset=$sign{charset}";
+ $header{content_type} = "text/html; charset=$sign{charset}";
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
-<title>vimperator cheat sheet</title>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
+<title>vimperator cheat sheet</title>
+<:= stylesheet(qw'light dark circus mono red terse') :>
<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
<!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n<link rel="%s" type="text/css" media="all" href="%s" title="%s">},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+ print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
+ unless $showkeys;
print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
if $showkeys and $get{keys} eq 'ghost';
:>