Skip to content

Instantly share code, notes, and snippets.

View WyriHaximus's full-sized avatar
🐉
Breathing Fire

Cees-Jan Kiewiet WyriHaximus

🐉
Breathing Fire
View GitHub Profile
<?php
namespace App\Di\Provider;
use Clue\React\Redis\Client;
use Clue\React\Redis\Factory;
use Ray\Di\Di\Inject;
use Ray\Di\ProviderInterface;
use React\Cache\CacheInterface;
use React\Dns\Protocol\BinaryDumper;

Keybase proof

I hereby claim:

  • I am wyrihaximus on github.
  • I am wyrihaximus (https://keybase.io/wyrihaximus) on keybase.
  • I have a public key ASBv74shi_y3qACEgTXRfO4y__PIs5CnR5TlHwnMIPby5Ao

To claim this, I am signing this object:

@WyriHaximus
WyriHaximus / gist:238f04f100318bd4ccb2
Created March 3, 2016 12:28
RIPE Atlas to go probe list
23877,16668,14619,27414,21986,12848,16726,23099,3588,19053,22444,18657,23711,25733,2642,6041,22840,27153,18078,4842,3924,20381,25235,19984,23741
<?php
$deferred = new Deferred();
$guzzlePromise->then(function ($result) use ($deferred) {
$deferred->resolve($result);
});
return $deferred;
@WyriHaximus
WyriHaximus / 2016.md
Last active January 6, 2016 15:53
2016

Things I want to master/do/get, anything with a ✔ is something I already know but want to master further

  • ReactPHP ✔
  • Event Loop PSR
  • Promise PSR
  • ReactJS ✔
  • Redux
  • React Router
  • PHP 7
  • A new framework
<?php
class Response implements ReadableStreamInterface
{
public function __construct(DuplexStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers)
{
$this->stream = $stream;
$this->protocol = $protocol;
$this->version = $version;
$this->code = $code;
@WyriHaximus
WyriHaximus / react-guzzle.php
Last active September 10, 2015 05:27 — forked from mtdowling/react-guzzle.php
React, Guzzle, and AWS SDK for PHP integration
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use React\EventLoop\Factory;
use WyriHaximus\React\GuzzlePsr7\HttpClientAdapter;
$loop = Factory::create();
gulp:
NODE_PATH=/home/vagrant/node_modules gulp
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerLoader(function ($class) {
return class_exists($class);
});
<?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__);