Skip to content

Instantly share code, notes, and snippets.

@atu4403
atu4403 / BingAI_Results.md
Created September 28, 2023 04:34
生成AIによるmakefile作成実験

以下のようにMakefileを作成しました。ご確認ください。

PROJECT_NAME := $(shell grep -oP '(?<=name = ").*(?=")' pyproject.toml)
NEW_VERSION := $(shell rye version)

.PHONY: pre-release
pre-release:
	git checkout -b pre-release
	rye version --bump minor
@atu4403
atu4403 / mongouser.js
Created December 23, 2021 05:22
mongodbでuserを追加する方法
(function () {
db.createUser({
user: 'testuser2',
pwd: 'testpass2',
roles: [{role: 'readWrite', db: 'test_db2'}],
});
})();
@atu4403
atu4403 / python_itertools.ipynb
Created January 7, 2021 02:51
[python]itertoolsを使って多重ループをする方法
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@atu4403
atu4403 / README.md
Last active December 7, 2020 06:51
Karabiner-Elements 設定項目

hyper_plugin_atu4403

注意: CapsLock to Hyper/Escapeが有効になっていないと使用できませんので先に入れて下さい。

karabiner-elements-complex_modifications

Karabiner-Elementsの設定方法

  1. 右のDownload ZIPからダウンロード
  2. Karabiner-Elementsを開くと設定画面が出るのでMiscタブを開き、右下のOpen config folderを押す
@atu4403
atu4403 / paiza_lesson.py
Created November 30, 2020 06:17
paizaの問題回答用テンプレート(python, pytest, pytest_mock使用)
data = """7
box
photo
axis
dish
church
leaf
knife"""
def test_lesson(mocker):