Skip to content

Instantly share code, notes, and snippets.

View kevinburke's full-sized avatar

Kevin Burke kevinburke

View GitHub Profile

In this piece of code I'm trying to:

  • Check the local cache to see if the value exists

  • If not, use singleflight to ensure one request is made to fetch the value

  • Fetch the value from a third party API

  • Store that value in the cache.

Hi there, I'm a X resident. Today a police officer in Minnesota was acquitted of manslaughter after he fatally shot an unarmed man who was reaching for his drivers license. This is tragic, for the man who is dead, his family, and for the officer, who has to live with this for the rest of his life.

I'm worried about how frequently this happens, and in particular how frequently this happens to black men and women. Many preventable murders have started with a traffic stop for a failure to signal, for asking for help with a car crash, or without any cited cause. Nationwide, black men and women are stopped 30% more often than whites: https://www.washingtonpost.com/news/wonk/wp/2016/07/08/the-big-question-about-why-police-pull-over-so-many-black-drivers/. Once stopped, black men and women are 1.5 to 5.2 times as likely to have their cars searched.

In addition to the obvious - preventing loss of life, and a grand jury investigation/criminal trial - these incidents frequently result in high amounts of damages in c

From 4e878462d212117e045f1c1e95417c25e5e44281 Mon Sep 17 00:00:00 2001
From: Kevin Burke <kev@inburke.com>
Date: Sun, 7 May 2017 06:20:21 -0700
Subject: [PATCH] nacl/auth: implement crypto_auth from Nacl
This should be compatible with the default crypto_auth implementation
in Nacl, e.g. you should be able to create a digest in one language
and verify it with this library and vice versa.
I'm not a cryptography expert, but we copy and run many of the

I called and I said I was disappointed about the Planning Commission's decision.

I said that Zeitgeist complained about shadows on their beer garden. I said you have no right to have sun on your backyard and it was ridiculous that this was a consideration.

The woman on the phone started talking about the harmful effects of shadows on open spaces and on public parks. I said this is not a public space, it's someone's backyard.

I tried to go into an analogy about how, if you build a window right up against your neighbor's property,

diff --git a/Twilio/Tests/Holodeck.php b/Twilio/Tests/Holodeck.php
index 6a67f989..11cc9388 100644
--- a/Twilio/Tests/Holodeck.php
+++ b/Twilio/Tests/Holodeck.php
@@ -1,37 +1,31 @@
<?php
-
namespace Twilio\Tests;
/home/kevin/go/src# GOROOT_BOOTSTRAP=/home/kevin/go1.4 ./make.bash
##### Building Go bootstrap tool.
cmd/dist
##### Building Go toolchain using /home/kevin/go1.4.
bootstrap/cmd/internal/dwarf
bootstrap/cmd/internal/sys
bootstrap/cmd/internal/obj
bootstrap/cmd/internal/obj/arm
bootstrap/cmd/internal/obj/arm64
package lib
var s string
//go:noinline
func Join(a []string, sep string) string {
n := len(sep) * (len(a) - 1)
for i := 0; i < len(a); i++ {
n += len(a[i])
}
package secretbox
import (
"encoding/hex"
"fmt"
)
func Example() {
// Load this key from a safe place and reuse it across multiple Seal calls.
var secretkey [32]byte
package configparser
import (
"encoding/json"
"github.com/hashicorp/hcl/hcl/ast"
"github.com/hashicorp/hcl/hcl/token"
)
func NewMap(l *ast.ObjectList) *Map {
? github.com/vektra/mockery [no test files]
ok github.com/vektra/mockery/cmd/mockery 1.040s
panic: test timed out after 1s
goroutine 235 [running]:
panic(0x59a760, 0xc42163b620)
/Users/kevin/go/src/runtime/panic.go:500 +0x1ae
testing.startAlarm.func1()
/Users/kevin/go/src/testing/testing.go:918 +0x14e
created by time.goFunc