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 / 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 / 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 / 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.
<?xml version="1.0" encoding="UTF-8"?><gpx creator="Wikiloc - https://www.wikiloc.com" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"><trk><name>Lanzarote - Playa Blanca - Los Ajaches - Papagayos</name><cmt></cmt><desc></desc><trkseg><trkpt lat="28.868358" lon="-13.827063"><ele>105.9</ele><time>2014-04-17T16:41:52Z</time></trkpt><trkpt lat="28.868456" lon="-13.827006"><ele>98.7</ele><time>2014-04-17T16:42:13Z</time></trkpt><trkpt lat="28.868458" lon="-13.827008"><ele>97.7</ele><time>2014-04-17T16:42:23Z</time></trkpt><trkpt lat="28.868491" lon="-13.827037"><ele>95.8</ele><time>2014-04-17T16:42:35Z</time></trkpt><trkpt lat="28.868495" lon="-13.827001"><ele>96.3</ele><time>2014-04-17T16:42:53Z</time></trkpt><trkpt lat="28.868495" lon="-13.826953"><ele>96.3</ele><time>2014-04-17T16:43:26Z</time></trkpt><trkpt lat="28.868477" lon="-13.826887"><ele>92.9</el
<?xml version="1.0" encoding="UTF-8"?><gpx creator="Wikiloc - https://www.wikiloc.com" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"><trk><name>Lanzarote - Playa Blanca - Los Ajaches - Papagayos</name><cmt></cmt><desc></desc><trkseg><trkpt lat="28.868358" lon="-13.827063"><ele>105.9</ele><time>2014-04-17T16:41:52Z</time></trkpt><trkpt lat="28.868456" lon="-13.827006"><ele>98.7</ele><time>2014-04-17T16:42:13Z</time></trkpt><trkpt lat="28.868458" lon="-13.827008"><ele>97.7</ele><time>2014-04-17T16:42:23Z</time></trkpt><trkpt lat="28.868491" lon="-13.827037"><ele>95.8</ele><time>2014-04-17T16:42:35Z</time></trkpt><trkpt lat="28.868495" lon="-13.827001"><ele>96.3</ele><time>2014-04-17T16:42:53Z</time></trkpt><trkpt lat="28.868495" lon="-13.826953"><ele>96.3</ele><time>2014-04-17T16:43:26Z</time></trkpt><trkpt lat="28.868477" lon="-13.826887"><ele>92.9</el
@hhkaos
hhkaos / here-map-tile-api.markdown
Created February 19, 2017 16:42
HERE Map Tile API
@hhkaos
hhkaos / sample.geojson
Last active February 16, 2017 18:42
GeoJSON sample
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// This code requires that you set the ID of the tweet that you want to Like as an input variable called "tweet_id". Learn more at https://zapier.com/help/code/#data-variables
// INSTUCTIONS FOR SETTING THESE REQUIRED VARIABLES: After you create a new app at https://apps.twitter.com/, click on the name of the app to open it. Then, select the "Keys and Access Tokens" tab.
var twitterApplicationConsumerKey = ''; // Located in the "Application Settings" section
var twitterApplicationConsumerSecret = ''; // Located in the "Application Settings" section
var twitterApplicationAccessToken = ''; // Located in the "Your Access Token" section
var twitterApplicationAccessTokenSecret = ''; // Located in the "Your Access Token" section
@hhkaos
hhkaos / zapier_get_thumbnail_image_from_html.js
Last active February 5, 2024 19:21
This script can be executed using the "Code by Zapier" app to get an image from a page - https://zapier.com/zapbook/code/
/*
You need to set an inputData param called 'link'
with the URL field you want to parse.
More info: https://zapier.com/help/code/#data-variables
*/
fetch(inputData.link)
.then(function(res) {
return res.text();
})
.then(function(body) {