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
from IPython.display import HTML | |
HTML("""<style>.video-container{display:grid;justify-items:center;align-items:center;position:relative;width:100%;height:100%;min-height:400px;overflow:hidden}.video-container iframe{position:absolute;z-index:1;top:50%;left:50%;min-width:100%;min-height:100%;transform:translate(-50%,-50%)}</style><div class="video-container"><iframe id="kmsembed-1_61k6sy6f" width="608" height="402" src="https://mediaspace.esri.com/embed/secure/iframe/entryId/1_61k6sy6f/uiConfId/49806163/st/0" class="kmsembed" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay *; fullscreen *; encrypted-media *" referrerpolicy="no-referrer-when-downgrade" sandbox="allow-downloads allow-forms allow-same-origin allow-scripts allow-top-navigation allow-pointer-lock allow-popups allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation" frameborder="0" title="Road crack prediction"></iframe></div>""") |
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
<div id="mapid"></div> | |
<!--http://leafletjs.com/examples/choropleth/--> |
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
{ | |
"timelineObjects": [ | |
{ | |
"placeVisit": { | |
"location": { | |
"latitudeE7": 404763025, | |
"longitudeE7": -36856992, | |
"placeId": "ChIJPdB-HGspQg0RkIBhPiXUAEM", | |
"address": "P.º de la Castellana, 280, Chamartín, 28046 Madrid, España", | |
"semanticType": "TYPE_SEARCHED_ADDRESS", |
Install: google_takeout_parser
Run: google_takeout_parser parse -f Location Takeout
Type this to create a CSV file:
def write_to_csv(file_path, data_instances):
import csv
(base) jovyan@37266f7fb205:~$ conda install python=3.9 arcgis_learn -c esri/label/beta -c esri-build/label/forge -c esri-build -c esri
Collecting package metadata (current_repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/conda/gateways/repodata/__init__.py", line 187, in conda_http_errors
yield
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories\?q\=topic:esri-javascript-api | jq '.items[] | {url:.url}' > repos.js
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories\?q\=topic:esri-js | jq '.items[] | {url:.url}' >> repos.js
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories\?q\=topic:arcgis-api | jq '.items[] | {url:.url}' >> repos.js
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
const puppeteer = require('puppeteer'); | |
(async() => { | |
// Step 1: launch browser and open a new page. | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
// Step 2: PPTR.DEV has a service worker \m/ | |
// Go there and wait for SW to register. | |
await page.goto('https://pptr.dev/'); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /> | |
<title>OL: Filter feature layer</title> | |
<style> | |
html, | |
body, |
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
import express from 'express'; | |
const app = express() | |
const port = 3000 | |
app.get('/', async (req, res) => { | |
res.redirect('https://www.arcgis.com/sharing/rest/oauth2/authorize/?client_id=XXXXX&redirect_uri=https://hhkaos.github.io/arcgis-oauth-callback/&response_type=code&code_challenge=qaXuju2sX8lKLvErIKHfdrg0h7DLvSeLuErfsfMJFj4&code_challenge_method=S256') | |
}) | |
app.listen(port, () => { | |
console.log(`Example app listening on port ${port}`) |
NewerOlder