Skip to content

Instantly share code, notes, and snippets.

@mattburman
mattburman / main.go
Last active August 5, 2022 13:00
An example of encoding and decoding the start of a kafka message that conforms to the Confluent Schema Registry wire format
// An example of encoding and decoding the start of a kafka message that conforms
// to the Confluent Schema Registry wire format:
// see https://docs.confluent.io/current/schema-registry/serdes-develop/index.html#wire-format
package main
import (
"encoding/binary"
"fmt"
"github.com/pkg/errors"
@mattburman
mattburman / main.go
Created May 27, 2020 14:33
example of constructing a tls.Config
// example of constructing a tls.Config
// using hardcoded cert and key from https://github.com/flotwig/the-one-cert
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"log"
)

Keybase proof

I hereby claim:

  • I am mattburman on github.
  • I am mattburman (https://keybase.io/mattburman) on keybase.
  • I have a public key whose fingerprint is 3979 7E39 FA1B ADF8 DC84 F5E3 4AAE 7ACA 179F 7887

To claim this, I am signing this object:

Install Instructions for the GitHub GraphQL API Workshop

  1. GraphiQL desktop app (you don't strictly needs this, but it makes things easier)

If you're on a Mac

  • If you don't have Brew, install it from here: https://brew.sh/
  • if you already have brew run: brew cask install graphiql

If you're on Windows or Linux

@mattburman
mattburman / dabblet.css
Created July 17, 2014 12:28
Background Animation
/* Background Animation */
body {
animation:bgchange 11s ease;
background:blue;
}
@keyframes bgchange {
0%, 90.09% {background:red;}
100% {background:blue;}
}