Skip to content

Instantly share code, notes, and snippets.

Danny Hermes dhermes

Block or report user

Report or block dhermes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dhermes
dhermes / .gitignore
Last active May 11, 2020
Benchmarking Dynamic Dispatch vs. Polymorphic Input
View .gitignore
node_modules/
@dhermes
dhermes / .gitignore
Last active Apr 26, 2020
Example Node.js Timeout Callback
View .gitignore
node_modules/
.prettierrc
@dhermes
dhermes / .gitignore
Last active Mar 21, 2020
Minimal Istio bug repro for "protocol selection snafu" (for https://github.com/istio/istio/issues/22367)
View .gitignore
istio-1.5.0/
sleep-injected.yml
sidecar.yml
listeners-000.json
ngrok
break-template.yml
break.yml
listeners-001.json
0.0.0.0_*_http.json
listeners-002.json
@dhermes
dhermes / remove_empty.py
Created Jan 13, 2020
Utilities for nit-picky `goimports`
View remove_empty.py
import subprocess
IMPORT_LINE = b"import ("
def handle_file(filename):
with open(filename, "rb") as file_obj:
contents = file_obj.read()
@dhermes
dhermes / .gitignore
Last active Jan 14, 2020
APM with blend/go-sdk
View .gitignore
client/
server/
@dhermes
dhermes / .gitignore
Last active Jan 3, 2020
Fitting a "hinged" piecewise linear function
View .gitignore
.ipynb_checkpoints/
.venv/
__pycache__/
@dhermes
dhermes / main.go
Created Nov 30, 2019
Basic HTTP server over TCP. Prints entire TCP body as string for each request handled.
View main.go
package main
import (
"fmt"
"log"
"net"
)
const (
chunkSize = 4096
@dhermes
dhermes / README.md
Last active Nov 8, 2019
Brief Tour of Golang `html/template`
View README.md

How Do Golang HTML Templates Work?

$ go run main.go
Above
(enabled=NO) Hello World!
Below
@dhermes
dhermes / .gitignore
Last active Nov 5, 2019
Angle Between Two Planar Vectors
View .gitignore
.nox/
__pycache__/
.DS_Store
You can’t perform that action at this time.