View Example.fusion
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
<Some.Package:ZipArchiveLink zip.files={['resource://Neos.Neos/Public/Images/Login/Logo.svg', 'resource://Neos.Neos/Public/Images/Login/Wallpaper.jpg']} filename="archive.zip"> | |
Download | |
</Some.Package:ZipArchiveLink> |
View Configuration_Policy.yaml
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
# Concrete assignments from roles to privileges can happen in your global /Configuration/Policy.yaml file | |
roles: | |
'Some.Distribution:Administrator': | |
privileges: | |
- privilegeTarget: 'Some.Package:AccessAnyProduct' | |
permission: GRANT | |
'Some.Distribution:User': |
View Tests_Behavior_Bootstrap_FeatureContext.php
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 | |
declare(strict_types=1); | |
use Behat\Behat\Context\Context; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Firebase\JWT\JWT; |
View machine.js
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
const nestedStates = { | |
initial: 'a1', | |
states: { | |
a1: { | |
on: { | |
FOO: "a2" | |
} | |
}, | |
a2: { | |
type: "final" |
View machine.js
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
const machine = Machine( | |
{ | |
id: "buyBook", | |
initial: "outside", | |
context: { | |
loggedIn: false, | |
subscription: null, | |
bookId: null, | |
initialLocation: null, | |
alreadySubscribedChosen: false |
View EelRpcMiddleware.php
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 | |
declare(strict_types=1); | |
namespace Some\Package; | |
use GuzzleHttp\Psr7\Response; | |
use Neos\Eel\Context; | |
use Neos\Eel\EelEvaluatorInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; |
View machine.js
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
const todoMachine = Machine({ | |
id: "todo", | |
initial: "reading", | |
context: { | |
completed: false | |
}, | |
states: { | |
reading: { | |
on: { | |
SET_COMPLETED: { |
View machine.js
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
const playheadMachine = Machine({ | |
id: 'playhead', | |
initial: 'idle', | |
context: { | |
fps: 2, | |
events: [], | |
lastEmittedEvent: null, | |
emitted: [], | |
playhead: 0 | |
}, |
View machine.js
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
View machine.js
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
const machine = Machine({ | |
initial: 'idle', | |
context: { | |
userId: null, | |
projectId: null, | |
revision: 0 | |
}, | |
type: 'parallel', | |
states: { |
NewerOlder