Skip to content

Instantly share code, notes, and snippets.

@deton
deton / gtfs2TripLayerGeoJson.html
Created March 30, 2025 10:33
Convert GTFS to GeoJSON for kepler.gl Trip Layer
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- modified from https://github.com/frogcat/gtfs-preview/ -->
<title>GTFS to GeoJSON for kepler.gl Trip Layer</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0" />
<script src="https://unpkg.com/[email protected]/dist/jszip.min.js"></script>
<script src="https://unpkg.com/[email protected]/papaparse.min.js"></script>
</head>
@deton
deton / gtfs2TimestampedGeoJson.ipynb
Last active April 13, 2025 09:07
Display GTFS stop_times.txt using gtfs_kit and kepler.gl Trip Layer, pydeck TripsLayer, or folium TimestampedGeoJson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deton
deton / folium_add_css_link_dark.py
Last active March 16, 2025 02:49
Some Leaflet dark styles by CSS filter
@deton
deton / demo.html
Last active January 5, 2025 12:00
OSMGraphPoints class to get random points on the road network obtained with https://github.com/deton/GraphFromOSM
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>GraphFromOSM and sample random points</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
@deton
deton / lynx-hiddenlink-arialabel.patch
Last active December 22, 2024 10:19
Lynx patch to try to use aria-label attribute instead of HIDDEN_LINK_MARKER in lynx.cfg if <a></a> is empty.
@deton
deton / lynx-textfragment.patch
Created November 4, 2024 11:41
Lynx patch to support scroll to text fragment #:~:text=
# lynx-textfragment.patch
Lynx patch to support scroll to text fragment #:~:text=
## Limitations
* Not support prefix, suffix, textEnd, multiple text fragments(&).
* Not support word boundary.
(for example,
https://blog.chromium.org/2019/12/chrome-80-content-indexing-es-modules.html#:~:text=text
matches `context` before `text`)
@deton
deton / 00README.md
Last active September 2, 2024 12:16
SDV (Synthetic Data Vault) trial using GBFS data
@deton
deton / lynx-mimecharset-over-xmlencoding.patch
Created July 21, 2024 01:46
Lynx patch to ignore xml encoding if charset is specified in Content-Type header
# Lynx patch to ignore xml encoding if charset is specified in Content-Type header
## Problem
Some sites (2chcopipe.com, digital-thread.com) use
incorrect <?xml encoding value.
Lynx displays garbled characters.
Content-Type: text/html; charset=euc-jp
...
<?xml version="1.0" encoding="UTF-8"?>
@deton
deton / network-shibuya.geojson
Last active June 23, 2024 06:30
Other sample files for CzmlFirstPersonPlayer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deton
deton / dark_custom.png
Last active March 16, 2025 02:53
Try some Maplibre dark styles.
dark_custom.png