Skip to content

Instantly share code, notes, and snippets.

@broady
broady / santa.md
Last active August 29, 2015 14:03
Google I/O 2014: How 20% Engineers Built Santa Tracker"
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
public class Debouncer extends Handler implements Runnable {
private final Runnable mRunnable;
private final long mDelay;
public Debouncer(long delay, Runnable runnable) {
type Watcher struct {
Suffix string
ETag string
}
func NewWatcher(string s) *Watcher {
return &Watcher{s, ""}
}
func (w *Watcher) WaitForChange(ctx context.Context) (string, error) {
commit f2e4c8b5fb3660d793b2c545ef207153db0a34b1
Author: Chris Broadfoot <cbro@golang.org>
Date: Tue Sep 8 17:42:34 2015 -0700
[release-branch.go1.5] go1.5.1
Change-Id: I98d9fefd923e2a35031385045382ba372f1d614a
Reviewed-on: https://go-review.googlesource.com/14401
Reviewed-by: Andrew Gerrand <adg@golang.org>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Adding controls to the map</title>
<link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
### Keybase proof
I hereby claim:
* I am broady on github.
* I am cbro (https://keybase.io/cbro) on keybase.
* I have a public key whose fingerprint is C0D3 AC90 D3A7 64A1 8231 62D3 AA86 B641 DDC2 DB10
To claim this, I am signing this object:
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
labels:
app: readiness-bug
name: readiness-bug
spec:
replicas: 1
template:
metadata:
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
labels:
app: readiness-bug
name: readiness-bug
spec:
replicas: 1
strategy:
type: RollingUpdate
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
"time"
)
package main
import (
"context"
"fmt"
"io"
"log"
"net/http"
"os"
"os/signal"