Skip to content

Instantly share code, notes, and snippets.

View jacksonhenry3's full-sized avatar

Jackson Henry jacksonhenry3

  • Worcester Polytechnic Institute
  • United States
View GitHub Profile
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>Fourier Transform in JavaScript</title>
<meta name="keywords"
content="graph, graphs, graphing, JavaScript, DHTML, Clymer, function, functions, Fourier, Fourier transform, FFT">
<style type="text/css" media="screen"></style>
</head>
@jacksonhenry3
jacksonhenry3 / index.html
Created August 5, 2012 02:39
basic food look up (based on FDA data)
<script type="text/javascript">
acidic_foods = {'Birds nest soup': '7.20 - 7.60','Cheese, Camembert': '7.44','Clams': '6.00 - 7.10','Coconut, fresh': '5.50 - 7.80','Coconut milk': '6.10 - 7.00','Coconut preserves': '3.80 - 7.00','Conch': '7.52 - 8.40','Corn': '5.90 - 7.30','Corn, frozen, cooked': '7.33 - 7.68','Corn, Golden Bantam, cooked on cob': '6.22 - 7.04','Crab meat':'6.50 - 7.00','Eggs, new-laid, whole': '6.58','White': '7.96','Graham Crackers': '7.10 - 7.92','Grass jelly': '5.80 - 7.20','Hominy, cooked': '6.00 - 7.50','Lobster, cooked': '7.10 - 7.43','Milk, peptonized': '7.10','Olives, black': '6.00 - 7.00','Olives, ripe': '6.00 -7.50','Peanut Soup': '7.5','Sauce, Shrimp': '7.01 - 7.27','Shrimp': '6.50 - 7.00','Soda Crackers': '5.65 - 7.32','Soy infant formula': '6.60 - 7.00','Soy bean curd (tofu)': '7.20','Soybean milk': '7.00','Spinach, cooked': '6.60 - 7.18','Tea': '7.20','Tofu (soybean Curd)': '7.20','Wax gourd drink': '7.20'}
val = prompt("type in the name of the food you would like to see basicn
@jacksonhenry3
jacksonhenry3 / index.html
Created July 31, 2012 17:25
coffe wheel test
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Partition - Sunburst</title>
<script src="http://d3js.org/d3.v2.js"></script>
<style type="text/css">
path {
stroke: #fff;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Sunburst with Text</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.layout.js"></script>
<style type="text/css">
svg {
font: 10px sans-serif;
@jacksonhenry3
jacksonhenry3 / index.html
Created July 12, 2012 18:23 — forked from mbostock/index.html
label test for sunburst
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Sunburst with Text</title>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<script type="text/javascript" src="https://github.com/mbostock/d3/tree/master/test/layout"></script>
<style type="text/css">
svg {
font: 10px sans-serif;
@jacksonhenry3
jacksonhenry3 / flare.json
Created July 12, 2012 14:27
Phylum browser (in progress)
{
"name": "Life",
"children": [
{"name": "Eukaryote",
"children":[
{"name":"Plantae","children":[{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1}]},
{"name":"Anamalia","children":[{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{"name":"name","size":1},{
@jacksonhenry3
jacksonhenry3 / index.html
Created July 11, 2012 20:53
test wiki api
<html>
<head>
<title></title>
</head>
<body>
<script type="application/javascript">
var url = "http://en.wikipedia.org/w/api.php?action=opensearch&search=value&format=json&callback=spellcheck";
var elem = document.createElement ("script");

HTML5-based open source scientific models, visualizations, graphing, and probeware from the Concord Consortium.

Table of Contents

  • toc {:toc}