Skip to content

Instantly share code, notes, and snippets.

@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 October 5, 2024 03:51
Try some Maplibre dark styles.
dark_custom.png
@deton
deton / README.md
Last active April 14, 2024 03:09 — forked from kkdd/README.md
deck.gl trips-layer animation with moving icon: reading trips files dropped-onto

getting trips-json files

$ 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
@deton
deton / car.glb
Last active February 25, 2024 04:08
Material SymbolsのSVGに厚みを持たせて3D化(glb)。CesiumJSのCZMLオブジェクトとしての表示用
@deton
deton / gzip.html
Created October 31, 2023 13:00
gzip on browser
<html>
<head>
<title>gzip on browser</title>
</head>
<body>
<input type="file" id="fileElem" multiple />
<script>
const fileElem = document.getElementById("fileElem");
@deton
deton / 00README.md
Last active August 27, 2023 05:20
aspidaのapiディレクトリ構造とindex.tsをもとに、OpenAPI記述(JSON)を生成するための、簡易的なスクリプト

aspida2openapi

aspidaのapiディレクトリ構造とindex.tsをもとに、 OpenAPI記述(JSON)を生成するための、簡易的なスクリプトです。

ts-json-schema-generatorを使って、index.tsをJSON schemaに変換して、 OpenAPI記述を生成します。

生成物の以下の部分などを、手で変更して使う想定です。

  • ファイルアップロード・ダウンロード関係