Skip to content

Instantly share code, notes, and snippets.

View petesmaluck's full-sized avatar

Pete Smaluck petesmaluck

View GitHub Profile
@petesmaluck
petesmaluck / index.html
Created June 8, 2013 07:34
Justice's D3 Design
<!DOCTYPE html>
<html>
<head>
<title>Force-Directed Layout (Multiple Foci)</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
</head>
@petesmaluck
petesmaluck / index.html
Created June 8, 2013 19:09
Graham's D3 Design
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
</head>
<body>
<script type="text/javascript">
var mouse = [480, 250],
@petesmaluck
petesmaluck / index.html
Created June 8, 2013 19:15
Anne's D3 Design
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
</head>
<body>
<script type="text/javascript">
var mouse = [120, 250],
@petesmaluck
petesmaluck / index.html
Last active December 18, 2015 05:59
Marking Multiple Points with Google Maps API
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Sites Around Hamilton</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
<style>
/* Main marketing message and sign up button */
@petesmaluck
petesmaluck / index.html
Created June 8, 2013 19:38
Jimmy's YOLO Calculator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Pace Calculator</title>
</head>
<body>
<form id="paceTime" action="">
@petesmaluck
petesmaluck / index.html
Last active December 18, 2015 05:59
Grade 8 and 9 Ontario Math Curriculum
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
cursor: pointer;
}
.node circle {
fill: #fff;
@petesmaluck
petesmaluck / graph_calc.js
Last active December 18, 2015 07:29
Basic Graphing Calculator
window.addEventListener('load', eventWindowLoaded, false);
function eventWindowLoaded() {
canvasApp();
}
function canvasSupport () {
return Modernizr.canvas;
}
@petesmaluck
petesmaluck / index.html
Created June 10, 2013 19:24
Blue Jays strike-out to walks comparison
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
svg {
padding: 10px 0 0 10px;
@petesmaluck
petesmaluck / index.html
Last active December 18, 2015 08:09
Processing Circles
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>creating computer art</title>
</head>
<body>