This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* $Id: 771693f19339f360de003104259b6e301243f7d7 $ | |
* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$partition = function ($mapper, array $data, $nb_batches = 2) { | |
$length = count($data); | |
$nb_chunk = ceil($length / $nb_batches); | |
$chunks = array_chunk($data, $nb_chunk); | |
$batches = array(); | |
foreach ($chunks as $chunk) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
def mysql_installed? | |
`which mysql_config`.length > 0 | |
end | |
def postgres_installed? | |
`which pg_config`.length > 0 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('App.model.Bug', { | |
extend: 'Ext.data.Model', | |
fields: ['id', 'title', 'description'] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find tests -iname "*.php" | xargs grep "class" | sort | cut -f 1 -d : | uniq -c | sort -n -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Directory /vagrant> | |
AllowOverride None | |
Order allow,deny | |
deny from all | |
</Directory> | |
<FilesMatch .jasper$> | |
Order allow,deny | |
allow from all | |
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bitstream Vera Sans | |
Bitstream Vera Sans Mono | |
Bitstream Vera Serif | |
DejaVu LGC Sans | |
DejaVu LGC Sans Condensed | |
DejaVu LGC Sans Light | |
DejaVu LGC Sans Mono | |
DejaVu LGC Serif | |
DejaVu LGC Serif Condensed | |
Dialog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$players = array('cedric', 'mathieu', 'sylvain', 'christian'); | |
shuffle($players); | |
var_dump($players); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Comet\Event\Subscriber; | |
use Doctrine\Common\EventSubscriber; | |
use Doctrine\ORM\Tools\ToolEvents; | |
use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; | |
class RemoveFilteredTableEventSubscriber implements EventSubscriber { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -shri "^deb" /etc/apt | cut -d " " -f 2 | sort -u | sed -e 's;https\?://;;' | sed -e 's;/.*$;;' | xargs dig +short | sort -u |
OlderNewer