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