4 require __DIR__
."/../vendor/autoload.php";
7 $log = new Monolog\
Logger("seekat");
8 $log->pushHandler(new Monolog\Handler\
StreamHandler(STDERR
, Monolog\Logger
::DEBUG
));
10 $api = new seekat\
API(
11 seekat\API\Future\react
(),
12 seekat\API\auth
("token", getenv("GITHUB_TOKEN")),
17 $gists = yield
$api->users
->m6w6
->gists();
19 $next = \seekat\API\Links\next
($gists);
21 foreach ($gists as $gist) {
22 foreach ($gist->files
as $name => $file) {
23 if ($name == "blog.md") {
25 $head = $gist->description
." ".$gist->created_at
;
27 echo str_repeat("=", strlen($head))."\n\n";
28 echo trim(yield
$text);
29 echo "\n\nThis was my last gistlog, pipe it through \$PAGER if ";
30 echo "you really want to read it or visit https://gistlog.co/m6w6\n";