Skip to content

Instantly share code, notes, and snippets.

View marcprux's full-sized avatar
🔆

Marc Prud'hommeaux marcprux

🔆
  • New England
  • 03:00 (UTC -04:00)
View GitHub Profile
@marcprux
marcprux / ProfileSharedKeySetTests.m
Created July 16, 2012 15:13
Simple test case to profile any speed increases that might come out of using the new dictionaryWithSharedKeySet method of creating dictionaries
//
// ProfileSharedKeySetTests.m
// ProfileSharedKeySetTests
//
// Created by Marc Prud'hommeaux <mwp1@cornell.edu> on 7/16/12.
//
/**
Simple test case to profile any speed increases that might come out of using the new dictionaryWithSharedKeySet method of creating dictionaries.
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualization</title>
<meta
charset="UTF-8" />
<meta
http-equiv="Content-type"
content="text/html;charset=UTF-8" />
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualization</title>
<meta
charset="UTF-8" />
<meta
http-equiv="Content-type"
content="text/html;charset=UTF-8" />
@marcprux
marcprux / index.html
Last active December 16, 2015 15:29
<html>
<head>
<title>Vega Object Constancy Issue Demo</title>
<script src="http://trifacta.github.com/vega/d3.v3.min.js"></script>
<script src="http://trifacta.github.com/vega/vega.js"></script>
</head>
<body>
<div id="vis"></div>
</body>
<script type="text/javascript">
@marcprux
marcprux / index.html
Created April 25, 2013 16:53
Resizable stacked bar chart using vega+d3+svg
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualization</title>
<meta
charset="UTF-8" />
<meta
http-equiv="Content-type"
content="text/html;charset=UTF-8" />
@marcprux
marcprux / README.md
Last active December 17, 2015 23:49
Highlighting the minimum and maximum values with vega+d3

This example demonstrates highlighting the minimum and maximum values of a bar chart by zipping the original data set together with the stats for the data and setting a color scale on a formula "isExtremum" value.

View this code at http://livecoding.io/5691859

@marcprux
marcprux / index.html
Last active December 17, 2015 23:49
Extrema-highlighed animated bars in Vega+D3
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualization</title>
<meta
charset="UTF-8" />
<meta
http-equiv="Content-type"
content="text/html;charset=UTF-8" />
@marcprux
marcprux / index.html
Last active December 18, 2015 01:49
Scatter Matrix in Vega+D3
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualization</title>
<meta
charset="UTF-8" />
<meta
http-equiv="Content-type"
content="text/html;charset=UTF-8" />
@marcprux
marcprux / index.html
Created June 29, 2013 14:19
Dancing Treemap in Vega+D3+SVG
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualization</title>
<meta
charset="UTF-8" />
<meta
http-equiv="Content-type"
content="text/html;charset=UTF-8" />
#!/bin/bash -e
GITBASE="git@github.com:mprudhom" # repository to clone
GITBRANCH="packagereorg" # branch name to place the rename in
test -d incubator-optiq || git clone ${GITBASE}/incubator-optiq.git
# clean out local repository to make sure we aren't referencing stale jars
# rmtrash ~/.m2/repository/net/hydromatic ~/.m2/repository/org/apache/optiq
cd incubator-optiq