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
| $(function(){ | |
| var tilejson = { | |
| tilejson: '1.0.0', | |
| scheme: 'tms', | |
| tiles: ['http://a.tiles.mapbox.com/mapbox/1.0.0/world-light/{z}/{x}/{y}.png'] | |
| }; | |
| var mm = com.modestmaps; | |
| var m = new mm.Map('yourMapDiv', | |
| new wax.mm.connector(tilejson), |
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
| var splitLayers = layers.split(','); | |
| var embedlayers = _.each(splitLayers, function(num, key) { | |
| return '&layers%5B%5D=' + num; | |
| }); | |
| console.log(formattedLayers); |
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
| var splitLayers = layers.split(','); | |
| console.log(splitLayers); | |
| embedlayers = _.each(splitLayers, function(num, key) { | |
| return '&layers%5B%5D=' + num; | |
| }); | |
| console.log(embedlayers); |
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
| var splitLayers = layers.split(','); | |
| console.log(splitLayers); //["afghanistan-hillshades", "afghanistan-english-borders", "jv-afg-total"] | |
| embedlayers = _.each(splitLayers, function(num, key) { | |
| console.log(num); //afghanistan-hillshades afghanistan-english-borders jv-afg-total | |
| return '&layers%5B%5D=' + num; | |
| }); | |
| console.log(embedlayers); //Undefined |
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
| var layers = 'usa1-census-state-z2-5,'; | |
| layers += 'usa2-census-counties-z6-9,'; | |
| layers += 'usa3-census-tracts-contusa-z10-13,'; | |
| layers += 'usa4-census-tracts-AK-z10-13,'; | |
| layers += 'usa5-census-tracts-HI-z10-13,'; | |
| layers += 'usa6-census-tracts-contusa-z14,'; | |
| layers += 'usa7-census-tracts-AK-z14,'; | |
| layers += 'usa8-census-tracts-HI-z14'; | |
| function getTiles() { |
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
| var splitLayers = layers.split(','), | |
| embedlayers = '', | |
| center = m.pointLocation(new mm.Point(m.dimensions.x/2,m.dimensions.y/2)); | |
| $.each(splitLayers, function(num, key) { | |
| embedlayers += '&layers%5B%5D=' + num; | |
| }); | |
| var embedId = 'ts-embed-' + (+new Date()); | |
| var url = '&size=700' |
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
| for i in `ls -1 node_modules`; do echo $i; grep version node_modules/$i/package.json; done | |
| ./ | |
| grep: node_modules/.//package.json: No such file or directory | |
| ../ | |
| "version": "0.1.0", | |
| .bin/ | |
| grep: node_modules/.bin//package.json: No such file or directory | |
| backbone-couch/ | |
| "version": "0.4.0", | |
| backbone-proxy/ |
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
| for i in `ls -1 node_modules`; do echo $i; grep version node_modules/$i/package.json; done./ | |
| grep: node_modules/.//package.json: No such file or directory | |
| ../ | |
| "version": "0.1.0", | |
| .bin/ | |
| grep: node_modules/.bin//package.json: No such file or directory | |
| backbone-couch/ | |
| "version": "0.4.0", | |
| backbone-proxy/ | |
| "version": "0.1.0", |
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
| #Customize Command Prompt | |
| #print_before_the_prompt () { | |
| # echo 'Current path: $PWD' | |
| #} | |
| #PROMPT_COMMAND=print_before_the_prompt | |
| PS1='$ ' | |
| # Node Version Manager | |
| . ~/.nvm/nvm.sh |
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
| <div class="wax-legend"> | |
| <div id="wax-legend-census" style="text-align:center;"> | |
| <a href="http://www.npr.org"> | |
| <img style="display:block;" src="data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAABICAYAAABMb8iNAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAABFOSURBVHic7Z15mFTVlcB/t5vuBtoWMy4YBATCvhltJqJRgsmomLTjNoAJLkMGdVCT6AAz48RRA5pJiIqSmKioEERC5AuJLS4TNYImMAiIRFG63UARhiYujQ32fvPHuY+69epV96umSRXNud/3vvrVqfPOPe9W1fnueXd5AAOttVhrUVZWVs5pzroDysrKyjE56w4oKysrx+WsO6CsrKwcm7PugLKysnJMzroDysrKynE56w4oKysrx+asO6CsrKwck7PugLKysnJczroDysrKyrE56w4oKysrx+RMlL8GXOeOW4FuETrTPJ0puXCBysrKHYdjKwPnAdY7HgMGhXQ2eJ8vyYULVFZW7kAcV5nUgGWBG0I6SQErJy5QWVm5w3AmylNJDViNwOWezuveZ08kVQRFwL8Cy4CngR8Dl3k6E4G73DHPk18C3OuOaZ78Jk//O06WD3zT2S4HFgAXAwW50uDKyspt59jKRPewLFAF9HQ6kSkh0B/YmOb824FBwJCQfIg799eerMLZHOTqDeQTgaOALWnq2AEckQsNrqysvB8cV5n0AcsCrwCFRKSEQB7wkidvBHaGzp/k6tjqyWYiPaNPQrpnA1/03tcD3YD7PNmnwCqgyb1fmDMNrqys3GbORDmcEq4Lvb+HiJQQmODJ9gJnAgYJSIG8Aglud3qyZcjIZDg4zkBGI4P3v3fnLvNk |