Possible schedule for a D3.JS workshop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = []; | |
for (var i = 0; i < 56; i++) { | |
x.push(new Uint8Array(1024 * 1024 * 1024)); | |
} | |
console.log(x.length); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c1 | |
< (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
--- | |
> (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.mapboxgl = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Canno |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/node | |
var util = require('util'); | |
var vm = require('vm'); | |
var Writable = require('stream').Writable; | |
var ws = Writable(); | |
var chunks = []; | |
ws._write = function (chunk, enc, next) { | |
chunks.push(chunk); | |
next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/node | |
var vm = require('vm'); | |
var Writable = require('stream').Writable; | |
var ws = Writable(); | |
var chunks = []; | |
ws._write = function (chunk, enc, next) { | |
chunks.push(chunk); | |
next(); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<style> | |
body { | |
margin: 0; | |
} | |
</style> | |
<body> | |
<script src="http://d3js.org/d3.v3.js" charset="utf-8"></script> | |
<script> |
[ Launch: test ] 089a3d72e5fc01fd881f by vicapow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checkout the project page at: https://github.com/shawnbot/masonic | |
(function(exports) { | |
var VERSION = "0.1.0"; | |
d3.masonic = function() { | |
var columnCount = 0, | |
columnWidth = 200, | |
outerWidth = 0, | |
outerHeight = 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = [1, 2, [2], [1, 2, [3, 4, [5]]], [[4, 5], 3, 2, 1], [1]]; | |
function flatten(array) { | |
var stack = []; | |
var out = []; | |
var tail; | |
stack.push({array: array, idx: 0}); | |
while(stack.length) { | |
tail = stack[stack.length - 1]; | |
if (tail.idx >= tail.array.length) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var D3ReactTemplate = React.createClass({ | |
sel: function() { return d3.select(this.getDOMNode()) }, | |
getDefaultProps: function() { | |
return { | |
valueAccessor: function(d) { return d.value }, | |
width: 400, | |
height: 400 | |
} | |
}, | |
getInitialState: function() { |