Skip to content

Instantly share code, notes, and snippets.

Paul Meinshausen PMeinshausen

Block or report user

Report or block PMeinshausen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<style type="text/css">
svg {
font-family: "Helvetica Neue", Helvetica;
}
View index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<style type="text/css">
svg {
font-family: "Helvetica Neue", Helvetica;
}
View course.json
{
"name": "Gov 2001",
"children": [
{
"name": "The Basics",
"children": [
{
"url": "http://projects.iq.harvard.edu/gov2001",
"name": "Course Overview",
"size": 104,
View course.json
{
"name": "Gov 2001",
"children": [
{
"name": "The Basics",
"children": [
{
"url": "http://projects.iq.harvard.edu/gov2001",
"name": "Course Overview",
"size": 104,
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>mds venn.js example</title>
</head>
<body>
<div class="mds"></div>
</body>
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>mds venn.js example</title>
</head>
<body>
<div class="mds"></div>
</body>
@PMeinshausen
PMeinshausen / CourseStructure.json
Last active Dec 20, 2015
Draft visualization(s) of Gov 2001
View CourseStructure.json
{
"name": "Gov 2001: Advanced Quantitative Research Methodology",
"children": [
{
"name": "Problem of Inference",
"children": [
{
"name": "Probability",
"children": [
{"name": "P(y|M) = P(known|unknown)", "size": 10},
@PMeinshausen
PMeinshausen / CourseStructure.json
Last active Dec 20, 2015
Draft visualization of Gov 2001 course
View CourseStructure.json
{
"name": "Gov 2001: Advanced Quantitative Research Methodology",
"children": [
{
"name": "Problem of Inference",
"children": [
{
"name": "Probability",
"children": [
{"name": "P(y|M) = P(known|unknown)", "size": 10},
@PMeinshausen
PMeinshausen / README.mkd
Last active Dec 18, 2015
Zoomable Treemap of the Chicago Data Portal
View README.mkd

A zoomable treemap of the Chicago Data Portal, with the datasets grouped by categories (defined by the portal) and dimensions drawn based on the size of the individual datasets. Currently the color simply helps keep the rectangles distinct, but in future versions information (e.g. # of views the dataset has received, or tags from the portal) could be encoded in a color scale. The rectangles are linked to the datasets they represent in the portal (just click anywhere within the rectangle).

The d3 code is heavily based on code shared by The Ohio State University Department of Political Science. The code for scraping, transforming, and visualizing the data is available in a Data Science for Social Good github repository

View chiangMaiCrawler.py
from selenium import webdriver
browser = webdriver.Firefox()
# The list of book titles is in a pandas dataframe
# named 'data', in the column 'title'
for row in range(len(data)):
browser.get("http://www.amazon.com")
time.sleep(1)
You can’t perform that action at this time.