Skip to content

Instantly share code, notes, and snippets.

Avatar

Boyd Waters watersb

  • 35.9,-106.3
View GitHub Profile
@watersb
watersb / keybase.md
Last active Jun 17, 2020
Proof of this GitHub account for my linked keybase.io profile
View keybase.md

Keybase proof

I hereby claim:

  • I am watersb on github.
  • I am watersb (https://keybase.io/watersb) on keybase.
  • I have a public key whose fingerprint is A63C E025 B3DC 61DA 5702 8B7B A302 184E A330 9AD0

To claim this, I am signing this object:

@watersb
watersb / spectre.c
Last active Feb 14, 2018 — forked from miniupnp/spectre.c
Spectre example code - x86 / x86_64 and PowerPC
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#if defined(__POWERPC__)
#define __dcbf(base, index) \
__asm__ ("dcbf %0, %1" : /*no result*/ : "b%" (index), "r" (base) : "memory")
#else
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
@watersb
watersb / 0_reuse_code.js
Created Aug 24, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View keybase.md

Keybase proof

I hereby claim:

  • I am watersb on github.
  • I am watersb (https://keybase.io/watersb) on keybase.
  • I have a public key ASDls2pDXApqYmnRIKdUaXYijMkbPc3qKDjnDsY7q4w1Awo

To claim this, I am signing this object:

@watersb
watersb / year with most alive.py
Created Jun 17, 2015
year with most alive.py
View year with most alive.py
from collections import defaultdict
demographic_data = '''
James 1954 1977
Linda 1922 1928
Robert 1912 1924
Mary 1965 1993
John 1915 1915
Patty 1946 2014
@watersb
watersb / year with most alive.py
Created Jun 17, 2015
year with most alive.py
View year with most alive.py
from collections import defaultdict
demographic_data = '''
James 1954 1977
Linda 1922 1928
Robert 1912 1924
Mary 1965 1993
John 1915 1915
Patty 1946 2014
@watersb
watersb / year with most alive.py
Created Jun 16, 2015
year with most alive.py
View year with most alive.py
from collections import defaultdict
CENTURY = 1900
demographic_data = '''
James 1954 1977
Linda 1922 1928
Robert 1912 1924
@watersb
watersb / year with most alive.py
Created Jun 16, 2015
year with most alive.py
View year with most alive.py
from collections import defaultdict
CENTURY = 1900
demographic_data = '''
James 1954 1977
Linda 1922 1928
Robert 1912 1924