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 | |
for f in *.mkv ; do ffmpeg -i "$f" -c:v libvpx -b:v 2M -c:a libvorbis "${f%.mkv}.webm" ; done |
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 | |
/** | |
* Class Test | |
* @method $this setVar1(string $var1) | |
* @method $this getVar1() | |
* @method string getVar2() | |
*/ | |
class Test | |
{ |
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 | |
TARGET=/backups/mysqldatabases | |
IGNORE="mysql|information_schema|performance_schema|test" | |
CONF=/etc/mysql/debian.cnf | |
HOST=localhost | |
PORT=3306 | |
USER=root | |
PASSWORD= |
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 | |
class SimpleSoapClient | |
{ | |
/** | |
* @var string | |
*/ | |
protected $username; | |
/** |
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 | |
$node = new \PHPParser_Node_Expr_MethodCall(new \PHPParser_Node_Expr_Variable('app'), 'match', array( | |
new \PHPParser_Node_Scalar_String('/'), | |
new \PHPParser_Node_Expr_Closure(array( | |
'stmts' => array( | |
new \PHPParser_Node_Stmt_Return( | |
new \PHPParser_Node_Expr_New( | |
new \PHPParser_Node_Name('\stdClass') | |
) |
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 Ibrows\GameBundle\Util; | |
class ObjectIterator implements \Iterator | |
{ | |
protected $objects = array(); | |
/** | |
* @param object $object |
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 | |
class BlogController | |
{ | |
/** | |
* @var \Twig_Environment | |
*/ | |
protected $twig; | |
/** |
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 Vendor\Bundle\Entity; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Table(name="many_a") | |
* @ORM\Entity |
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 Vendor\Bundle\Entity; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Collection; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Table(name="one") |
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 | |
abstract class BaseUser | |
{ | |
protected $id; | |
public function getId() | |
{ | |
return $this->id; | |
} |