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 React\Filesystem\Node\NodeInterface; | |
| require dirname(__DIR__) . '/vendor/autoload.php'; | |
| $loop = \React\EventLoop\Factory::create(); | |
| $i = 0; | |
| $dir = \React\Filesystem\Filesystem::create($loop)->dir(__DIR__); |
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
| { | |
| "require": { | |
| "react/event-loop": "^0.4.1", | |
| "react/promise": "^2.2" | |
| } | |
| } |
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 'vendor/autoload.php'; | |
| use GuzzleHttp\Client; | |
| use GuzzleHttp\Message\Response; | |
| use React\EventLoop\Factory; | |
| use React\Filesystem\Filesystem; | |
| use React\Filesystem\Stream\WritableStreamInterface; | |
| use WyriHaximus\React\RingPHP\HttpClientAdapter; |
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
| var c=0;setInterval(function(){if (c==16777216)c=0;document.getElementsByName('theme-color')[0].setAttribute('content', '#'+ ('00000' + c.toString(16)).slice(-6));c++;},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
| {% extends "default" %} | |
| {% block metaTags %} | |
| <meta name="robots" content="index, follow"> | |
| <meta name="twitter:card" content="summary" /> | |
| <meta name="twitter:site" content="@WyriHaximus" /> | |
| <meta name="twitter:title" content="{{ page.title }}" /> | |
| <meta name="twitter:description" content="{{ page.blocks.content|split('<!-- More -->', 2)[0]|raw|striptags }}" /> | |
| <meta name="twitter:url" content="{{ site.url }}{{ page.url }}" /> |
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
| <meta name="twitter:card" content="summary" /> | |
| <meta name="twitter:site" content="@WyriHaximus" /> | |
| <meta name="twitter:title" content="{{ page.title }}" /> | |
| <meta name="twitter:description" content="{{ page.blocks.content|split('<!-- More -->', 2)[0]|raw|striptags }}" /> | |
| <meta name="twitter:url" content="{{ site.url }}{{ page.url }}" /> |
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
| services: | |
| twig.extension.text: | |
| class: Twig_Extensions_Extension_Text | |
| tags: | |
| - { name: twig.extension } |
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
| return futurePromise($loop)->then(function () use ($loop, $check) { | |
| $result = $check(); | |
| if ($result !== false) { | |
| return $result; | |
| } | |
| return tickingFuturePromise($loop, $check); | |
| }); | |
| /*$deferred = new Deferred(); | |
| $loop->futureTick(function () use ($deferred, $check, $loop) { |
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 | |
| (function() { | |
| $app = new \Slim\Slim(); | |
| $app->get('/hello/:name', function ($name) { | |
| echo "Hello, $name"; | |
| }); | |
| $app->run(); | |
| })(); |
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 | |
| $loader = include __DIR__ . '/../vendor/autoload.php'; | |
| $loop = React\EventLoop\Factory::create(); | |
| $counter = 0; | |
| $timer = $loop->addPeriodicTimer(10, function($timer) use($loop, &$counter) { | |
| $counter++; | |
| $type = 'None'; |