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
raphael@SIGPES-RAPHAEL:~/Downloads/vagrant-oracle-xe$ vagrant up | |
[oraxe] VM already created. Booting if it's not already running... | |
[oraxe] Clearing any previously set forwarded ports... | |
[oraxe] Forwarding ports... | |
[oraxe] -- 22 => 41022 (adapter 1) | |
[oraxe] Creating shared folders metadata... | |
[oraxe] Clearing any previously set network interfaces... | |
[oraxe] Preparing network interfaces based on configuration... | |
[oraxe] Running any VM customizations... | |
[oraxe] Booting VM... |
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 ZFTool\Model; | |
use Zend\Code\Generator\ValueGenerator; | |
class Skeleton | |
{ | |
const SKELETON_URL = 'https://github.com/zendframework/ZendSkeletonApplication/archive/master.zip'; | |
const API_LAST_COMMIT = 'https://api.github.com/repos/zendframework/ZendSkeletonApplication/commits?per_page=1'; |
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
raphael@curupira:~/Downloads/desenvolvimento/php-5.3.20$ make test TESTS=tests/output/bug63377.phpt | |
Build complete. | |
Don't forget to run 'make test'. | |
===================================================================== | |
PHP : /home/raphael/Downloads/desenvolvimento/php-5.3.20/sapi/cli/php | |
PHP_SAPI : cli | |
PHP_VERSION : 5.3.20 |
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
class base { | |
group { "puppet": | |
ensure => "present", | |
} | |
exec { "apt_update": | |
command => "apt-get update", | |
path => "/usr/bin" | |
} | |
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 | |
//colocar na pasta app | |
namespace MyApp; | |
class Date { | |
public static function next_week() | |
{ | |
$datetime = new \DateTime(); | |
$datetime->add(new \DateInterval('P7D')); | |
return $datetime->format('Y-m-d'); | |
} |
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 Iterable implements IteratorAggregate{ | |
protected $array; | |
function __construct(array $array = null ){ | |
if(is_array($array)) | |
$this->setArray($array); | |
} | |
function getArray(){ |
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 | |
$lista = array(1, 3, 5, 7, 56, 65, 96, 244, 700, 892); | |
function criarFiltro($maiorQue){ | |
return function ($x) use ($maiorQue){ | |
return $x > $maiorQue; | |
}; | |
} | |
$filtro100 = criarFiltro(100); |
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 | |
$lista = array(1, 3, 5, 7, 56, 65, 96, 244, 700, 892); | |
function criarFiltro($maiorQue){ | |
return function ($x) use ($maiorQue){ | |
return $x > $maiorQue; | |
}; | |
} | |
$filtro100 = criarFiltro(100); |
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 | |
$lista = array(1, 3, 5, 7, 56, 65, 96, 244, 700, 892); | |
$filtro100 = function ($x){ | |
return $x > 100; | |
}; | |
$filtro50 = function ($x){ | |
return $x > 50; |
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 Foo{ | |
protected static function speak(){ | |
echo __METHOD__, "\n\r"; | |
return 'Hi'; | |
} | |
public static function sayHi(){ | |
//return self::speak(); // PHP 5.2 <= |