Skip to content

Instantly share code, notes, and snippets.

@mayblue9
mayblue9 / index.html
Created April 17, 2017 05:16 — forked from zross/index.html
HTML: D3 scatter, data from cartodb
<!DOCTYPE html>
<html>
<head>
<title>HTML5</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=650, user-scalable=yes">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js">
</script>
<style>
<!DOCTYPE html>
<html class="ocks-org do-not-copy">
<meta charset="utf-8">
<title>Dramatic Co-occurrence</title>
<style>
@import url(../style.css?aea6f0a);
d3_plot {
font-size: 80%;
}
@mayblue9
mayblue9 / index.html
Created January 4, 2017 06:05 — forked from andrewxhill/index.html
Quick POW map!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--Edit the title of the page-->
<title>CartoDB Point Clustering</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
@mayblue9
mayblue9 / index.html
Created December 26, 2016 08:00 — forked from jamesonthecrow/index.html
A visualization to explore timeseries of MIT wifi network data.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MIT Wifi - Timeseries</title>
<link rel="stylesheet" href="styles.css">
<style>
@mayblue9
mayblue9 / randomizedquicksort.py
Created October 25, 2016 06:02 — forked from vumaasha/randomizedquicksort.py
Randomized Quick Sort in python
from random import randint
def inPlaceQuickSort(A,start,end):
if start<end:
pivot=randint(start,end)
temp=A[end]
A[end]=A[pivot]
A[pivot]=temp
p=inPlacePartition(A,start,end)
@mayblue9
mayblue9 / sketch.py
Created October 7, 2016 01:12 — forked from phred/sketch.py
Processing+jython color cube
"""
jython version of http://hipstersinc.com/blog/2007/5/16/jruby_processingorg_howto/
Spinning color cube controled by mouse motion.
1. Install Jython
2. Add Processing's core.jar to CLASSPATH: export CLASSPATH=/Applications/Processing.app/Contents/Resources/Java/core.jar
3. ~/jython2.5b3/bin/jython sketch.py
"""
@mayblue9
mayblue9 / Mac OS X jyProcessing.sh
Created October 7, 2016 01:12 — forked from endolith/Mac OS X jyProcessing.sh
Python Processing using Jython in Ubuntu
#!/bin/sh
# This file was generated by the Jython installer
# Created on Mon May 19 20:25:40 CEST 2008 by me
CP="/Users/me/jython2.2.1/jython.jar:/Applications/Processing/lib/core.jar"
if [ ! -z "$CLASSPATH" ]
then
CP=$CP:$CLASSPATH
fi
JSDot: http://code.google.com/p/jsdot/
Graph Dracula: http://www.graphdracula.net/
Protovis: http://vis.stanford.edu/protovis/ex/
Rubyvis: http://rubyvis.rubyforge.org/
Infovis: http://thejit.org/
Arbor: http://arborjs.org/
BINViz: http://binviz.sourceforge.net/
NodeBox: http://nodebox.net/code/index.php/Home
Springy: https://github.com/dhotson/springy
Flare: http://flare.prefuse.org/
@mayblue9
mayblue9 / igv.py
Created October 6, 2016 03:58 — forked from fajran/igv.py
Interactive Graph Visualization with Jython and Prefuse
from prefuse import *
from prefuse.render import *
from prefuse.action import *
from prefuse.action.assignment import *
from prefuse.action.layout import *
from prefuse.action.layout.graph import *
from prefuse.controls import *
from prefuse.visual import *
from prefuse.util import *
from prefuse.util.display import *