455b30d180d6e3a1ca67d5f345a1a1f1b8e82e1f
4 require __DIR__
."/../vendor/autoload.php";
6 $api = new seekat\
API([
7 "Authentication" => "token ".getenv("GUTHUB_TOKEN")
11 $gists = yield
$api->users
->m6w6
->gists();
13 foreach ($gists as $gist) {
14 foreach ($gist->files
as $name => $file) {
15 if ($name == "blog.md") {
16 $text = $file->as("raw")->raw();;
17 $head = $gist->description
." ".$gist->created_at
;
19 echo str_repeat("=", strlen($head))."\n\n";
20 echo trim(yield
$text);
21 echo "\n\nThis was my last gistlog, pipe it through \$PAGER if ";
22 echo "you really want to read it or visit https://gistlog.co/m6w6\n";
28 $gists = yield
$gists->next();