Skip to content

Instantly share code, notes, and snippets.

View jfsiii's full-sized avatar

John Schulz jfsiii

View GitHub Profile
@jfsiii
jfsiii / gist:814784
Created February 7, 2011 17:33 — forked from paulirish/gist:601751
get and set objects in localStorage and sessionStorage
// Forked from paul irish's https://gist.github.com/601751
// desire: localStorage and sessionStorage should accept objects
// in fact they do according to spec.
// http://code.google.com/p/chromium/issues/detail?id=43666
// but so far that part isnt implemented anywhere.
// so we duckpunch set/getItem() to stringify/parse on the way in/out
// this seems to work in chrome
@jfsiii
jfsiii / data.tsv
Created July 26, 2013 00:07 — forked from mbostock/.block
group date value
1 2008-01 10
1 2008-04 8
1 2008-07 14
1 2008-10 9
1 2009-01 10
1 2009-04 8
1 2009-07 14
1 2009-10 9
2 2008-01 3
@jfsiii
jfsiii / README.md
Last active December 19, 2015 06:59 — forked from mbostock/.block
@jfsiii
jfsiii / README.md
Created June 27, 2013 04:57 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<script type="text/javascript" src="https://raw.github.com/cfergus/d3-plugins/master/sankey/sankey.js"></script>
<title>Sankey Diagram</title>
<style>
@jfsiii
jfsiii / index.html
Last active December 18, 2015 19:29 — forked from mbostock/.block
<html>
<head>
<title>Bar Chart</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
font: 10px sans-serif;
}
@jfsiii
jfsiii / _.md
Created January 14, 2013 20:21 — forked from enjalot/_.md
An inlet to Tributary
@jfsiii
jfsiii / index.html
Created January 10, 2012 17:51 — forked from joubertnel/gist:870190
HTML5 Canvas - Rendering of Text on high-DPI screens
<html>
<head>
<script src='http://code.jquery.com/jquery-1.5.1.min.js'></script>
</head>
<body>
<h2>Naive canvas</h2>
<canvas id="naive" width="400" height="50"></canvas>
<h2>High-def Canvas</h2>
@jfsiii
jfsiii / dual.js
Created May 13, 2011 03:01 — forked from unscriptable/another-way.js
AMD-compatible CommonJS Module/1.1 that can also be loaded in a script tag
(function (define) {
define(function (exports) {
function Color(){}
return Color;
});
}(
// provide define if it's not available
this.define || (function (global, moduleId) {
@jfsiii
jfsiii / dual.js
Created May 13, 2011 03:22 — forked from unscriptable/another-way.js
AMD-compatible CommonJS Module/1.1 that can also be loaded in a script tag
(function () {
/*!
* expose.js
*
* @author Oleg Slobodskoi
* @website https://github.com/kof/expose.js
* @licence Dual licensed under the MIT or GPL Version 2 licenses.
*/
function expose(namespace, api) {
var env = {};