Skip to content

Instantly share code, notes, and snippets.

View tdhopper's full-sized avatar
©️
𝔀𝓸𝓻𝓴𝓲𝓷𝓰 𝓱𝓪𝓻𝓭

Tim Hopper tdhopper

©️
𝔀𝓸𝓻𝓴𝓲𝓷𝓰 𝓱𝓪𝓻𝓭
View GitHub Profile
@tdhopper
tdhopper / fizz.py
Last active March 21, 2019 15:08
FizzBuzz on the Event Loop in Python 3.7
#!/usr/bin/env python
import sys
import asyncio
from typing import List
async def sleepprint(i: int, s: str, end=" "):
await asyncio.sleep(i / 30)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@tdhopper
tdhopper / mycommands.sty
Created February 10, 2018 13:11
latex customizations from grad school
\usepackage{amsmath,amssymb, amsfonts, amsthm}
\usepackage{setspace, framed, pdfsync,tocloft}
\usepackage[colorinlistoftodos, textwidth=4cm, shadow]{todonotes}
\usepackage{color} \onehalfspacing
\newcommand{\unfinished}{
\begin{MyBox}
\listoftodos
\end{MyBox}\pagecolor{mydarkgray}\color{mylightgray}}
@tdhopper
tdhopper / Vagrantfile
Last active January 1, 2018 09:35 — forked from malev/Vagrantfile
Vagrantfile: AWS Linux with miniconda3 installed
Vagrant.configure("2") do |config|
config.vm.box = "mvbcoding/awslinux"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", inline: <<-SHELL
sudo yum update -q -y
su - vagrant
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p /home/vagrant/miniconda
echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc

Keybase proof

I hereby claim:

  • I am tdhopper on github.
  • I am tdhopper (https://keybase.io/tdhopper) on keybase.
  • I have a public key ASB0jauSw1-FspMdZEfCRu2v79-kMJDFRQcZ4XFRF6LaUQo

To claim this, I am signing this object:

Changhong H2
Lenovo Phab 2 Pro
Kodak Ektra
OnePlus One, OnePlus 3, OnePlus 3...
Samsung Galaxy S7 Edge Olympic Games Limited Edition
ZTE Axon 7
LG K8 V
BlackBerry Priv
Samsung Galaxy S6 Edge+
Motorola Moto G
@tdhopper
tdhopper / README.md
Last active January 17, 2017 21:28 — forked from cavedave/README.md
Tim's Age over Time
var data = [
{"year": (1986), "age": 0},
{"year": (1987), "age": 1},
{"year": (1988), "age": 2},
{"year": (1989), "age": 3},
{"year": (1990), "age": 4},
{"year": (1991), "age": 5},
{"year": (1992), "age": 6},
{"year": (1993), "age": 7},
{"year": (1994), "age": 8},
@tdhopper
tdhopper / NUTS vs Metropolis-Hastings for Beta-Bernoulli Model.ipynb
Last active November 8, 2016 20:49
Metropolis-Hastings runs 450x faster. pymc 3.0.rc2 and Python 3.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.