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 | |
$path = dirname(__FILE__); | |
foreach(new ImageFilterIterator($path) as $image) { | |
echo $image, PHP_EOL; | |
} |
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 | |
// this is an example of using braces to mark off code for no reason other than | |
// to mark off code. | |
{ | |
if(is_int($input)) $this->SearchByID($input); | |
else if(strpos($input,'@')!==false) $this->SearchByEmail($input); | |
else $this->SearchByKeyword($input); | |
} |
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
EDITOR=joe |
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 | |
$q = $db->Query( | |
new m\Database\Query('dma-vehicle-get-list-by-owner'), | |
[':OwnerID' => $id] | |
); |
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 | |
$sql = new m\Database\Query; | |
$sql->Select('*') | |
->From('dma_objects') | |
->NaturalJoin('dma_objects_vehicles') | |
->Where('obj_type="vehicle"')->AndWhere('u_id=:OwnerID') | |
->OrderBy('obj_time_created ASC'); | |
echo $sql; |
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 PortMapper { | |
public $Host; | |
public $Guest; | |
public function __construct($host,$guest) { | |
list( | |
$this->Host, | |
$this->Guest |
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 | |
static function Get($what) { | |
if(is_int($what)) | |
return self::FetchByID($what); | |
else if(strpos($what,'@') !== false) | |
return self::FetchByEmail($what); | |
else |
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 App; | |
class User { | |
public function __construct($data) { | |
// given raw $data do whatever is needed to populate | |
// the object as we wish to interact with it. | |
} |
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
git rm -r --cached . |
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 App; | |
class TrayIcon extends \GtkStatusIcon { | |
public $Menu; | |
public function __construct() { | |
parent::__construct(); |