Skip to content

Instantly share code, notes, and snippets.

import pylab as py
class Turtle(object):
def __init__(self):
self.reset()
def reset(self,figsize=(10,10)):
self.x=0
self.y=0
# taken from https://github.com/fonnesbeck/stan_workshop_2016
# removed plotting and data loading to make self-contained
from numpy import array,int64
import numpy as np
pooled_data = """
data {
int<lower=0> N;
@bblais
bblais / Twitter Zombies and the Fate of the World.ipynb
Created March 31, 2017 10:35
Notebook for Analytics Conference Presentation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bblais
bblais / Entropy Simulation.ipynb
Created February 1, 2017 01:24
Simulation of Entropy Increase in a Simple System
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bblais
bblais / gist:7807979
Created December 5, 2013 15:58
Pyndamics MCMC examples
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@bblais
bblais / gist:7321928
Last active December 27, 2015 11:58
Pyndamics Examples - Simulating Dynamical Systems in Python
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{