Skip to content

Instantly share code, notes, and snippets.

View Shinichi-Ohki's full-sized avatar

Shinichi Ohki Shinichi-Ohki

  • Switch Science / 144Lab
  • Japan
View GitHub Profile
@Shinichi-Ohki
Shinichi-Ohki / enlarge_docsm5stack.styl
Last active February 15, 2025 06:41
docs.m5stack.comの文字が小さすぎるとお嘆きのあなたに For those of you who lament that the text on docs.m5stack.com is too small
/* ==UserStyle==
@name docs.m5stack.com enlarge font size
@namespace github.com/openstyles/stylus
@version 1.0.0
@description docs.m5stack.comの文字が小さすぎるとお嘆きのあなたに
For those of you who lament that the text on docs.m5stack.com is too small
@author Shinichi Ohki (@ohki)
==/UserStyle== */
@-moz-document url-prefix("http://docs.m5stack.com/"), url-prefix("https://docs.m5stack.switch-science.com/") {
.markdown,
@Shinichi-Ohki
Shinichi-Ohki / all_human.svg
Created March 25, 2025 14:56
オールヒューマンマーク by GOROman vectored by Ohki
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shinichi-Ohki
Shinichi-Ohki / Readme.md
Last active March 26, 2025 12:19
逆順駅名を探せ

逆順駅名を探せ

「田町」「町田」のように、逆にしても成立する日本の駅名を探します。

  1. 国土数値情報ダウンロードサイト国土数値情報 鉄道データから最新のデータ(現時点ではN02-23_GML.zip)をダウンロードします。
  2. zipファイルを展開してできたフォルダの中のutf-8フォルダの中にjson-to-csv-script.rbとstation-anagram-finder.rbをコピーします。
  3. ruby json-to-csv-script.rb N02-23_Station.geojson を実行します。geojsonファイルの名前は適宜変更してください。
  4. station-anagram-finder.rb を実行します
  5. 逆順駅名のセットとアナグラム駅名のセットが出力されます
#!/usr/bin/env python3
# This script is a modified version of the one published at https://zenn.dev/wmoto_ai/articles/58e6bcf58d6032
# このスクリプトは https://zenn.dev/wmoto_ai/articles/58e6bcf58d6032 で公開されたものを変更したものです
import sys
import os
import warnings
import logging
import re
@Shinichi-Ohki
Shinichi-Ohki / fullwidth_test_page.html
Last active July 23, 2025 07:46
ページ内の全角英数字・記号を半角に自動変換
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>全角英数字テストページ</title>
<style>
body {
font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
max-width: 800px;
@Shinichi-Ohki
Shinichi-Ohki / gist:4955a79643fbfd0f883db3062b5a0df9
Created September 11, 2025 17:20
ページ内の元号を西暦に置き換えるtampermonkey用スクリプト
// ==UserScript==
// @name 元号を西暦に置き換える
// @namespace http://tampermonkey.net/
// @version 1.0
// @description ページ内の元号を西暦に置き換えます
// @author Shinichi Ohki
// @match *://*/*
// @grant none
// ==/UserScript==
(function () {