Skip to content

Instantly share code, notes, and snippets.

View jfsiii's full-sized avatar

John Schulz jfsiii

View GitHub Profile
@jfsiii
jfsiii / index.js
Created July 23, 2014 01:45 — forked from Matt-Esch/index.js
requirebin sketch
var diff = require('virtual-dom/diff');
var patch = require('virtual-dom/patch');
var createElement = require('virtual-dom/create-element');
var virtualize = require('vdom-virtualize');
// 1: Create a function that declares what the DOM should look like
function render(count) {
var html = '<div id="test">Count is <span>' + count + '</span></div>';
return virtualize.fromHTML(html);
}
define('components/ui/add_profile', function(require) {
'use strict';
/**
* Module dependencies
*/
// var defineComponent = require('flight/lib/component');
// Using flight global from standalone lib for demo purposes.
var defineComponent = flight.component;
@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: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 = {};