Skip to content

Instantly share code, notes, and snippets.

View wrobstory's full-sized avatar

Rob Story wrobstory

View GitHub Profile
@wrobstory
wrobstory / README.md
Last active December 29, 2015 06:38
D3 Brush and Tooltip II
@wrobstory
wrobstory / README.md
Last active December 29, 2015 06:39
D3 Tooltips
@wrobstory
wrobstory / README.md
Last active December 29, 2015 06:39
D3 Brush and Tooltip III

Example for Cooperative Brushing and Tooltips in D3.

Note that the brush layer is appended after the data, and therefore mouseover events do not trigger the tooltip. Only when you start brushing do the tooltips appear.

@wrobstory
wrobstory / README.md
Last active December 29, 2015 06:39
D3 Brush and Tooltip IV

Example for Cooperative Brushing and Tooltips in D3.

Note that the brush layer lives behind the data points, and therefore a brush cannot be started on the data point itself, only in the background layer.

@wrobstory
wrobstory / gist:10951143
Created April 17, 2014 03:34
Vincent, Seaborn, mpld3, Bokeh, ggplot in the IPython notebook dep list
(.env)Rob@rmbp ~/src/pydatasv2014 (master) $ pip freeze
Flask==0.10.1
Jinja2==2.7.2
Markdown==2.4
MarkupSafe==0.19
PyYAML==3.11
Pygments==1.6
Sphinx==1.2.2
Werkzeug==0.9.4
backports.ssl-match-hostname==3.4.0.2
@wrobstory
wrobstory / alltheimports.py
Created April 20, 2014 01:46
Import Import Import Import
import bearcart
import bokeh
import bokeh.plotting as bp
from bokeh.plotting import output_notebook
import pandas as pd
import matplotlib.pyplot as plt
import mpld3
import numpy as np
import vincent
import ggplot as gg
@wrobstory
wrobstory / .gitignore
Last active May 13, 2019 12:19
PyData2014
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
  • Task
    • Task
      • Task
        • Task
          • Task
            • Task
              • Task
                • Task
                  • Task
  • Task
@wrobstory
wrobstory / gist:1200cda56a740486701b
Created July 13, 2014 22:27
Python 2.6 set() vs locals()['_[1]']
Python 2.6.9 |Continuum Analytics, Inc.| (unknown, Jan 10 2014, 13:33:57)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import timeit
>>> from math import sqrt
>>>
>>> n = 100
>>> sqrt_n = int(sqrt(n))
>>>
>>> def with_set():
@wrobstory
wrobstory / gist:0fed134fbfe1da95b5be
Created August 20, 2014 05:01
YCombinator Summer 2014 Companies
These are the TechCrunch one-sentence summaries of the YCombinator 2014 class:
"Speeds up the process of genetically engineering and growing ingredients"
"A platform that provides ways for artists to make more money off their concerts and sell directly to fans"
"An e-filing service for paying income taxes in India"
"A company that arbitrages the cost of goods in different countries by using international travelers as a distribution network"
"Sells men’s custom shirts by measuring you with the camera on your phone"
"Creates technology for genetically engineering plants"
"Attacking the $400 billion used car market"
"Using nanodiamonds to redefine medical imaging"