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 | |
$a = 0; | |
switch ($a) { | |
case 'test': | |
$b = 'TEST'; | |
break; | |
default: | |
$b = 'DEFAULT'; | |
} |
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 Acme\ContentBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Acme\BaseBundle\Annotations\RDF as RDF; | |
/** | |
* Acme\ContentBundle\Entity\Article | |
* | |
* @RDF\Type(name="http://schema.org/Article") |
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 | |
function parseHttpAcceptHeader($string) { | |
$pattern = '#(?P<maintype>[a-z\*]*)/(?P<fullsubtype>(?P<subtype>[a-z0-9.\*-]*)([+](?P<submediatype>[a-z]*))?)(;q=(?P<quality>[0-9.]*))?#i'; | |
preg_match($pattern, $string, $matches); | |
return $matches; | |
} | |
$string = 'application/vnd.github.full+json;q=0.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
<li> | |
<div class="select-menu js-menu-container js-select-menu"> | |
<span class="minibutton select-menu-button js-menu-target"> | |
Bookmark | |
</span> | |
<div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax=""> |
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
### | |
# MainData Graph | |
'0' -> STRING SendString(strings/SendString) | |
'20' -> INTERVAL RunInterval(core/RunInterval) | |
'axes' -> KEY ReadAxes(objects/ExtractProperty) | |
'buttons' -> KEY ReadButtons(objects/ExtractProperty) | |
RunInterval() OUT -> IN SendString(strings/SendString) | |
SendString(strings/SendString) OUT -> GAMEPAD ReadGamepad(interaction/ReadGamepad) | |
ReadGamepad() OUT -> IN GamepadData(core/Split) | |
GamepadData() OUT -> IN ReadAxes(objects/ExtractProperty) |
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
test = require "noflo-test" | |
test.component("packets/FilterByValue"). | |
discuss("given the value, indicating the outport of the filtered value"). | |
send.connect("filterValue"). | |
send.data("filterValue", 1). | |
send.disconnect("filterValue"). | |
discuss("provide some data packets"). | |
send.connect("in"). | |
send.data("in", 0). |
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
♢ packets/FilterByValue | |
✗ Errored » callback not fired | |
in given the value, indicating the outport of the filtered value provide some data packets | |
in packets/FilterByValue | |
in test/FilterByValue.js | |
✗ Errored » 6 honored ∙ 1 errored ∙ 1 dropped | |
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 | |
return array( | |
Doctrine\Common\Annotations\AnnotationReader::class => [ | |
'provider' => [ | |
'class' => Acme\Provider\AnnotationReaderProvider::class | |
] | |
], | |
Symfony\Component\HttpFoundation\Request::class => [ | |
'provider' => [ |
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 Acme\Provider; | |
use Doctrine\Common\Annotations\AnnotationReader; | |
use Doctrine\Common\Annotations\AnnotationRegistry; | |
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver as MdbAnnotationDriver; | |
use gthm\partlets\system\Config; | |
use rg\injektor\Provider; | |
/** |
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
$this->preparer->prepare($partlet); | |
$content = $this->render($partlet); | |
if (is_array($content)) { | |
return new JsonResponse($content); | |
} else { | |
$containerClass = $partlet->getContainerPartlet(); | |
$containerWidget = $this->dic->getInstanceOfClass($containerClass); | |
$this->preparer->prepare($containerWidget, ['content' => $content]); |
OlderNewer