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 Ibrows\GameBundle\Util; | |
class ObjectIterator implements \Iterator | |
{ | |
protected $objects = array(); | |
/** | |
* @param object $object |
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 | |
$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 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 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 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 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 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 | |
trait BaseTrait | |
{ | |
abstract public function getDoctine(); | |
} | |
abstract class BaseClass | |
{ | |
use BaseTrait; |
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
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script> | |
<script type="text/javascript" src="tl_files/MooGeo-yui-compressed.js"></script> | |
<script type="text/javascript"> | |
<!--//--><![CDATA[//><!-- | |
window.addEvent('domready', function() | |
{ | |
// Configuration | |
mapdiv = 'mapdiv'; | |
latdestination = 47; | |
londestination = 8; |
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
<!-- indexer::stop --> | |
<!-- Google Analytics --> | |
<script type="text/javascript"> | |
<!--//--><![CDATA[//><!-- | |
window.addEvent('load', function() | |
{ | |
var gaJsHost = (('https:' == document.location.protocol) ? 'https://ssl.' : 'http://www.'); | |
Asset.javascript(gaJsHost + 'google-analytics.com/ga.js', | |
{ | |
onload: function() |
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 | |
/** | |
* ftp.class.php | |
* | |
* Distributed under the GNU Lesser General Public License (LGPL v3) | |
* (http://www.gnu.org/licenses/lgpl.html) | |
* This program is distributed in the hope that it will be useful - | |
* WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
OlderNewer