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
We can't make this file beautiful and searchable because it's too large.
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
gis_x;gis_y;fecha_alta;fecha_baja;distrito;barrio;calle;num_finca;matricula | |
439608,1908;4473550,028;2014/05/28;;01 CENTRO;01-01 PALACIO;AGUAS, CALLE, DE LAS;1;301110056 | |
439757,571;4473794,518;2014/05/27;;01 CENTRO;01-01 PALACIO;ALMENDRO, CALLE, DEL;14;301110042 | |
439724,4731;4474317,372;2014/05/26;;01 CENTRO;01-01 PALACIO;AMNISTIA, CALLE, DE LA;6;301110014 | |
439923,6811;4474528,889;2014/05/26;;01 CENTRO;01-01 PALACIO;ANGELES, COSTANILLA, DE LOS;11;301110012 | |
439735,2317;4474489,959;2014/05/26;;01 CENTRO;01-01 PALACIO;ARRIETA, CALLE, DE;8;301110010 | |
439232,9842;4473818,072;2014/05/27;;01 CENTRO;01-01 PALACIO;BEATRIZ GALINDO, CALLE, DE;S/N;301110032 | |
439622,7569;4473423,031;2014/05/28;;01 CENTRO;01-01 PALACIO;CALATRAVA, CALLE, DE;17;301110064 | |
439549,6164;4473438,836;2014/05/28;;01 CENTRO;01-01 PALACIO;CALATRAVA, CALLE, DE;29;301110063 | |
439479,2652;4473481,502;2014/05/28;;01 CENTRO;01-01 PALACIO;CALATRAVA, CALLE, DE;37;301110046 |
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 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}`) |
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
<!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 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 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/'); |
(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
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
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
{ | |
"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", |
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 id="mapid"></div> | |
<!--http://leafletjs.com/examples/choropleth/--> |