The Mercator projection is available as d3.geo.mercator.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:whippet_path = '/path/to/whippet' | |
let g:ctrlp_use_caching = 0 | |
let g:whippet_exclude_paths = ".git,.svn,tmp,log,.bundle" | |
let g:ctrlp_user_command = g:whippet_path." --exclude=".g:whippet_exclude_paths | |
let g:ctrlp_match_func = { 'match': 'Whippet' } | |
function Whippet(items, str, limit, mmode, ispath, crfile, regex) | |
let cmd = g:whippet_path.' --exclude='.g:whippet_exclude_paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var width = 960, | |
height = 500; | |
var projection = interpolatedProjection( | |
d3.geo.orthographic() | |
.rotate([10, -10]) | |
.center([-10, 10]) | |
.scale(240) | |
.translate([width / 2, height / 2]), | |
d3.geo.equirectangular() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple event dispatcher | |
* | |
* Example | |
* | |
* var MyConstructor = function () { | |
* var self = this | |
* var count = 0 | |
* setInterval(function () { | |
* self.emit('tick', {count: count}) |