This file contains 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 | |
$dnsResolverFactory = new \React\Dns\Resolver\Factory(); | |
$dnsResolver = $dnsResolverFactory->createCached('8.8.8.8', $loop); | |
$factory = new \React\HttpClient\Factory(); | |
$client = $factory->create($loop, $dnsResolver); | |
$socket = new \React\Socket\Server($loop); |
This file contains 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 Sculpin\Contrib\Taxonomy\PermalinkStrategy; | |
class ToyRocketStrategy { | |
public function magic($str) { | |
return $str . '∙∙∙∙∙·▫▫ᵒᴼᵒ▫ₒₒ▫ᵒᴼᵒ▫ₒₒ▫ᵒᴼᵒ☼)===>'; | |
} | |
} |
This file contains 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; | |
rewrite ^/(.*)$ http://www.domain.nl/$1 permanent; | |
} |
This file contains 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 | |
var_export((new \ReflectionFunction('eio_init'))->getParameters());die(); | |
var_export(get_defined_constants());die(); | |
var_export(get_defined_functions());die(); |
This file contains 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
sculpin_content_types: | |
posts: | |
permalink: :year/:month/:day/:filename/ | |
taxonomies: | |
- tags | |
- name: categories | |
strategies: | |
- \Sculpin\Contrib\Taxonomy\PermalinkStrategy\ConvertToLowercaseStrategy | |
- \Sculpin\Contrib\Taxonomy\PermalinkStrategy\TranslateSpacesToDashesStrategy |
This file contains 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 | |
return [ | |
'WyriHaximus' => [ | |
'FlyPie' => [ | |
'thumbnails' => [ | |
'adapter' => 'S3', | |
'vars' => [ | |
// Array with data required to build the client, no need for it when you're provider the client yourself |
This file contains 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
sculpin_content_types: | |
posts: | |
permalink: :year/:month/:day/:filename/ | |
taxonomies: | |
- tags | |
- name: categories | |
strategies: | |
- \Sculpin\Contrib\Taxonomy\PermalinkStrategy\ConvertToLowercaseStrategy | |
- \Sculpin\Contrib\Taxonomy\PermalinkStrategy\TranslateSpacesToDashesStrategy |
This file contains 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
sculpin_content_types: | |
posts: | |
permalink: :year/:month/:filename/ | |
taxonomies: | |
- tags | |
- name: categories | |
strategies: | |
- \Sculpin\Contrib\Taxonomy\PermalinkStrategy\ConvertToLowercaseStrategy | |
- \Sculpin\Contrib\Taxonomy\PermalinkStrategy\TranslateSpacesToDashesStrategy |
This file contains 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'; |
This file contains 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(); | |
})(); |