Skip to content

Instantly share code, notes, and snippets.

@minop1205
minop1205 / conventional-commits.md
Last active February 7, 2024 04:56
コミットメッセージ規約
@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active May 24, 2024 22:34
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
{
"directory_name": "Hello",
"project_name": "defaultProject",
"_extensions": [
"kamidana.extensions.CookiecutterAdditionalModulesExtension"
],
"_additional_modules": [
"kamidana.additionals.naming"
]
}
@devlights
devlights / icecream_sample.py
Created March 27, 2018 05:40
[python] icecream ライブラリのサンプル (debug, print, ic, configureOutput)
"""
icecream ライブラリのサンプル
REFERENCES::
https://github.com/gruns/icecream
"""
import collections
import contextlib as ctx
import datetime
@ryotako
ryotako / man_argparse.md
Last active May 26, 2023 01:32
argparseの日本語訳(若干の意訳を含む)

argparse(1)

名称

argparse - argparse - fishのスクリプトや関数に渡されるオプションの解析

記述

このコマンドはfishのスクリプトや関数が,fishのビルトイン関数が引数を扱うのと100%同じ方法で引数を取り扱うのを簡単にします. ユーザは有効なオプションを定義する引数の組を渡し,リテラル--を続け,その後に解析される引数(リテラル--を含んでもよい)を渡します. これに関する詳細は以下の「使い方」の節で述べます.

@ryotako
ryotako / help-ja.fish
Last active November 29, 2021 08:22
るびきちさんの「全訳!fishシェル普及計画」を引くコマンド
function help-ja --description 'Show Japanese help for the fish shell'
 set -l topics (builtin -n) tutorial document-ja faq-ja design-document-ja
set -l home 'http://fish.rubikitch.com'
switch "$argv[1]"
case -h --h --he --hel --help
echo 'Usage: help-ja [TOPIC]'
case $topics
open "$home/$argv[1]"
case '*'