diff --git a/homepage_blurb.htm b/homepage_blurb.htm new file mode 100644 index 0000000..f73a8c5 --- /dev/null +++ b/homepage_blurb.htm @@ -0,0 +1,25 @@ + +

+ It's said that if you're not disgusted by code you wrote six months ago, you've stopped learning. +

+ + + +

+ This page contains several assorted projects, which no longer have any relation. They are listed in roughly chronological order (newest first). Unless specified otherwise, you may feel free to use and modify both the binaries and any source code, for any purpose, on the general condition you do not misrepresent who the author is (BSD license). +

+ +

+ Some of these projects formerly appeared on Google Code here, but were moved following the discontinuation of the Google Code binary download system. +

+ +

+ For bug reports, feature requests, or if you need any help, please + click here to email me. +

+ + diff --git a/rebuild.php b/rebuild.php index 7726539..ed5ce71 100644 --- a/rebuild.php +++ b/rebuild.php @@ -117,6 +117,16 @@ function text2html($sz) { $base = hesc($sz); $base = preg_replace('~(https?://[^ \\r\\n\\t]+)~i', '\\1', $base); + $base = preg_replace('~=+(.+)=+~', '\\1', $base); + + $btparts = explode('`', $base); + if (count($btparts) > 1 && (count($btparts) % 2)) { + for ($i = 1, $e = count($btparts); $i < $e; $i += 2) { + $btparts[$i] = ''.$btparts[$i].''; + } + $base = implode('', $btparts); + } + return nl2br($base); } @@ -311,7 +321,7 @@ function buildall() { foreach($projects as $dirname => $projectname) { - echo sprintf("[%2d/%2d] ".$projectname."...", ++$count, count($projects)); + echo sprintf("[%3d/%3d] ".$projectname."...", ++$count, count($projects)); $pr = new CProject($dirname, $projectname); $pr->write(); @@ -336,30 +346,12 @@ function buildall() { ob_start(); ?> -

- It's said that if you're not disgusted by code you wrote six months ago, you've stopped learning. Well, this is a repository of disgust. -

- - - -

- This page contains several assorted projects, which no longer have any relation. They are listed in roughly chronological order (newest first). Unless specified otherwise, you may feel free to use and modify both the binaries and any source code, for any purpose, on the general condition you do not misrepresent who the author is (BSD license). -

- -

- Some of these projects formerly appeared on Google Code here, but were moved following the discontinuation of the Google Code binary download system. -

-

- For bug reports, feature requests, or if you need any help, please - click here to email me. -

- - + + + + + diff --git a/static/style.css b/static/style.css index fd8f47c..3f7ecef 100644 --- a/static/style.css +++ b/static/style.css @@ -12,6 +12,10 @@ a:hover { h1,h2,h3 { margin-top:0; } +.code { + background: #F8F8F8; + font-family:Consolas,monospace; +} /* */