Skip to content

Instantly share code, notes, and snippets.

@davidshinn
davidshinn / .block
Last active March 29, 2018 23:58 — forked from mbostock/.block
Box Plots
license: gpl-3.0
@davidshinn
davidshinn / gist:ad2f5e570d6d06543a11
Created February 3, 2016 02:58 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
@davidshinn
davidshinn / Maze.py
Last active November 26, 2015 04:51
maze helper for pymdptoolbox
# -*- coding: utf-8 -*-
__author__ = "David Shinn"
__license__ = "MIT"
from collections import defaultdict
import itertools
import os
import pdb
import numpy as np
import pandas as pd
@davidshinn
davidshinn / first_mdp_problem.ipynb
Last active November 23, 2015 03:44
IPython Notebook example of directed graph MDP in pympdtoolbox
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidshinn
davidshinn / KMeans_Within_Sum_of_Squares_Python_vs_R.ipynb
Created November 4, 2015 15:00
Comparing Python and R methods of plotting KMeans clustering within sum of squares against cluster size
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidshinn
davidshinn / LabelEncoderDictVectorizer.ipynb
Created August 10, 2015 13:04
How does LabelEncoder and DictVectorizer work?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidshinn
davidshinn / jupyter-r-kernel-windows.ipynb
Last active August 29, 2015 14:24
Jupyter R-Kernel on Windows
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.