Skip to content

Instantly share code, notes, and snippets.

View LeoDupont's full-sized avatar

Léo Dupont LeoDupont

View GitHub Profile
@LeoDupont
LeoDupont / maps-search-engine.js
Last active April 6, 2024 19:49
Google Maps custom search engine for Chromium browsers
// Registering this string as the URL for a new custom search engine in any Chromium-based browser
// will allow you to perform queries for places or for directions with one single custom search engine keyword.
//
// Usage:
// - Any query containing a slash ("/") will be interpreted as a search for directions between two places
// (e.g. "louvre/arc de triomphe").
// - Any other query will be interpreted as a regular Google Maps search
// (e.g. "louvre").
//
// Caveats:
@LeoDupont
LeoDupont / advanced-leader-hotkey.ahk
Last active November 15, 2020 13:14
Vim-like "Leader Key" implementation with Autohotkey
; To organize commands into "categories".
; With a little tooltip to help keeping track.
; === The Helper function ===
; - displays the tooltip
; - waits for the expected input
; - calls the "Menu function" if it exists (just a shortcut for menus which use a dedicated function)
; - or returns the input
;
; Parameters: