wget http://www.lueck.tv/graph-composer/graph-composer.phar
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/sh | |
# | |
# chkconfig: 12345 01 99 | |
# description: EC2 route change | |
. /etc/rc.d/init.d/functions | |
prog=${0##*/} | |
lock=/var/lock/subsys/$prog |
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 compose(callable $initial, callable ...$functions) | |
{ | |
if (count($functions) < 1) { | |
throw new \InvalidArgumentException('at least two functions are required'); | |
} | |
return array_reduce($functions, function ($f, $g) { | |
return function (...$args) use ($f, $g) { | |
return $f($g(...$args)); |
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
this is index.html | |
<script src="sample.js"></script> |
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 ngyuki\Example\AsyncReceive; | |
class Await | |
{ | |
private $has = false; | |
private $val = false; | |
public function reset() | |
{ |
PHP 5.5 でコルーチンが実装されましたが、全く使っていなかったので使ってみました。
コルーチンとは何なのかというと・・・Wikipedia によると次の通りです。
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
/vendor | |
/composer.lock | |
/*.local.php | |
/tests |
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
PhpRenderer sample. |
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
PhpRenderer slide. |
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 | |
/** | |
* Apache mod_vhost_alias のバーチャルホストの一覧を表示する | |
* | |
* ex. httpd.conf | |
* | |
* LoadModule vhost_alias_module modules/mod_vhost_alias.so | |
* | |
* <VirtualHost *:80> | |
* ServerName vhost.example.net |