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 / Address Selection.html
Created February 1, 2022 10:27
GMaps Platform: Solution Library
<!DOCTYPE html>
<html>
<head>
<title>Address Selection</title>
<style>
body {
margin: 0;
}
.sb-title {
@hhkaos
hhkaos / get-playlist-ids-titles.js
Created October 20, 2021 15:40
Get titles and IDs from a YouTube
// Script to get video titles and links from a YT playlist
// https://www.youtube.com/playlist?list=PLAYLIST_ID
data = []
function youtube_parser(url){
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
var match = url.match(regExp);
return (match&&match[7].length==11)? match[7] : false;
}
document.querySelectorAll("a#video-title").forEach((el,i) => {
let videoId = youtube_parser(el.href)
@hhkaos
hhkaos / script.md
Last active August 22, 2021 16:53
Geospatial data script
@hhkaos
hhkaos / script.md
Last active May 1, 2024 17:28
From Zero to Newbie with ArcGIS API for JS and TypeScript

From zero to newbie with ArcGIS API for JS and TS.

Hello TypeScript demo

Initialize a typescript project:

npm init -y
npm i typescript --save-dev
@hhkaos
hhkaos / countries.geojson
Created July 8, 2021 18:35
countries.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hhkaos
hhkaos / README.md
Last active July 6, 2021 06:16
Web developers talks in the Esri Developer Summit 2021

Topics:

  • ArcGIS API for JavaScript
  • Esri's Design System / Calcite Design System
  • Extending Survey123 (Survey123 Web App JS API)

ArcGIS API for JavaScript

Find all talks on this Youtube playlist

@hhkaos
hhkaos / DJI_0063.GPX
Created May 12, 2021 09:07
DJI_0063.GPX
<gpx 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" version="1.1" creator="dji-srt-viewer"><metadata/><trk><name>DJI_0063</name><desc>source=dji-srt-parser
name=DJI_0063
FRAMECNT=1
DIFFTIME=33
ISO=100
SHUTTER=1000
FNUM=2.8
EV=-0.3
CT=5037
FOCAL_LEN=280
@hhkaos
hhkaos / string-similarity
Created April 7, 2021 05:06
Check if two strings are similar using string-similary
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
http-equiv="X-UA-Compatible"
content="IE=edge"
>
<meta
require([
...
],
function(
...
){
on(dojo.byId("pintaYQuery"), "click", function (){
tb = new Draw(map);
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
YEAR;NATIONALITY;AMOUNT;;
2010;ALEMANIA;1;;
2010;ARGELIA;11;;
2010;ARGENTINA;29;;
2010;BOLIVIA;144;;
2010;BRASIL;23;;
2010;BURKINA FASO;2;;
2010;CHILE;16;;
2010;CHINA;5;;
2010;COLOMBIA;237;;