Skip to content

Instantly share code, notes, and snippets.

View ddnn55's full-sized avatar

David Stolarsky ddnn55

View GitHub Profile
@ddnn55
ddnn55 / process_stdin_lines.js
Last active August 29, 2015 14:08
minimal unix stdin line processor in NodeJS
#!/usr/bin/env node
var readline = require('readline');
var devnull = require('dev-null');
var rl = readline.createInterface({
input: process.stdin,
output: devnull()
});
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
.ansi2html-content { display: inline; white-space: pre-wrap; word-wrap: break-word; }
.body_foreground { color: #AAAAAA; }
.body_background { background-color: #000000; }
.body_foreground > .bold,.bold > .body_foreground, body.body_foreground > pre > .bold { color: #FFFFFF; font-weight: normal; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
.ansi2html-content { display: inline; white-space: pre-wrap; word-wrap: break-word; }
.body_foreground { color: #AAAAAA; }
.body_background { background-color: #000000; }
.body_foreground > .bold,.bold > .body_foreground, body.body_foreground > pre > .bold { color: #FFFFFF; font-weight: normal; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
.ansi2html-content { display: inline; white-space: pre-wrap; word-wrap: break-word; }
.body_foreground { color: #AAAAAA; }
.body_background { background-color: #000000; }
.body_foreground > .bold,.bold > .body_foreground, body.body_foreground > pre > .bold { color: #FFFFFF; font-weight: normal; }
@ddnn55
ddnn55 / README.md
Created March 14, 2016 23:32 — forked from mbostock/README.md
Quadtree

This example demonstrates accelerated two-dimensional filtering enabled by d3.geom.quadtree. A quadtree recursively subdivides square cells into four equal-sized subcells. Each leaf node of the quadtree contains a single point. If a given quadtree cell does not intersect the brush extent, then none of the points contained in that subtree can be selected, and thus do not need to be scanned. Above, orange indicates points that are scanned but not selected. Without a quadtree, all points would need to be scanned!

@ddnn55
ddnn55 / README.md
Last active March 30, 2016 21:14
SVG Crowbar for Backtick
hello virtual world
<img src="uHQsKx4.jpg" />
@ddnn55
ddnn55 / jsonpaths.js
Last active July 19, 2016 20:17
List all paths in the JSON object on stdin
#!/usr/bin/env node
var readline = require('readline');
var devnull = require('dev-null');
var rl = readline.createInterface({
input: process.stdin,
output: devnull()
});
@ddnn55
ddnn55 / .block
Created June 24, 2017 13:17 — forked from mbostock/.block
Zoomable Map Tiles
license: gpl-3.0
Component({
parameters: [],
render: function() {}
})