Skip to content

Instantly share code, notes, and snippets.

Nathan Youngman nathany

Block or report user

Report or block nathany

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
enricofoltran / main.go
Last active Dec 10, 2019
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
View nd-matrix.go
package main
import (
curtisallen /
Created May 1, 2017
Danger with gometalinter

Using gometalinter with Danger

Run your gometalinter command in CI with the --json command save output to a file e.g. lint.json

	go list -f '{{.Dir}}' ./... | grep -v 'vendor' | xargs gometalinter --vendored-linters --json > lint.json

Add the following to Dangerfile

# Show lint errors
Gankra /
Last active Apr 3, 2019
Swift Ownership Manifesto TL;DR

Swift Ownership Manifesto TL;DR

Most of the manifesto is background and detailed definitions -- if you're confused or want details, read the manifesto!

Note also that manifestos aren't complete proposals -- syntax and details may change!

One piece of background: inout is kinda complicated because it can be used on computed properties -- foo(&val.x) might be sugar for

mixja / Dockerfile
Last active Sep 17, 2019
Docker Health Check using Make
View Dockerfile
FROM nginx
HEALTHCHECK --interval=3s --retries=20 CMD curl -fs http://localhost:${HTTP_PORT:-8000}
peterhellberg / evdev-bobblehat.go
Created Sep 18, 2016
How to use the Raspberry Pi Sense HAT Joystick using golang-evdev
View evdev-bobblehat.go
package main
import (
evdev ""
screen ""
FiloSottile /
Last active Jul 20, 2016
Homebrew Formula for musl-based GCC cross-compilers.
dansimau /
Last active Nov 30, 2017
Bash functions for navigating Go workspaces ("Go-go!")
# Change to the directory of the specified Go package name.
gg() {
paths=($(g "$@"))
if [ ${#paths[@]} -gt 1 ]; then
View mix.exs
defmodule App.Mixfile do
use Mix.Project
def project do
[app: :app,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
You can’t perform that action at this time.