Run with Python:
pip-2.7 install cffi
PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi
PYTHON=pypy sh go.sh
// ==UserScript== | |
// @name Draft Typekitizer | |
// @namespace http://tyler.menez.es/ | |
// @version 1 | |
// @description Adds Typekit to Draft | |
// @match http*://*.draftin.com/* | |
// @copyright 2013 Tyler Menezes | |
// ==/UserScript== | |
(function() { |
Run with Python:
pip-2.7 install cffi
PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi
PYTHON=pypy sh go.sh
sudo xcodebuild -license | |
xcode-select --install # There will be a GUI prompt | |
sudo cpan SVN::Core # use the "sudo" method when prompted | |
# Then add this to your ~/.profile: | |
# export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH | |
# Then probably: | |
brew reinstall git | |
brew reinstall subversion |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
connect: { | |
server: { | |
options: {}, | |
} | |
}, |
#!/usr/bin/env python | |
import bz2 | |
import datetime | |
import os | |
import sys | |
import time | |
import urllib2 | |
import warnings |
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.optimize as so | |
def find_confidence_interval(x, pdf, confidence_level): | |
return pdf[pdf > x].sum() - confidence_level | |
def density_contour(xdata, ydata, nbins_x, nbins_y, ax=None, **contour_kwargs): | |
""" Create a density contour plot. |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
newpg=9.6.1 # set to new PG version number | |
oldpg=`pg_config --version | cut -d' ' -f2` | |
# PG 96. upgrades the readline to v7, which breaks anything linked against readline v6, like ruby via ruby-build. | |
# I *think* this should prevent it from installing v7. But if weird shit happens with various rubies, | |
# you'll have to reinstall them. | |
brew pin readline | |
# Stop current Postgres server | |
brew services stop postgresql |