This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
d3.analog= function() { | |
var height = 100, gap=10, | |
xValue = function(d) { return d[0]; }, | |
xScale = null, | |
color = d3.scale.category10(); | |
function chart(selection) { | |
selection.each(function(d) { | |
var g = d3.select(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Intended to convert a typical radar lla and az el to a cesium quaternion orientation for CZML | |
# Uses numpy, transformations.py (http://www.lfd.uci.edu/~gohlke/code/transformations.py.html), | |
# and ecef.py (https://code.google.com/p/pysatel/source/browse/trunk/coord.py?r=22) | |
def azEl2Quaternion(lat, lon, alt, az, el): | |
rotZ = rotation_matrix(math.radians(180+az), [0,0,1]) | |
rotY = rotation_matrix(math.radians(-(90+el)), [0,1,0]) | |
rotM = np.dot(rotZ, rotY) | |
origin = geodetic2ecef(lat, lon, alt) | |
origin = np.multiply(origin, 1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph MatlabClassDiagram { | |
fontname = "Bitstream Vera Sans" | |
fontsize = 8 | |
rankdir = BT | |
node [ | |
shape = "record" | |
fontsize = 8 | |
] | |
graph [ | |
splines = ortho |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var React = require('react/addons'); | |
var _ = require('lodash'); | |
var ResponsiveReactGridLayout = require('react-grid-layout').Responsive; | |
var Dashboard = React.createClass({ | |
mixins: [React.addons.PureRenderMixin], | |
getDefaultProps() { | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bokeh.plotting as plt | |
from itertools import product | |
plt.output_file('test.html') | |
alpha = 0.5 | |
circle_size = 50 | |
line_size = 5 | |
cats = ['RGB', 'RGBA', 'Alpha+RGB', 'Alpha+RGBA'] | |
p = plt.figure(x_range=cats, y_range=cats) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ docker run --rm -v "$(pwd)"/.python:/root/.pyenv/versions -v "$(pwd)"/.cache/python:/root/.pyenv/cache -it python-builder install -v 3.4.3 | |
Downloading Python-3.4.3.tgz... | |
/tmp/python-build.20150709235551.45 / | |
-> https://yyuu.github.io/pythons/4281ff86778db65892c05151d5de738d | |
HTTP/1.1 200 OK | |
Server: GitHub.com | |
Content-Type: application/octet-stream | |
Last-Modified: Sun, 24 May 2015 02:07:15 GMT | |
Access-Control-Allow-Origin: * | |
Expires: Fri, 10 Jul 2015 00:05:56 GMT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.properties import HasProps, List, String, Either, Instance, Bool | |
from bokeh.models.widgets import Select, Widget, Toggle | |
import pandas as pd | |
from blaze.interactive import InteractiveSymbol, Data | |
from odo import odo | |
from bokeh.io import vform | |
from bokeh.plotting import output_file, show | |
from bokeh.plotting import figure, Figure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ipynb_checkpoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Collect article metadata and associate it with url dimension. | |
Currently the url dimension includes a domain and url, but there is | |
a higher level grouping that we care about. What is the outlet, | |
who authored the article, what kind of site is it, when was | |
it published, etc. | |
""" | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.models import Plot, ColumnDataSource, GlyphRenderer | |
from bokeh.properties import Instance, Dict, String, Any | |
from bokeh.server.app import bokeh_app | |
from bokeh.server.utils.plugins import object_page | |
from bokeh.models.widgets import HBox, TextInput, VBoxForm, Select | |
from bokeh.charts import Bar | |
class ChartApp(HBox): | |
"""An example of a browser-based, interactive plot with column selection controls.""" |
OlderNewer