The same examples as in this gist, but now tweaked to provide the subticks where possible when using d3.js v2.10.0; this means that any functions passed in as arguments to provide a flexible subtick count, size, or otherwise, are reduced to explicit numbers as v2.10.0 vanilla D3 doesn't support functions as parameters to d3.axis methods.
Modified http://d3js.org/d3.v2.js to a secure url
Modified http://gerhobbelt.github.com/bl.ocks.org-hack/fixit.js to a secure url
https://d3js.org/d3.v2.js
https://gerhobbelt.github.com/bl.ocks.org-hack/fixit.js