Skip to content

Instantly share code, notes, and snippets.

View harlantwood's full-sized avatar
💭
☀️

Harlan T Wood harlantwood

💭
☀️
View GitHub Profile
@harlantwood
harlantwood / mongodbcheats.js
Created November 25, 2016 23:45 — forked from kgorman/mongodbcheats.js
MongoDB cheat sheet
/* MongoDB cheat sheet */
// replication lag via serverStatus()
db._adminCommand( { serverStatus : 1 , repl : 2 } )
// stats
db.stats()
db.foo.stats()
// size of BSON of some query
@harlantwood
harlantwood / README.md
Last active December 25, 2015 02:09 — forked from mbostock/.block
D3 full screen (width) resizable TopoJSON image using SVG viewbox

A demo of TopoJSON using a single file that contains county, state and country boundaries. This example uses topojson.mesh to extract separating lines between states and counties from the geometry collections.

Notes on this fork

To see the resizable nature of this image, check out this gist live at: http://bl.ocks.org/harlantwood/raw/6900108/.

This is a fork of https://gist.github.com/mbostock/4136647, which you can see live at http://bl.ocks.org/mbostock/4136647. I reverted to an earlier version of the gist, as the feature that I was interested in -- dynamic resizing of the image on browser resize -- seemed to be removed in the later versions.

I found the original gist when searching on this topic via this post: .

ruby -e 'system("heroku create z#{29.times.map{ (("a".."z").to_a + ("0".."9").to_a).sample }.join}")'
@harlantwood
harlantwood / README.md
Created February 22, 2013 00:40 — forked from mbostock/.block

The tree layout implements the Reingold-Tilford algorithm for efficient, tidy arrangement of layered nodes. The depth of nodes is computed by distance from the root, leading to a ragged appearance. Cartesian orientations are also supported. Implementation based on work by Jeff Heer and Jason Davies using Buchheim et al.'s linear-time variant of the Reingold-Tilford algorithm. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

@harlantwood
harlantwood / index.md
Created September 27, 2012 07:32 — forked from runlevel5/gist:2866534
Spree 1.0.x deployment on Heroku
layout title date comments categories tags author
post
Spree 1.0 deployment on Heroku
2012-02-21 06:40
true
spree, heroku, ruby, deployment, cedar stack
Trung Lê
@harlantwood
harlantwood / .gitignore
Created October 28, 2009 00:43
bash_profile extensions
custom