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
year | lifeExpectancy | |
---|---|---|
1960 | 48.58163415 | |
1961 | 49.23004878 | |
1962 | 49.84395122 | |
1963 | 50.41885366 | |
1964 | 50.95229268 | |
1965 | 51.44136585 | |
1966 | 51.88865854 | |
1967 | 52.29821951 | |
1968 | 52.67707317 |
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
# include "highgui.h" | |
# include "cv.h" | |
# include <stdio.h> | |
# include <vector> | |
# include <string> | |
///blah | |
using namespace cv; |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body></body> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
<script type="text/javascript"> | |
// Define the SVG domain in a viewbox to get automatic resize to | |
// window. This is a good alternative to d3.scale for simple stuff | |
svg=d3.select("body") |
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
{ | |
"name": "flare", | |
"children": [ | |
{ | |
"name": "analytics", | |
"children": [ | |
{ | |
"name": "cluster", | |
"children": [ | |
{"name": "AgglomerativeCluster", "size": 3938}, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<style type="text/css"> | |
body { | |
background: #888; | |
} |
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
<html> | |
<meta charset='utf-8' /> | |
<head> | |
</head> | |
<body> | |
<svg> | |
<text id="text_node" y="1em"> | |
<tspan>You</tspan> | |
<tspan dx='.25em'>shall</tspan> | |
<tspan dx='.25em'>not</tspan> |
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
<html> | |
<meta charset='utf-8' /> | |
<head> | |
</head> | |
<body> | |
<svg> | |
<text id='text_node' y="20px" text-anchor="start" opacity="1"> | |
<tspan>You</tspan> | |
<tspan dx='.5em'>shall</tspan> | |
<tspan dx='.5em' dy='.9em'>not</tspan> |
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
// Boid flocking based on http://harry.me/2011/02/17/neat-algorithms---flocking | |
var boid = (function() { | |
function boid() { | |
var position = [0, 0], | |
velocity = [0, 0], | |
w = 960, | |
h = 500, | |
gravityCenter = null, | |
gravityMultiplier = 1, | |
neighborRadius = 50, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Line Chart</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<link href="lineplot.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function linePlot() { |
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 MyClient() { | |
var self = this, | |
width = $('#map').width(), | |
mapCanvasHeight = (width * 0.45); | |
this.init = function() { | |
self.drawMap(); | |
self.drawMarker(); | |
} | |