A Brief Introduction to Multi-Threading in PHP
- Foreword
- Execution
- Sharing
- Synchronization
- Pitfalls
<?php | |
use Zend\Http\Request; | |
use Zend\Http\Response;; | |
use ZF\MvcAuth\Authentication\AdapterInterface; | |
use ZF\MvcAuth\Identity\IdentityInterface; | |
use ZF\MvcAuth\MvcAuthEvent; | |
class CompositeAdapter implements AdapterInterface | |
{ | |
private $adapters = []; |
/* thumbnails alignment bug fix, see https://github.com/twitter/bootstrap/issues/3494 */ | |
.row-fluid .thumbnails [class*="span"] { | |
margin-left: 2.5641%; | |
} | |
.row-fluid .thumbnails [class*="span"]:first-child { | |
margin-left: 2.5641%; | |
margin-bottom: 0; | |
} | |
/* | |
>>> for n in range(1,13): m=12.0/n; print ".row-fluid .thumbnails span%d { width: %g%%;}" % (n,(100.0 - 2.5642*(m)) / m) |
1c1,21 | |
< <?php | |
--- | |
> <?php | |
> /** | |
> * Zend Framework | |
> * | |
> * LICENSE | |
> * | |
> * This source file is subject to the new BSD license that is bundled |
#!/bin/bash | |
SITE=/home/dev/sites/rmx | |
# Arbitrary shell commands, some run in background | |
echo "RMX using siteroot=$SITE" | |
$SITE/rmx/manage.py runserver & | |
compass watch $SITE/media/compass/ & | |
coffee -o $SITE/media/js -cw $SITE/media/coffee & | |
hamlpy-watcher $SITE/templates/hamlpy $SITE/templates/templates & |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |