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 / arcgis-developer-guide-snap-to-roads.markdown
Created July 2, 2025 09:20
ArcGIS Developer Guide: Snap to roads
@hhkaos
hhkaos / arcgis-developer-guide-snap-to-roads-using-travel-mode.markdown
Created July 2, 2025 09:20
ArcGIS Developer Guide: Snap to roads using travel mode.
@hhkaos
hhkaos / arcgis-developer-guide-snap-gpx-track-points-to-roads.markdown
Created July 2, 2025 09:20
ArcGIS Developer Guide: Snap GPX track points to roads
@hhkaos
hhkaos / arcgis-developer-guide-snap-to-roads.markdown
Created July 2, 2025 09:20
ArcGIS Developer Guide: Snap to roads
@hhkaos
hhkaos / arcgis-developer-guide-find-the-speed-limit-of-the-closest-road.markdown
Created July 2, 2025 09:19
ArcGIS Developer Guide: Find the speed limit of the closest road
@hhkaos
hhkaos / print-service-example.md
Last active February 16, 2025 15:15
print-service-example

Service endpoint: https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute

Parameters:

  • format: PNG32
  • Layout_Template: MAP_ONLY
  • Web_Map_as_JSON
{
    "mapOptions": {
@hhkaos
hhkaos / google-app-script.js
Created January 30, 2025 08:53
Automatically update the last update date of a row in a Google Spreadsheet
function onEdit(edit) {
var row = edit.range.getRow()
var timestampTimeZone = "GMT+1"
var timestampFormat = "dd/MM/yyyy"
if( row >=2 ){
var timestamp = Utilities.formatDate(
new Date(),
timestampTimeZone,
timestampFormat)
SpreadsheetApp
@hhkaos
hhkaos / gist:419d7afe1917066ba4dedcb7c948b45c
Last active September 26, 2024 16:38
Embed video in jupyter
from IPython.display import HTML
HTML("""<style>.video-container{display:grid;justify-items:center;align-items:center;position:relative;width:100%;height:100%;min-height:400px;overflow:hidden}.video-container iframe{position:absolute;z-index:1;top:50%;left:50%;min-width:100%;min-height:100%;transform:translate(-50%,-50%)}</style><div class="video-container"><iframe id="kmsembed-1_61k6sy6f" width="608" height="402" src="https://mediaspace.esri.com/embed/secure/iframe/entryId/1_61k6sy6f/uiConfId/49806163/st/0" class="kmsembed" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay *; fullscreen *; encrypted-media *" referrerpolicy="no-referrer-when-downgrade" sandbox="allow-downloads allow-forms allow-same-origin allow-scripts allow-top-navigation allow-pointer-lock allow-popups allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation" frameborder="0" title="Road crack prediction"></iframe></div>""")
@hhkaos
hhkaos / index.html
Created August 13, 2024 13:11
Leaflet Legend
<div id="mapid"></div>
<!--http://leafletjs.com/examples/choropleth/-->