Skip to content

Instantly share code, notes, and snippets.

@jamesonquinn
jamesonquinn / gist:5718981
Created June 6, 2013 02:51
smart.json, smart.lock, packages
smart.json:
{
"meteor": {
"branch": "master"
, "git": "https://github.com/meteor/meteor"
, "tag" : "v0.5.9"
},
"packages": {
"deps-extensions": {
"git": "https://github.com/tmeasday/meteor-deps-extensions.git"
@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
Meteor.publish "muserData", ->
if @userId
slog "publishing muid", @userId
MyUsers.find
_id: @userId
,
fields: userFields
else
@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 {

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 / 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:

@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
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 / blogpost.md
Last active August 29, 2017 15:10
Jameson Quinn 2017 GSoC: Julia MCMC with variable numbers of parameters ("semiparametric")
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