Skip to content

Instantly share code, notes, and snippets.

View mpatraw's full-sized avatar

Michael Patraw mpatraw

View GitHub Profile
@mpatraw
mpatraw / .git-commit-template.txt
Created March 11, 2016 04:34 — forked from adeekshith/.git-commit-template.txt
A Git commit template to make it easy to enforce a good and uniform commit message style across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@mpatraw
mpatraw / Linnorm.java
Last active May 16, 2018 21:03 — forked from tommyettinger/Linnorm.java
Linnorm benchmarks
public final class Linnorm {
private static long state = 0L;
private static long random()
{
long z = (state = state * 0x41C64E6DL + 1L);
z = (z ^ z >>> 28) * 0xAEF17502108EF2D9L;
return z ^ z >>> 30;
}
public static void main(String[] args) {
long out = 0L;