The orthographic projection is available as d3.geo.orthographic. See also the interactive version, the rotating versions and the animated world tour.
This file contains hidden or 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
/*** | |
* | |
* I want to execute someFunc() if the variable x is greater than 5 | |
* how would you rewrite the below to NOT use a conditional? (EG no "if" used) | |
* | |
* **/ | |
if(x > 5) { | |
someFunc(): | |
} |
This file contains hidden or 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
body | |
nav.navbar.navbar-default | |
div.container-fluid | |
div.navbar-header | |
a.navbar-brand(href='/') Wolves | |
ul.nav.navbar-nav(role="main-nav") | |
li | |
a(href='/howls') Howls | |
.container | |
main(role="page-container") |
This file contains hidden or 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
// | |
// Lame implementation of a channel | |
function channel() { | |
return new Channel(); | |
} | |
var id = 0; | |
function Channel(opts) { | |
this._queue = []; |
OlderNewer