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
@hhkaos
hhkaos / output.json
Last active May 2, 2018 12:41
Testing polygons with koop-provider-google-sheets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hhkaos
hhkaos / Koop_script_demo.md
Last active December 17, 2022 16:17
Esri DevSummit Berlin 2019 - https://bit.ly/DevSummitEU19

Esri DevSummit Berlin

Demo 1: Build and share your own Koop provider from scratch

Step 1)

Create a new Github repo. Name it: koop-provider-remote-geojson

Step 2)

@hhkaos
hhkaos / encodebase64.html
Last active November 5, 2019 05:39
Esri DevSummit Berlin 2019 - https://bit.ly/DevSummitEU19
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>URL-Encoder for koop-provider-remote-geojson</title>
<link rel="stylesheet" href="https://s3-us-west-1.amazonaws.com/patterns.esri.com/files/calcite-web/1.2.5/css/calcite-web.min.css">
<script src="https://s3-us-west-1.amazonaws.com/patterns.esri.com/files/calcite-web/1.2.5/js/calcite-web.min.js"></script>
<style>
textarea{
height: 200px
@hhkaos
hhkaos / script.js
Last active December 21, 2019 06:05
Script used in Google Forms to Geocode an address on Submit using ArcGIS Geocoder. Live demo: http://bit.ly/EOEcosystem
function getData(url){
Utilities.sleep(1000);
var response = UrlFetchApp.fetch(url);
var json = response.getContentText();
return JSON.parse(json);
}
function getToken(client_id, client_secret){
Utilities.sleep(1000);
@hhkaos
hhkaos / gist:5b599581483bc89bbf4cd76fe2cba8fc
Created June 15, 2020 09:28
devcommunitymanager.html
<!doctype html>
<html class="no-js" lang="es-es">
<head>
<meta charset="utf-8">
<title>Download CSV</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<link rel="stylesheet" href="css/normalize.css">
@hhkaos
hhkaos / index.js
Last active November 24, 2020 15:27
Script en node para descargar datos de escolarización de la Junta de Andalucía
var https = require('follow-redirects').https;
var fs = require('fs');
let data = {
idProvincia: '04',
idMunicipio: '04013',
idTipoVia: '',
tipoVia: 'AVENIDA',
codIberVia: 'AVENIDA,FEDERICO GARCIA LORCA',
nombreVia: 'FEDERICO GARCIA LORCA',
@hhkaos
hhkaos / embed-widget-sample.html
Created January 7, 2021 11:56
Embeber geoiniciativas
<html>
<head>
</head>
<body>
<script>
const s = document.createElement("script");
s.type = "text/javascript";
s.src = "https://geo-developers.github.io/geoiniciativas/assets/js/geoiniciativas-widget.js";
@hhkaos
hhkaos / svg-with-leaflet.html
Created January 26, 2021 09:47
Simple svg map
<html>
<head>
<style>
#map {
height: 400px;
}
</style>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
</head>
<html>
<head>
<style>#mapDiv{width:100%; height:400px}</style>
</head>
<body>
<h1>Drawing marker in ArcGIS</h1>
<div id="mapDiv"></div>
<script type="module">
import MapView from "https://js.arcgis.com/4.18/@arcgis/core/views/MapView.js";