Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000brew tap homebrew/cask-fonts, brew tap homebrew/cask-versions)brew install zshwhich zsh to /etc/shells and 2) changing the default shell with chsh -s $(which zsh)brew install zsh-autosuggestions (be sure to follow the instructions output by brew to update your ~/.zshrc)npm install -g spaceship-prompt| library(dplyr) | |
| # Load acs library | |
| # Complete docs at https://cran.r-project.org/web/packages/acs/acs.pdf | |
| library(acs) | |
| # First, create a geography | |
| # For example, all counties in Texas | |
| tx.counties = geo.make(county="*", state='TX') | |
| # Or all tracts in Dallas and Tarrant county, using fips code |
| // helper functions | |
| var getJSON = function (nameOfFile) { | |
| var dataFile = File(docPath + '/' + nameOfFile + ".json"); | |
| dataFile.open(); | |
| data = dataFile.read(); | |
| data = eval(data); | |
| dataFile.close(); | |
| return data; | |
| }; |
| .video-block { | |
| width: 55%; | |
| margin: 4.8rem 0; | |
| font-size: 15px; | |
| img { | |
| max-width: 170px !important; | |
| max-height: 18px !important; | |
| } | |
| } | |
| .video-wrapper { |
In terminal navigate to project and run npm install -S mapbox-gl
Insert import mapboxgl from 'mapbox-gl'; at top of scripts.js
In scripts.js initialize map with
// GET MAP STARTED
const map = new mapboxgl.Map({
container: 'map', // Div ID, where to put it in DOM. <div id="map"></div> for example
style: 'https://maps.dallasnews.com/styles.json', // link to custom styles