Skip to content

Instantly share code, notes, and snippets.

View deevroman's full-sized avatar

Roman Deev deevroman

View GitHub Profile
{
"0": {
"height": 30,
"pixelRatio": 1,
"width": 30,
"x": 0,
"y": 0
},
"135": {
"height": 30,
{
"version": 8,
"name": "OSRM MVT Debug (minimal)",
"sources": {
"osrm": {
"type": "vector",
"tiles": [
"https://router.project-osrm.org/tile/v1/car/tile({x},{y},{z}).mvt"
],
"minzoom": 12,
---
style:
layers:
- type: heatmap
paint:
heatmap-opacity: 0.5
heatmap-intensity: 1
heatmap-radius: 2
extends: https://styles.trailsta.sh/protomaps-black.json
---
@deevroman
deevroman / overpass-bookmarklets.md
Created September 2, 2025 21:50
Всякие букмаклеты для оверпаса и OSM

Букмарклеты можно установить, создав закладку и вставив в URL нужный код.

Overpass Turbo -> Google Street View

javascript:(() => {
  const m = document.querySelector('a[href^="geo:"]')?.href?.match(/([0-9.-]+),([0-9.-]+)/);
  let lat, lon;
  if (m) {
    [, lat, lon] = m;
 } else {
@deevroman
deevroman / perfomance.js
Last active May 4, 2025 00:16
perfomance.mark() for .user.js
performance.mark("SCRIPT_STARTED");
@deevroman
deevroman / email-query.txt
Last active April 18, 2025 22:39
show emails via Overpass Ultra
---
style:
layers:
- type: circle
paint:
circle-radius: 3
circle-color: green
filter:
- any
- [ ==, [ slice, [ get, 'contact:email' ], -9 ], 'gmail.com' ]
@deevroman
deevroman / query.txt
Last active April 8, 2025 00:34
datacenter map for Overpass Ultra
---
style:
layers:
- type: symbol
icon-overlap: always
icon-size: 0.5
icon-image:
- image
- 'emoji:robot_face'
---
@deevroman
deevroman / snow-animation.js
Last active April 3, 2025 21:58
snow-animation
// This code distributed under MIT license
// Author: https://github.com/DevBubba/Bookmarklets
// Code was deminified and used in https://github.com/deevroman/better-osm-org
function runSnowAnimation() {
function i() {
this.D = function () {
const t = h.atan(this.i / this.d);
l.save();
l.translate(this.b, this.a);
l.rotate(-t);
@deevroman
deevroman / jump-to-github.js
Last active April 4, 2025 16:18
Bookmarklet to go to the repository of github.io pages. Select the code and drag it to the bookmarks bar. // Букмарклет для перехода в репозиторий github.io страниц. Выделите код и перетащите его на панель закладок.
javascript:(() => {const [,user,repo] = location.href.match(/https:\/\/(.+)\.github\.io\/(.*?)(\/|$)/); window.open(`https://github.com/${user}/${repo}`, "_blank");})()
@deevroman
deevroman / key.user.js
Created March 1, 2025 12:06
Key tester
// ==UserScript==
// @name Key tester
// @grant GM_info
// @match https://www.openstreetmap.org/*
// @run-at document-end
// ==/UserScript==
(() => {
document.addEventListener('keydown', (e) => {
alert(e.code);