Tabs that I keep open to read sometime (looks more like never)
- Video at ZendCon 2013
- Herrera.io GitHub account - many PHP libraries
- Lychee - open source photo management web application
- Websockets with Ratchet
| <?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) { |
| require 'formula' | |
| def mysql_installed? | |
| `which mysql_config`.length > 0 | |
| end | |
| def postgres_installed? | |
| `which pg_config`.length > 0 | |
| end |
| Ext.define('App.model.Bug', { | |
| extend: 'Ext.data.Model', | |
| fields: ['id', 'title', 'description'] | |
| }); |
| find tests -iname "*.php" | xargs grep "class" | sort | cut -f 1 -d : | uniq -c | sort -n -r |
| <Directory /vagrant> | |
| AllowOverride None | |
| Order allow,deny | |
| deny from all | |
| </Directory> | |
| <FilesMatch .jasper$> | |
| Order allow,deny | |
| allow from all | |
| </FilesMatch> |
| 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 |
| <?php | |
| $players = array('cedric', 'mathieu', 'sylvain', 'christian'); | |
| shuffle($players); | |
| var_dump($players); |
| <?php | |
| namespace Comet\Event\Subscriber; | |
| use Doctrine\Common\EventSubscriber; | |
| use Doctrine\ORM\Tools\ToolEvents; | |
| use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; | |
| class RemoveFilteredTableEventSubscriber implements EventSubscriber { |
| grep -shri "^deb" /etc/apt | cut -d " " -f 2 | sort -u | sed -e 's;https\?://;;' | sed -e 's;/.*$;;' | xargs dig +short | sort -u |
Tabs that I keep open to read sometime (looks more like never)