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 My\Doctrine\ORM\Query\Functions; | |
| use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
| use Doctrine\ORM\Query\Lexer; | |
| use Doctrine\ORM\Query\Parser; | |
| use Doctrine\ORM\Query\QueryException; | |
| use Doctrine\ORM\Query\SqlWalker; |
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 | |
| abstract class TestCase extends \PHPUnit_Framework_TestCase | |
| { | |
| protected function assertException(callable $callback, $expectedException = 'Exception', $expectedCode = null, $expectedMessage = null) | |
| { | |
| $expectedException = ltrim((string) $expectedException, '\\'); | |
| if (!class_exists($expectedException) && !interface_exists($expectedException)) { | |
| $this->fail(sprintf('An exception of type "%s" does not exist.', $expectedException)); | |
| } |
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
| 'use strict'; | |
| // Generated on 2014-04-14 using generator-leaflet 0.0.14 | |
| var gulp = require('gulp'); | |
| var open = require('open'); | |
| var wiredep = require('wiredep').stream; | |
| // Load plugins | |
| var $ = require('gulp-load-plugins')(); |
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
| server { | |
| listen 80; | |
| server_name example.com; | |
| root d:/webs/example.com/www; | |
| index index.php index.html; | |
| try_files $uri $uri/ /index.php?$args; | |
| location ~ \.phpt?$ { | |
| try_files $uri @missing; |
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 Nette\Application\UI\Presenter; | |
| use Nette\DI\CompilerExtension; | |
| /** | |
| * Auto register presenters as services | |
| * @author Martin Bažík <martin@bazo.sk> |
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
| #!/bin/bash | |
| set -e | |
| # Tests runner for all Nette Components | |
| # Author: Majkl578 | |
| if [ "$1" == "--help" ] || [ "$1" == "-h" ] ; then | |
| echo "Usage: $0 [HHVM_BINARY=hhvm] [DIR=random]" | |
| exit 1 | |
| fi |
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 App\Controls; | |
| use App\Model\Entities; | |
| use Nette\DirectoryNotFoundException; | |
| use Nette\Forms; | |
| use Nette\Http; | |
| use Nette\Utils\Html; |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
querymutation
Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
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
| server { | |
| listen %ip%:%web_port%; | |
| server_name %domain_idn% %alias_idn%; | |
| location / { | |
| rewrite ^(.*) https://%domain_idn%$1 permanent; | |
| } | |
| } |

