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
| default: | |
| suites: | |
| portal: | |
| contexts: [Behat\MinkExtension\Context\MinkContext, PortalContext] | |
| path: %paths.base%/features | |
| extensions: | |
| Behat\MinkExtension: | |
| base_url: http://st3hoekcp-acc.wonenportaal.nl/ | |
| sessions: | |
| default: |
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
| <?hh | |
| /*-------------------------*\ | |
| PROGRAMMING | |
| WITH | |
| NOTHING | |
| \*-------------------------*/ | |
| /* | |
| * A heavily based on http://codon.com/programming-with-nothing | |
| */ |
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
| and(A, A, A). | |
| and(A, B, 0) :- A \= B. | |
| or(1, 0, 1). | |
| or(0, 1, 1). | |
| or(1, 1, 1). | |
| or(0, 0, 0). | |
| xor(1, 0, 1). | |
| xor(0, 1, 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
| <?php | |
| describe('StringCalculator', function () { | |
| it('requires string output', function () { | |
| $this->shouldThrow('\InvalidArgumentException')->during('add', [null]); | |
| }); | |
| it('adds 2 numbers separated by comma', function () { | |
| $this->add('1,2')->shouldReturn(3); |
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
| --- | |
| layout: default | |
| title: Category Archive | |
| generator: [posts_category_index, pagination] | |
| pagination: | |
| provider: page.category_posts | |
| --- | |
| {% block title %}{{ page.title }} "{{ page.category }}"{% endblock %} | |
| {% block content %} |
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 | |
| Route::get('/hello-mail/{name}', function ($name) { | |
| Mail::send('emails.hello', array('name' => $name), function ($message) { | |
| $message->to('foo@example.com', 'Foo')->subject('Someone visited /hello-mail/'); | |
| }); | |
| }); |
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
| # formats array | |
| formats = { | |
| # ... | |
| 'varnish-3': 'Varnish 3', | |
| 'varnish-4': 'Varnish 4' | |
| } | |
| """ | |
| in conf.py | |
| """ |
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 | |
| use Symfony\Component\HttpFoundation\Request; | |
| // deze inject je | |
| $router = ...; // router | |
| $accessMap = ...; // security.access_map | |
| $accessDecisionManager = ...; // security.access.decision_manager | |
| $route = 'admin_homepage'; | |
| $url = $router->generate($route); |
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 | |
| interface LineNumber | |
| { | |
| function getLineNumber($currentLineNumber); | |
| } | |
| class RelativeLineNumber implements LineNumber | |
| { | |
| private $linesDelta; |
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 | |
| require_once __DIR__.'/../vendor/autoload.php'; | |
| use Gnugat\Redaktilo\Filesystem; | |
| use Gnugat\Redaktilo\Editor; | |
| use Gnugat\Redaktilo\File; | |
| use Symfony\Component\Filesystem\Filesystem as SymfonyFilesystem; | |
| $symfonyFilesystem = new SymfonyFilesystem(); |