Skip to content

Instantly share code, notes, and snippets.

@mebiusbox
mebiusbox / .mypy.ini
Created September 6, 2024 06:48
mypy
[mypy]
warn_return_any = true ;`Any`型を返す関数やメソッドに警告します
warn_unused_configs = true ;使用されていないconfigオプションに警告します
warn_unreachable = true ;到達不能なコードに警告します
strict_optional = true ;Noneと他の型の混在を許容しないようにします
ignore_missing_imports = true ;型情報がないモジュールのインポートを無視します
show_error_context = true ;エラーメッセージのコンテキストを表示します
show_column_numbers = true ;エラーの発生した列番号を表示します
disallow_any_generics = true ;
@mebiusbox
mebiusbox / .gitignore
Last active September 15, 2024 07:34
python
# python generated files
__pycache__/
*.py[cod]
*.so
*$py.class
# distribution / packaging
build/
dist/
wheels/
@mebiusbox
mebiusbox / makefile.toml
Last active September 4, 2024 12:28
makers
[config]
skip_core_tasks = true
[tasks.default]
alias = "test"
[tasks.ps]
description = "powershell script example"
category = "Common"
script_runner = "powershell"
@mebiusbox
mebiusbox / .markdownlint.yaml
Created September 2, 2024 16:41
markdownlint
MD013: false # line-length
MD024: false # no-duplicate-heading
MD025: true # single-title/single-h1
MD041: false # first-line-heading/first-line-h1
MD033: false # no-inline-html
MD040: true # fenced-code-language
MD046: true # code-block-style
@mebiusbox
mebiusbox / README.md
Last active September 1, 2024 18:32
Passcard Generator

Passcard Generator

PowerShellでパスワード用のコード表(16x16)を生成します.

Usage

PS > New-Passcard [-Uppercase] [-Lowercase] [-Number] [-Symbol] [-NoSimilar] [-Separtor] [-Seed <int>]
@mebiusbox
mebiusbox / typos.toml
Last active September 1, 2024 07:22
typos
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
[files]
extend-exclude = [
"*.patch" # Automatically generated files that should not be manually modified.
]
[default]
extend-ignore-re = [
# spellchecker: disable-line, disable-next-line, disable, enable
# "(?Rm)^.*(#|//|/\\*)\\s*spellchecker:\\s*disable-line$",
line-length = 119
indent-width = 4
target-version = "py310"
extend-include = ["*.ipynb"]
exclude = [
".git",
".venv",
"venv",
"build",
"dist",
@mebiusbox
mebiusbox / README.md
Last active September 1, 2024 07:27
gistコマンドを自作してテンプレートファイルを管理する

Gistコマンドを自作してテンプレートファイルを管理する

※ここでの「テンプレートファイル」とはコンフィグファイルなど、各プロジェクトとよく使うファイルのことを指します.

目的 (Goal)

  • PowerShellを使って、Gistに登録しているファイルをクローンし、差分を表示したり、パッチを適用する機能を持つgistコマンドを実装する

動機 (Motivation)

@mebiusbox
mebiusbox / .prettierrc.yaml
Last active August 28, 2024 17:13
prettier
# 文字数の制限 (default: 80)
printWidth: 119
# 末尾のコロンを削除するかどうか. ["all", "es5", "none"]
trailingComma: "all"
# タブを使うかどうか (.editorconfig)
# useTabs: true
# タブサイズ (.editorconfig)
@mebiusbox
mebiusbox / .editorconfig
Last active September 8, 2024 09:09
editorconfig
# https://editorconfig.org/
root = true
[*]
charset = utf-8
indent_size = 4
indent_style = tab
tab_width = 4
end_of_line = crlf
insert_final_newline = true