- Add the following package to your composer.json:
"require": {
...
"leafo/lessphp": "dev-master",
...
function setSelectionPlugin() { | |
var _setSelectionRange, _getCursorPosition, support = (function() { | |
var input = document.createElement('input'), result; | |
result = { | |
setSelectionRange: ('setSelectionRange' in input) || ('selectionStart' in input), | |
createTextRange: ('createTextRange' in input) || ('selection' in document) | |
}; | |
input = null; | |
return result; | |
}()); |
<?php | |
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
<?php | |
namespace CQRSSample\Domain\Model | |
{ | |
/** | |
* Please read this. It may be interesting to you. You can ridicule me ONLY if you read the whole thing. | |
* | |
* CQRS is NOT about different data sources and is NOT about Event Sourcing. | |
* CQRS IS about breaking out your reads and writes. It's powerful and simple! |
<?php | |
// Controller | |
public function linkAction(Request $request) | |
{ | |
if (false === $request->attributes->has('link')) { | |
throw new HttpException(400, 'Link header was not provided'); | |
} |
license: gpl-3.0 | |
height: 600 | |
redirect: https://observablehq.com/@d3/d3-force-directed-graph |
<?php | |
namespace xPheRe\Bundle\TagBundle; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use xPheRe\Bundle\TagBundle\DependencyInjection\Compiler\TagCollectionPass; | |
class xPheReTagBundle extends Bundle | |
{ |
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |
data:text/html, | |
<body id='b'> | |
<textarea spellcheck="false" id="t"></textarea> | |
<script> | |
var f, | |
t = document.getElementById("t"), |