Skip to content

Instantly share code, notes, and snippets.

View btipling's full-sized avatar
:shipit:
shipping code

btipling

:shipit:
shipping code
  • ConductorOne
  • Bay Area, California
  • 09:16 (UTC -12:00)
View GitHub Profile
function run_demo() {
var k = new goog.ds.JsDataSource([], 'mypath');
goog.ds.DataManager.getInstance().addListener(function (a,b) {console.log(a,b);}, k.getDataPath() + '/fi');
k.setChildNode('fee', {'data': 1});
k.setChildNode('fi', {'data': 2});
k.setChildNode('fo', {'data': 3});
k.setChildNode('fum', {'data': 4});
@btipling
btipling / latency.txt
Created May 31, 2012 13:39 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns
@btipling
btipling / README.md
Last active December 10, 2015 02:28 — forked from mbostock/.block

Unlike choropleth maps, cartograms encode data using area rather than color, resulting in distorted geographic boundaries. In this example, states are rescaled around their centroid, preserving local shape but not topology. Inspired by Zachary Johnson. Non-continguous cartogram design invented by Judy Olsen. U.S. state and county boundaries from the U.S. Census Bureau, simplified using GDAL and MapShaper.

@btipling
btipling / index.html
Created December 24, 2012 06:13 — forked from ilyabo/index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
svg {
border:1px solid gray
}
#countries path {
@btipling
btipling / dnd.js
Created December 24, 2012 06:13 — forked from johan/dnd.js
// http://www.html5rocks.com/en/tutorials/file/dndfiles/
d3.select('svg')
.on('dragover', handleDragOver)
.on('drop', handleFileSelect)
;
function handleFileSelect() {
var event = d3.event
, files = event.dataTransfer.files // FileList object
, about = []
@btipling
btipling / index.html
Created December 24, 2012 22:06 — forked from enjalot/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Testing Pie Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script>
<style type="text/css">

Python Number Conversion Chart

From To Expression

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
update failed for AnAction with ID=floobits.actions.RequestEditPermissions
java.lang.NullPointerException
at floobits.actions.RequestEditPermissions.update(RequestEditPermissions.java:23)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:187)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:138)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:279)
at com.intellij.openapi.actionSystem.impl.ActionMenu.g(ActionMenu.java:281)
at com.intellij.openapi.actionSystem.impl.ActionMenu.access$400(ActionMenu.java:41)