Skip to content

Instantly share code, notes, and snippets.

age height gender
48.2486907273 161.116010103 female
43.7764871727 160.437072575 female
43.9436564955 161.277734626 female
42.8540627557 159.994006571 female
46.7308152586 160.041904389 female
40.3969226062 176.11423493 female
48.4896235284 161.182731906 female
43.4775861982 175.859100061 male
45.6380781921 160.698862897 female
import os
from collections import defaultdict
import numpy as np
import scipy.stats
import torch
ts = torch.tensor
mt = torch.empty
zs = torch.zeros
import torch.distributions as dist
from torch.distributions import constraints
@jamesonquinn
jamesonquinn / blogpost.md
Last active August 29, 2017 15:10
Jameson Quinn 2017 GSoC: Julia MCMC with variable numbers of parameters ("semiparametric")
brew link --overwrite gettext --force
ls /usr/local/Homebrew/Library/Homebrew/tab.rb
pico /usr/local/Homebrew/Library/Homebrew/tab.rb
brew link --overwrite gettext --force
rm -r /usr/local/Cellar/gettext/
rm -rf /usr/local/Cellar/gettext/
brew link --overwrite gettext --force
brew install gettext
brew link --overwrite gettext --force
@jamesonquinn
jamesonquinn / gist:18d53ca955a872e49f7081b2551c3b8e
Created January 18, 2017 17:03
Brew doctor fails, "pathname contains null byte"
chema$ brew config
HOMEBREW_VERSION: 1.1.7-dirty
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 9cce3414fbd39d146d97911dbb3bf07fffaa1080
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a85897dc012ebb8a354c318ed94e2e23154977fc
Core tap last commit: 87 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
@jamesonquinn
jamesonquinn / README.md
Last active August 29, 2015 14:17 — forked from mbostock/.block

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:

This is a reimplementation of the Grouped Bar Chart by Mike Bostock. Although useful, I found the original's minimal comments and inverted axes hard to follow, so I created the version you see here.

@jamesonquinn
jamesonquinn / gist:d1c164de8d4b29e3dc77
Created July 27, 2014 15:32
non-working nginx conf for proxying ssl to meteor
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
Meteor.publish "muserData", ->
if @userId
slog "publishing muid", @userId
MyUsers.find
_id: @userId
,
fields: userFields
else
@jamesonquinn
jamesonquinn / gist:6202641
Created August 10, 2013 23:33
node failed to build on 10.7.5
()xxx-MacBook-Pro:Cellar chema$ brew doctorWarning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will now install into /usr/local/bin.
You can delete anything, except 'Extras', from the /usr/local/share/python
(and /usr/local/share/python3) dir and install affected Python packages
anew with `pip install --upgrade`.
()xxx-MacBook-Pro:Cellar chema$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install node 2>&1
==> Downloading http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz