Skip to content

Instantly share code, notes, and snippets.

View watersb's full-sized avatar

Boyd Waters watersb

  • 35.9,-106.3
  • 10:49 (UTC -07:00)
View GitHub Profile
@watersb
watersb / keybase.md
Last active June 17, 2020 07:21
Proof of this GitHub account for my linked keybase.io profile

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 February 14, 2018 06:20 — forked from miniupnp/spectre.c
Spectre example code - x86 / x86_64 and PowerPC
#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 August 24, 2017 09:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

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 June 17, 2015 03:33
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 June 17, 2015 03:21
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 June 16, 2015 18:14
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 June 16, 2015 18:11
year with most alive.py
from collections import defaultdict
CENTURY = 1900
demographic_data = '''
James 1954 1977
Linda 1922 1928
Robert 1912 1924