Skip to content

Instantly share code, notes, and snippets.

View pensiero's full-sized avatar
🍕
Eating a Pizza

Oscar Fanelli pensiero

🍕
Eating a Pizza
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pensiero on github.
  • I am pensiero (https://keybase.io/pensiero) on keybase.
  • I have a public key ASD75Fyp_O_p-u8UYDR_Iy6JiVAuDnWt-SMRO43tvt58_go

To claim this, I am signing this object:

- MGS 4
- LittleBigPlanet
- Uncharted
- Uncharted 2
- Prince of Persia
- NFS: Shift
- NFS: Underground
- GTA IV
- Mirror's Edge
- DeBlob2
<?php
function elaborateParams($params, $notAllowedKey)
{
// scorre i parametri dei filtri
$paramsString = "";
$paramsStringWithEverything = "";
$i = 0;
foreach ($params as $key => $param) {
<?php
$cars = [
[
'engine' => 'gasoline',
'doors' => 3,
'color' => 'red',
'cc' => '1200',
'release' => '2016',
],
<?php
function printOdds() {
$i = 0;
while ($i <= 100) {
if ($i % 2 != 0) {
echo $i . " ";
}
$i++;
}
<?php
$job = $this->_jobManager->get('Toms\Job\VisitJob');
$this->_queue->push($job);
// strip table tag
$doc = new \DOMDocument();
$doc->loadHTML($text);
$xpath = new \DOMXPath($doc);
foreach ($xpath->query('//table') as $node) {
$node->parentNode->removeChild($node);
}
$textWithoutTable = $doc->saveHTML();
// controlla che ci siano almeno X paragrafi
/**
* Magic getter to expose protected properties.
*
* @param string $property
* @return mixed
*/
public function __get($property) {
return $this->{'get'.ucfirst($property)}();
}
$application = $event->getTarget();
$application->getEventManager()->attach(
MvcEvent::EVENT_ROUTE,
function (MvcEvent $event) {
/* @var $route Route\PageRoute */
$route = $event
->getApplication()
->getServiceManager()
->get(__NAMESPACE__ . '\Route\PageRoute');
object(Zend\Http\Response)[1337]
protected 'recommendedReasonPhrases' =>
array (size=57)
100 => string 'Continue' (length=8)
101 => string 'Switching Protocols' (length=19)
102 => string 'Processing' (length=10)
200 => string 'OK' (length=2)
201 => string 'Created' (length=7)
202 => string 'Accepted' (length=8)
203 => string 'Non-Authoritative Information' (length=29)