Nicolas Grekas - nicolas.grekas, gmail.com
17 juin 2011 - Dernière mise à jour le 3 sept. 2011
Ce gist n'est plus mis à jour. Voir maintenant :
Nicolas Grekas - nicolas.grekas, gmail.com
17 juin 2011 - Dernière mise à jour le 3 sept. 2011
Ce gist n'est plus mis à jour. Voir maintenant :
Nicolas Grekas - nicolas.grekas, gmail.com
17 June 2011 - Last updated on 3 sept. 2011
Not updated any more on this gist. See:
<?php /****************** vi: set fenc=utf-8 ts=4 sw=4 et: ***************** | |
* | |
* Copyright : (C) 2011 Nicolas Grekas. All rights reserved. | |
* Email : [email protected] | |
* License : http://www.gnu.org/licenses/lgpl.txt GNU/LGPL | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as | |
* published by the Free Software Foundation, either version 3 of the | |
* License, or (at your option) any later version. |
<?php /****************** vi: set fenc=utf-8 ts=4 sw=4 et: ***************** | |
* | |
* Copyright : (C) 2012 Nicolas Grekas. All rights reserved. | |
* Email : [email protected] | |
* License : http://apache.org/licenses/LICENSE-2.0 | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the Apache License version 2. | |
* | |
***************************************************************************/ |
<?php | |
if (isset($_GET['i'])) | |
{ | |
// Send a blank gzipped GIF to test browser capability to decode it | |
// See http://www.stevesouders.com/blog/2010/07/12/velocity-forcing-gzip-compression/ | |
header('Content-Type: image/gif'); | |
header('Content-Encoding: deflate'); | |
header('Pragma: no-cache'); |
git clone https://github.com/nicolas-grekas/Patchwork-PHP-Parser.git ppp | |
cd ppp | |
./bin/ppp t1.php #see below for t1.php (and t2.php, required by t1.php) |
<?php | |
// composer require patchwork/dumper '1.0.*' | |
require __DIR__ . '/vendor/autoload.php'; | |
set_debug_handler(function ($var) { | |
$c = new Patchwork\Dumper\Collector\PhpCollector(); | |
$data = $c->collect($var); | |
$data->dump(new Patchwork\Dumper\CliDumper()); | |
}); |
<?php | |
$len = 1000000; | |
$a = range(1, $len); | |
$f = SplFixedArray::fromArray($a); | |
$s = microtime(1); | |
$i = $len; |
#!/bin/bash | |
go_version=$1 | |
go_arch=linux-amd64 | |
export GOPATH="$HOME/go" | |
if [ ! -e $GOPATH ] | |
then | |
mkdir $GOPATH |