diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2014-09-13 16:28:45 +0200 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-13 16:28:45 +0200 |
| commit | b59234e25db8418cd53795ce94dda943e54f8ac1 (patch) | |
| tree | 0fae4d0f0fba8330327a834f0ff2b1ce733fc002 /web/src/vendor/benchmark/doc/parse.php | |
| parent | 2842f25b82799315c36a81564619cb5467bff61f (diff) | |
| download | mitmproxy-b59234e25db8418cd53795ce94dda943e54f8ac1.tar.gz mitmproxy-b59234e25db8418cd53795ce94dda943e54f8ac1.tar.bz2 mitmproxy-b59234e25db8418cd53795ce94dda943e54f8ac1.zip | |
use bowser-installer
Diffstat (limited to 'web/src/vendor/benchmark/doc/parse.php')
| -rw-r--r-- | web/src/vendor/benchmark/doc/parse.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/web/src/vendor/benchmark/doc/parse.php b/web/src/vendor/benchmark/doc/parse.php deleted file mode 100644 index 565b78fb..00000000 --- a/web/src/vendor/benchmark/doc/parse.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - - // cleanup requested filepath - $file = isset($_GET['f']) ? $_GET['f'] : 'benchmark'; - $file = preg_replace('#(\.*[\/])+#', '', $file); - $file .= preg_match('/\.[a-z]+$/', $file) ? '' : '.js'; - - // output filename - if (isset($_GET['o'])) { - $output = $_GET['o']; - } else if (isset($_SERVER['argv'][1])) { - $output = $_SERVER['argv'][1]; - } else { - $output = basename($file); - } - - /*--------------------------------------------------------------------------*/ - - require('../vendor/docdown/docdown.php'); - - // generate Markdown - $markdown = docdown(array( - 'path' => '../' . $file, - 'title' => 'Benchmark.js <sup>v1.0.0</sup>', - 'url' => 'https://github.com/bestiejs/benchmark.js/blob/master/benchmark.js' - )); - - // save to a .md file - file_put_contents($output . '.md', $markdown); - - // print - header('Content-Type: text/plain;charset=utf-8'); - echo $markdown . PHP_EOL; - -?> |
