View example
$ go run main.go -tok=$(gcloud auth print-access-token) -project=$(gcloud config get-value core/project)
There are 41 pods in the cluster
...
There are 3 nodes in the cluster
-> gke-cluster-1-default-pool-968a07e0-bw9p
-> gke-cluster-1-default-pool-968a07e0-gxzx
-> gke-cluster-1-default-pool-968a07e0-xrdh
Created pod foo-k4twr
container "noop" in pod "foo-k4twr" is waiting to start: ContainerCreating
container "noop" in pod "foo-k4twr" is waiting to start: ContainerCreating
View Dockerfile
FROM ubuntu
RUN apt-get update && apt-get -y install python3
View main.go
package main
import (
"context"
"errors"
"flag"
"fmt"
"log"
"math/rand"
"os"
View auth.go
package registry
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
View BUILD
load(
"@io_bazel_rules_docker//docker:docker.bzl",
"docker_build",
)
docker_build(
name = "target",
base = "@base_image//image:image.tar",
directory = "/bin",
entrypoint = ["/bin/docker"],
View main.go
package main
import (
"encoding/json"
"fmt"
"io"
"log"
)
func main() {
View app.go
package markov
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"io"
"math/rand"
"net/http"
View main.go
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"strconv"
"strings"
View background.js
// TODOs:
// - manage queue of selections to read, "read to me now" or
// "read to me next"
// - highlight current word/sentence
// - intelligently detect blocks of text and ignore ads, photo
// captions, etc., https://mercury.postlight.com/web-parser/
// - stop speaking when the text's tab is closed
var currentRate = 1; // Default rate until we consult settings.
var currentText = '';
View gzip.js
/*
The MIT License
Copyright (c) 2011 T. Jameson Little
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is