This is a simple example of defining a (not particularly useful) projection based on d3.geo.sinusoidal.
Every projection should also include an invert function.
Updated missing url https://raw.github.com/mbostock/d3/projection/d3.v2.min.js to https://cdn.jsdelivr.net/gh/mbostock/d3/projection/d3.v2.min.js
Updated missing url https://raw.github.com/d3/d3-plugins/projection/geo/projection/projection.js to https://cdn.jsdelivr.net/gh/d3/d3-plugins/projection/geo/projection/projection.js
https://raw.github.com/mbostock/d3/projection/d3.v2.min.js
https://raw.github.com/d3/d3-plugins/projection/geo/projection/projection.js