Skip to content

Instantly share code, notes, and snippets.

View hhkaos's full-sized avatar
🏠
Working from home

Raul Jimenez Ortega hhkaos

🏠
Working from home
View GitHub Profile
<!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,
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}`)
@hhkaos
hhkaos / parkimetros.csv
Created October 13, 2022 15:56
parquimetros
We can't make this file beautiful and searchable because it's too large.
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
@hhkaos
hhkaos / README.md
Last active October 3, 2022 13:55
Google Search reviews example | SEO
@hhkaos
hhkaos / README.md
Last active September 12, 2022 07:35
Comisarias españa (fuente: policia.es)
@hhkaos
hhkaos / readme.md
Last active July 25, 2023 22:30
OGC certified products
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>ArcGIS REST JS</title>
<style>
body {
font-family: monospace;
color: white;
@hhkaos
hhkaos / wordpress-tags-to-csv.js
Last active May 7, 2022 14:35
Code to extract all tags used in Wordpress articles to CSV
/*
Run this from your Google Console at https://your-domain.com/wp-admin/edit.php
Double check if '#post_tag option' is the right selector
*/
var regExp = /\(([^)]+)\)$/;
var x= [];
document.querySelectorAll('#post_tag option').forEach(el => {
var matches = regExp.exec(el.innerHTML);
@hhkaos
hhkaos / Query related records.md
Created February 15, 2022 15:14
ArcGIS Online query related records workflow
@hhkaos
hhkaos / relatedItems-response.json
Created February 15, 2022 14:30
ArcGIS spec examples
{
"total": 1,
"relatedItems": [{
"id": "586e796f22724c719daa78e484a8c6eb",
"owner": "Blue.Flag",
"created": 1559808052000,
"isOrgItem": true,
"modified": 1559808053000,
"guid": "887796F5-A9F2-44A3-B657-781CA0A65FF3",
"name": "Best_Practices_WFL1.sd",