Skip to content

Instantly share code, notes, and snippets.

@lum1narie
lum1narie / dodosuko.nim
Last active August 3, 2022 12:37
ドドスコテスト KMP法
import std/random
import std/tables
import std/sets
import sequtils
type Dodosuko = enum
Dodo = "ドド"
Suko = "スコ"
DSNil = ""
@lum1narie
lum1narie / ref_md.awk
Created March 27, 2021 21:59
脚注機能非対応のmarkdownで脚注を機能させるための変換スクリプト
$0 ~ /^\[\^[0-9]+\]: / {
n = gensub(/^\[\^([0-9]+)\]: .*$/, "\\1", "g", $0)
$0 = gensub(/^\[\^([0-9]+)\]: /, "<span id=foot\\1>\\1</span>: ", "g", $0)
$0 = $0 "[↩](#body" n ")" "\r\n"
}
$0 ~ /\[\^[0-9]+\]/ {
$0 = gensub(/\[\^([0-9]+)\]/, "<span id=body\\1><sup>[\\1](#foot\\1)</sup></span>", "g", $0)
}
@lum1narie
lum1narie / gen_base_comment_yaml.py
Last active October 18, 2020 02:15
k1low/tblsが生成したmarkdownからテーブル/カラムの一覧を取得し、.tbls.yamlのcommentの雛形を作るスクリプト
import glob
import os.path
import sys
from collections import OrderedDict
"""
k1low/tblsが生成したmarkdownファイルから、
.tbls.yamlのcommentの雛形を出力する
Parameters
@lum1narie
lum1narie / spooky-orange_traQ.json
Last active November 27, 2021 06:43
traQ カラーテーマ Spooky Orange
{
"accent": {
"primary": "#7613cc",
"notification": "#e066ff",
"online": "#53ff64",
"error": "#e0211d",
"focus": "#ea99ff"
},
"background": {
"primary": "#262626",
@lum1narie
lum1narie / ryza_bottle.csv
Last active March 27, 2021 22:00
ライザ_採取地
パスワード 取得1 取得2 異界 メイン Lv. 備考
V4CE ヴァッサ麦 灯篭ホタル F 2 11
VHPR エメラルドグラス 砂石 F 1 17
JN1N 琥珀の欠片 魔導書の切れ端 F 2 20
RQNE 焔の黒砂 オオカブト F 1 17
Y29T アブラ木の実 魔獣の毒袋 F 2 12
0OP2 灯篭ホタル 翼竜の翼 F 2 16
X3EG 魔導書の切れ端 竜肉 F 1 20
C7VQ 七色葡萄 ヘビの抜け殻 F 1 13
7S1L フレスベリー F 1 9