Skip to content

Instantly share code, notes, and snippets.

View zbycz's full-sized avatar

Pavel Zbytovský zbycz

  • Prague, CZ
  • 09:19 (UTC +02:00)
View GitHub Profile
Tanto tempo fa, o forse venerdì scorso, viveva un orsetto che si chiama Winnie Pooh.
Viveva da solo nel bosco e si chiamava Novotný.
Questo vuol dire che il suo nome era scritto sopra la porta con lettere d’oro e lui abitava sotto.
Un giorno andò a fare una passeggiata.
Arrivò in una radura nel bosco.
C’era un grande albero e dalla cima si sentiva un forte ronzio.
Pooh si sedette sotto l’albero, mise la testa tra le zampe e pensò.
@zbycz
zbycz / yt.sh
Created December 5, 2025 19:23
#!/bin/bash
echo "Zadej URL videa z YouTube:"
read URL
# Kontrola základního formátu
if [[ ! "$URL" =~ ^https://www\.youtube\.com/watch\?v= ]]; then
echo "URL není ve tvaru https://www.youtube.com/watch?v=XYZ"
exit 1
fi
@zbycz
zbycz / chironico.osm.html
Created October 4, 2025 07:30
Create area relations for all the boulders
<script>
console.log("result");
function processx(xml) {
const parser = new DOMParser();
const doc = parser.parseFromString(xml, "application/xml");
const result = [];
["node", "way", "relation"].forEach(type => {
import fs from 'fs'
// [out:json][timeout:25];
// nwr["climbing"="route_bottom"];
// out geom;
const filename = '/Users/pavel/Library/Application Support/JetBrains/WebStorm2024.3/scratches/scratch_84.json'
const content = fs.readFileSync(filename, 'utf8');
const json = JSON.parse(content);
@zbycz
zbycz / .eslintrc.json
Created May 21, 2025 08:53
Eslint rule for checking if @emotion/styled filters out transient props.
{
"plugins": ["eslint-plugin-local-rules"],
"extends": ["plugin:local-rules/all"],
}
@zbycz
zbycz / cliffsLayers.ts
Last active May 9, 2025 14:07
For addition to Maptiler Outdoor style
import type { LayerSpecification } from '@maplibre/maplibre-gl-style-spec';
export const cliffsLayers: LayerSpecification[] = [
{
id: 'Cliffs base',
type: 'line',
source: 'maptiler_planet',
layout: {
'line-cap': 'butt',
'line-join': 'miter',
@zbycz
zbycz / mediawiki.ts
Created August 21, 2024 12:30
Mediawiki API client with file upload (TypeScript)
import fetch from 'isomorphic-unfetch';
import {
FORMAT,
getUploadBody,
cookieJar,
UploadParams,
WIKI_URL,
} from './utils';
import { readFile } from 'node:fs/promises';
2023-01-16 14:54:24,473 | prepare_gtfs | DEBUG | prepare_gtfs.py:85 | main | Stop Baterie,50.092346 14.369761 with ID U15Z51P not found in OSM
2023-01-16 14:54:24,475 | prepare_gtfs | DEBUG | prepare_gtfs.py:85 | main | Stop Baterie,50.092644 14.370036 with ID U15Z52P not found in OSM
2023-01-16 14:54:24,567 | prepare_gtfs | DEBUG | prepare_gtfs.py:98 | main | Found more stops with id U32Z1P,50.090168 14.435472
2023-01-16 14:54:24,568 | prepare_gtfs | DEBUG | prepare_gtfs.py:98 | main | Found more stops with id U32Z2P,50.090351 14.436262
2023-01-16 14:54:24,650 | prepare_gtfs | DEBUG | prepare_gtfs.py:85 | main | Stop Budějovická,50.044762 14.447591 with ID U50Z1 not found in OSM
2023-01-16 14:54:24,667 | prepare_gtfs | DEBUG | prepare_gtfs.py:85 | main | Stop Poliklinika Budějovická,50.044777 14.449234 with ID U50Z17P not found in OSM
2023-01-16 14:54:24,668 | pr
This file has been truncated, but you can view the full file.
{
"aerodrome_label": {
"extent": 4096,
"features": [
{
"geometry": {
"coordinates": [
862,
2832
],

Keybase proof

I hereby claim:

  • I am zbycz on github.
  • I am zbycz (https://keybase.io/zbycz) on keybase.
  • I have a public key ASBWYtBmAZ_HruUcWDXaj7Hq7W5Vm1b48Ixfiho5qLqfowo

To claim this, I am signing this object: