This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import folium | |
m = folium.Map(location=[35.681, 139.767], zoom_start=15) | |
m.add_css_link( | |
"leaflet-dark", | |
"https://deton.github.io/folium_tripslayer/leaflet-dark.css" | |
) | |
m.save('dark.html') | |
# leaflet-dark.css: https://dev.to/deepakdevanand/leaflet-map-dark-theme-5ej0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

$ cat trips.json
[{"vendor":"car","path":[[139.8007914,35.5144044],[139.9108676,35.4396142]],"timestamps":[0,600]},{"vendor":"escooter","path":[[139.9108139,35.439529],[139.8008987,35.5140027]],"timestamps":[0,600]}]
$ curl https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/trips/trips-v7.json 2> /dev/null | jq -c 'map(select(.path[0][0] < -73.98 and .path[-1][0] < -73.98 and .path[0][0] > -74.02 and .path[-1][0] > -74.02 and .path[0][1] < 40.75 and .path[-1][1] < 40.75 and .path[0][1] > 40.70 and .path[-1][1] > 40.70))' | jq -c '.' > trips-v7_0.json
NewerOlder