Skip to content

Instantly share code, notes, and snippets.

View eggplants's full-sized avatar
🏠
Working from home

haruna eggplants

🏠
Working from home
View GitHub Profile
@eggplants
eggplants / awesome-2022-GB27001.md
Last active February 17, 2023 14:02
list of minis implementation
@eggplants
eggplants / nanorc_repos.md
Last active December 11, 2022 17:23
List of online `*.nanorc`-hosting repositories -- `*.nanorc` is a syntax-highlight configuration file for GNU Nano Editor

Online *.nanorc-hosting repositories

Created: 2022-12-12

sequenceDiagram
    autonumber
    actor 男女
    participant suzume as スズメ
    participant kounotori as コウノトリ
    男女->>男女: セックス
    suzume->>男女: セックス確認
    suzume->>kounotori: 連絡
 kounotori->>kounotori: セックス
@eggplants
eggplants / jgquery.sh
Last active July 13, 2022 22:09
常用漢字で、新字体の画数 < 異字体の画数のものを抽出 (元: https://gist.github.com/mandel59/8a7cd6cca228723e248d5fccbd41e69a )
#!/usr/bin/env bash
if ! command -v awk git grep sed wget &> /dev/null; then
echo "install: awk, git, grep, sed, wget"
exit 1
fi
[ -f joyo2010.txt ] || wget https://raw.githubusercontent.com/cjkvi/cjkvi-tables/master/joyo2010.txt
[ -f ucs-strokes.txt ] || wget https://raw.githubusercontent.com/cjkvi/cjkvi-ids/master/ucs-strokes.txt
@eggplants
eggplants / learnNim.ja.nim
Last active July 3, 2022 12:31
Learn Nim in 5 minutes ( https://learnxinyminutes.com/docs/nim , accessed-at: 2022-06-26) の日本語訳
# 一行だけのコメントは `#` から始まります。
#[
これは複数行のコメントです。
Nimでは、複数行のコメントはネスト可能で、#[ に始まり
... ]# に終わります。
]#
discard """
これでも複数行のコメントとして機能します。
⢀⣀⣀⣀⣈⣿⣀⣀⠀⠀⠀⠀⠀⢀⣴⡿⠂⠀⠀⢶⠶⠶⢶⣶⠆
⠈⠉⠉⣩⡿⣿⠉⠉⠀⢀⣠⣤⡾⣿⠁⠀⠀⠀⠀⠀⠀⢀⣾⠏
⢀⣠⣾⠛⠀⣿⠀⠀⠀⠘⠋⠁⠀⣿⠀⠀⠀⠀⠀⢀⣴⡿⠻⢷⣄
⠈⠋⠀⠀⠀⠿⠀⠀⠀⠀⠀⠀⠀⠿⠀⠀⠀⠀⠸⠟⠁⠀⠀⠈⠻⠃
    ⣀⡤⠴⠔⠒⠚⠚⠚⠚⠚⠚⠒⠴⢄⡀
 ⢀⡴⠊⠁  ⠀⠀⠀⠀⠀⠀⠀⣀⣀ ⡀⠙⢦⡀
⣠⠋⠀ ⠀⠀ ⠀⠀⠀⠀⠀⣠⠞⠁⠁⠉⠙⢢⡀⠙⣄
⢰⠃⣰⠚⠉⠉⠉⠓⢦⡀⠀⠀⢰⠃⠀⠀⠀⠀⠀⠀⢹⠀⠈⢆
⢸⠀⡇⠀⠀⠀⠀⠀⠀⠙⣆⠀⠸⡄⠀⠀⠈⠀⠀⠀⠨⡇⠀⠘⣇⠀
⠘⡆⡇⠀⠀⠀⠈⠀⠀⠀⢸⠀⠀⠙⠦⣀⣀⢀⣀⣀⣨⠃⠀⠀⠸⡄
@eggplants
eggplants / dedent.bash
Created June 25, 2022 19:24
De-indent in Bash like Python's textwrap.dedent
#!/usr/bin/env bash
function dedent() {
local src min
src="$(expand -t 2 -)" # 1 tab = 2 spaces
if [ -z "$src" ]; then
echo "dedent: input is empty." >&2
return 1
fi
min="$(
// ==UserScript==
// @name Twitch Screen Comment Scroller
// @namespace knoa.jp
// @description Twitch のコメントをニコニコ風にスクロールさせます。
// @include https://www.twitch.tv/*
// @version 0.2.1
// @grant none
// ==/UserScript==
(function(){
@eggplants
eggplants / jp_package_tracking.md
Last active June 4, 2022 07:14
日本の宅配会社 追跡をWebでやる メモ

日本の小包追跡をWebからやる方法まとめ

TIPS

  • 多くは返却されるhtmlをパースする必要がありそう
  • テストのためそれぞれの会社の有効な追跡番号を得たいが困難
    • 実際に使ってみるか?

リスト