topical media & game development
mobile-query-three-bench-benchmark.js-docs-parse.php / php
<?php
// cleanup requested filepath
_GET['f']) ? file = preg_replace('#(\.*[\/])+#', '', file .= preg_match('/\.[a-z]+file) ? '' : '.js';
// output filename
if (isset(output = _SERVER['argv'][1])) {
_SERVER['argv'][1];
} else {
file);
}
/*--------------------------------------------------------------------------*/
require('../vendor/docdown/docdown.php');
// generate Markdown
file,
'url' => 'github.com/bestiejs/benchmark.js/blob/master/benchmark.js'
));
// save to a .md file
file_put_contents(markdown);
// print
header('Content-Type: text/plain;charset=utf-8');
echo
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.