- Counties (polygons)
- Roads (polylines)
- Fires (points)
- Parks (polygons)
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
| // https://stackoverflow.com/questions/6536166/how-to-find-absolute-or-relative-position-of-last-letter-inside-an-input-field | |
| <div id="textbox"> | |
| <span id="edit" contentEditable></span> | |
| <span id="end"></span> | |
| </div> | |
| <div id="report">x:? , y:?</div> | |
| // css | |
| #textbox { |
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
| const onScrollStop = (el, callback) => { | |
| if (!callback || typeof callback !== 'function') return; | |
| if(!el) return; | |
| let isScrolling; | |
| el.addEventListener('scroll', (event) => { | |
| el.clearTimeout(isScrolling); |
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
| const fs = require('fs-extra'); | |
| const path = require('path'); | |
| const { | |
| src, | |
| dest, | |
| series, | |
| task | |
| } = require('gulp'); | |
| const argv = require('yargs').argv; |
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
| import pandas as pd | |
| import numpy as np | |
| df = pd.DataFrame(np.array([ | |
| ["1001 19th St North", "Arlington", "VA", "Esri R&D"], | |
| ["380 New York St", "Redlands", "CA", "Esri Headquarters"], | |
| ["920 SW #rd Avenue", "Portland", "OR", "Esri R&D"], | |
| ["75 Broad St", "New York City", "NY", "Esri Regional Office"] | |
| ]), columns=["Address", "City", "State", "Office"]) | |
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
| import boto3 | |
| heartland_campaign = heartland.nlargest(3, 'population') | |
| heartland_campaign.to_csv(r'heartland_campaign.csv') | |
| s3 = boto3.resource('s3') | |
| s3.meta.client.upload_file('heartland_campaign.csv', 'online-store-marketing', 'heartland_campaign.csv') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import datetime as dt | |
| import pandas as pd | |
| import os | |
| from six.moves import urllib | |
| year = "2019" | |
| ## Get the data from the web | |
| path = "ca_snow_feb_{}.csv".format(year) | |
| url = "https://s3-us-west-1.amazonaws.com/python-and-r/ca_snow_feb_{}.csv".format(year) |
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
| { | |
| "hasMore": false, | |
| "startTime": 1549945703204, | |
| "endTime": 1549945477363, | |
| "logMessages": [ | |
| { | |
| "type": "DEBUG", | |
| "message": "Getting all services in federated mode.", | |
| "time": 1549945703204, | |
| "source": "Admin", |
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
| public List<NameValuePair> bodyBuilder(Map<String, String> map) { | |
| List<NameValuePair> paramList = new ArrayList<>(map.size()); | |
| for (Map.Entry<String, String> entry : map.entrySet()) { | |
| paramList.add(new BasicNameValuePair(entry.getKey(), entry.getValue())); | |
| } | |
| return paramList; | |
| } |