Skip to content

Instantly share code, notes, and snippets.

View wbuchanan's full-sized avatar

William Buchanan wbuchanan

View GitHub Profile
@paulgp
paulgp / example.py
Created July 22, 2023 02:11
Simple script replicating example from our talk
import itertools
import hashlib
from collections import Counter
from multiprocessing import cpu_count
from concurrent.futures import ProcessPoolExecutor
def get_username(topic_id, ip):
"""
Returns a username generated from the given topic ID and IP address.
@jebyrnes
jebyrnes / rethinking_measurement_errors.R
Created November 27, 2016 15:43
Rethinking Measurement Error - models using the rethinking package that incorporate measurement in both the response and predictor variables.
library(rethinking)
library(dplyr)
data(WaffleDivorce)
mod <- alist(
#likelihood
div_est ~ dnorm(mu, sigma),
#model