ChatGPTと一緒にコードを書きます。本日の題材はこちら!
市外局番の一覧の「番号区画」の文字列を使いやすく変換します。
市町村名を列挙した「北海道恵庭市、千歳市」のようなテキストを扱いやすくします。
結果は、「都道府県、政令指定都市または郡、市区町村」の3要素の配列の配列にしたいです。
// ==UserScript== | |
// @name New script mixch.tv | |
// @namespace Violentmonkey Scripts | |
// @match https://mixch.tv/u/*/live | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 2024/3/16 15:05:40 | |
// ==/UserScript== |
ChatGPTと一緒にコードを書きます。本日の題材はこちら!
市外局番の一覧の「番号区画」の文字列を使いやすく変換します。
市町村名を列挙した「北海道恵庭市、千歳市」のようなテキストを扱いやすくします。
結果は、「都道府県、政令指定都市または郡、市区町村」の3要素の配列の配列にしたいです。
## wikipedia | |
https://en.wikipedia.org/wiki/Myanmar_units_of_measurement | |
長さ、質量、体積が紹介 | |
## fb投稿1 | |
https://www.facebook.com/1884652785111851/photos/a.1884664575110672/1968740863369709/?type=3 | |
この辺りはヤードポンド法の長さ インチ、フィート、ヤード、チェーン、ハロン、マイル | |
``` |
import hid | |
import time | |
h = hid.device() | |
keyboard_path = [ a['path'] for a in hid.enumerate(0x0483, 0x512A) if a['interface_number']==1][0] | |
h.open_path(keyboard_path) | |
# https://github.com/cho45/niz-tools-ruby/blob/71075ee0ef2a1e609dd40c4610b433e7afcf8aa1/niz.rb#L296 | |
HWCODE = { | |
0 : '', # unmapped value |
#!/bin/bash | |
TM=$(mktemp -d) | |
git log --pretty=format:"%cd" --date=format:'%Y/%m/%d %H:%M:%S' $1 > $TM/gittime | |
git log --pretty=format:"%H" $1 | xargs -n 1 -I {} git ls-tree -r -l {} $1 |awk '{print $4}' > $TM/gitlstree | |
paste $TM/gittime $TM/gitlstree |
import librosa | |
import librosa.display | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy | |
# def librosa.lpc(y, order): return a | |
def lpc_formant(a, fs): | |
poles = np.roots(a) |
l; ; | |
x; ; | |
l: : | |
x: : | |
- ー | |
: ー | |
la ぁ | |
a あ | |
li ぃ | |
i い |
気象庁 http://www.jma.go.jp/jp/typh/ | |
24時間予報 1日8回 +50~70 | |
72時間予報 1日4回 3,9,15,21 +50~70 | |
5日進路予報 1日4回 3,9,15,21 +90~110 | |
日本列島に大きな影響を及ぼす台風が接近している時 | |
1時間ごとに現在の中心位置 | |
観測時刻の1時間後、さらに24時間先までの3時間刻みの中心位置 | |
暴風域確率表示 http://www.jma.go.jp/jp/typh/typh_prob.html | |
import { OutputJSON } from './dataInterface' | |
const fs = require('fs') | |
const iconv = require('iconv-lite') | |
const path = require('path') | |
if (process.argv.length - 2 !== 3) { | |
console.warn('The number of arguments is less or much.\n\nnode marsToTSV.js mars_sd.dat mars_nn.dat outputDir') | |
process.exit(100) | |
} | |
const marsSdDat = process.argv[2] |