This file contains hidden or 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
#!/bin/bash | |
CURRENT_DIR="`pwd`" | |
REPO_NAME="$(basename "$CURRENT_DIR")" | |
if [ -d "/var/www/$REPO_NAME" ]; then | |
cd "/var/www/$REPO_NAME" || exit | |
unset GIT_DIR |
This file contains hidden or 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 Blar; | |
use Doctrine\Common\EventSubscriber, | |
Doctrine\ORM\Events, | |
Doctrine\ORM\Event\OnFlushEventArgs, | |
Doctrine\ORM\EntityManager; | |
class AuditListener implements EventSubscriber { |
This file contains hidden or 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
->add('orderdatefrom', 'doctrine_orm_callback', | |
array | |
( | |
'callback' => function(\Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery $queryBuilder, $alias, $field, $options) | |
{ | |
if(!isset($options['value']) || !$options['value']) | |
{ | |
return; | |
} | |
$value = $options['value']; |
This file contains hidden or 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 | |
header("Content-type: image/png"); | |
//1line per column | |
$text=array(0=>"THIS ISN'T",1=>"ORGANIC",2=>"AND I'M NOT",3=>"A FCKN",4=>"HIPSTER"); | |
$largeur=350; | |
$line_height=50; | |
$hauteur=sizeof($text)*$line_height; |
This file contains hidden or 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
// time to roll | |
// messy, but seems to work | |
// time for some action | |
// makin' stuff happen | |
// "I'm digging for fire" - Pixies |