Skip to content

Instantly share code, notes, and snippets.

@abierbaum
abierbaum / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@abierbaum
abierbaum / bad_browser.html
Created November 6, 2012 15:01 — forked from my8bird/gist:3959405
Chrome Frame example
<!DOCTYPE html>
<html>
<head>
<script >
// Check that we have a supported browser
(function() {
var ua = window.navigator.userAgent,
in_chrome = /chrome/i.test(ua),
in_chrome_frame = /chromeframe/i.test(ua), // Notice inChrome is true if inChromeFrame is
in_ie = /msie/i.test(ua),
@abierbaum
abierbaum / index.html
Created July 10, 2012 19:12 — forked from mbostock/.block
Axis Component (AB)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.0.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.csv.js?2.0.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?2.0.0"></script>
<style type="text/css">
body {
font: 10px sans-serif;
@abierbaum
abierbaum / app.js
Created July 10, 2012 18:08 — forked from abierbaum/app.js
Test for data based line chart.
//
// Chart example
//
// - Shows multiple lines in one chart
// - User can see scale showing the values and the timeframe
// - Each line has separate color
// - Show legend of groups with colors
// - Support transitions to:
// - Change data shown
// - Change the items shown (keep colors for old ones)