Skip to content

Instantly share code, notes, and snippets.

tap "homebrew/bundle"
tap "homebrew/services"
tap "iandol/adobe-fonts"
tap "mtgto/macskk"
brew "aspell"
brew "boost"
brew "glib"
brew "cmigemo"
brew "eigen"
brew "openssl@3"
@nagae
nagae / HEIC2jpg.sh
Created April 10, 2025 02:05
同じフォルダにあるHEICファイルをサイズダウンしてjpg化
for file in *.HEIC; do magick "$file" -quality 70 "${file%.*}.jpg"; done
tap "d12frosted/emacs-plus"
tap "homebrew/bundle"
tap "homebrew/services"
tap "iandol/adobe-fonts"
tap "mtgto/macskk"
brew "openssl@3"
brew "aspell"
brew "icu4c@76"
brew "boost"
brew "glib"
@nagae
nagae / xls_checker.py
Created December 4, 2022 05:27
ヘリカル減速機サマリシートチェッカー
from math import *
import pandas as pd
def checker(xl_name):
# Excel
edf = pd.read_excel(xl_name, header=1, index_col="項目",dtype=str)["値"]
# 個別に与えられる仕様
P, n, i = edf.loc[["駆動機出力", "駆動機回転速度", "減速比"]].astype(float)
# 選択した値
za2 = int(edf.loc["大歯車波数"])
m_n, b_b, b_a, La = edf.loc[["モジュール", "bの歯幅", "aの歯幅", "中心距離"]].astype(float)
@nagae
nagae / JIS_B_1180.csv
Last active December 1, 2023 07:20
軸受(単列深溝玉軸受・開放型)
呼び ねじのピッチ P b b) b c) c 最大 c 最小 da 最大 ds 基準寸法=最大 ds 最小 dw 最小 e 最小 f 最大 k 基準寸法 k 最大 k 最小 kw 最小 r 最小 s 基準寸法=最大 s 最小
M1.6 0.35 9.0 15.0 0.25 0.1 2.0 1.6 1.46 2.27 3.41 0.6 1.1 1.225 0.975 0.68 0.1 3.2 3.02
M2 0.4 10.0 16.0 0.25 0.1 2.6 2.0 1.86 3.07 4.32 0.8 1.4 1.525 1.275 0.89 0.1 4.0 3.82
M2.5 0.45 11.0 17.0 0.25 0.1 3.1 2.5 2.36 4.07 5.45 1.0 1.7 1.825 1.575 1.1 0.1 5.0 4.82
M3 0.5 12.0 18.0 0.4 0.15 3.6 3.0 2.86 4.57 6.01 1.0 2.0 2.125 1.875 1.31 0.1 5.5 5.32
M4 0.7 14.0 20.0 0.4 0.15 4.7 4.0 3.82 5.88 7.66 1.2 2.8 2.925 2.675 1.87 0.2 7.0 6.78
M5 0.8 16.0 22.0 0.5 0.15 5.7 5.0 4.82 6.88 8.79 1.2 3.5 3.65 3.35 2.35 0.2 8.0 7.78
M6 1.0 18.0 24.0 0.5 0.15 6.8 6.0 5.82 8.88 11.05 1.4 4.0 4.15 3.85 2.7 0.25 10.0 9.78
M8 1.25 22.0 28.0 0.6 0.15 9.2 8.0 7.78 11.63 14.38 2.0 5.3 5.45 5.15 3.61 0.4 13.0 12.73
M10 1.5 26.0 32.0 0.6 0.15 11.2 10.0 9.78 14.63 17.77 2.0 6.4 6.58 6.22 4.35 0.4 16.0 15.73
@nagae
nagae / JIS-B1180.csv
Last active November 1, 2021 07:30
設計および製図II JIS規格
ねじの呼びd ねじ部ピッチP
M8 1.25
M10 1.5
M12 1.75
M16 2
M20 2.5
M24 3
"set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" 導入したいプラグインを以下に列挙
" Plugin '[Github Author]/[Github repo]' の形式で記入
Plugin 'airblade/vim-gitgutter'
name: base
channels:
- defaults
dependencies:
- _ipyw_jlab_nb_ext_conf=0.1.0=py37_0
- alabaster=0.7.12=py37_0
- anaconda=2020.02=py37_0
- anaconda-client=1.7.2=py37_0
- anaconda-navigator=1.9.12=py37_0
- anaconda-project=0.8.4=py_0
{
"BTTPresetCreatorNotes" : "",
"BTTPresetInfoURL" : "",
"BTTPresetName" : "nagae_btt_setting",
"BTTPresetColor" : "183.304030, 225.420000, 92.422200, 255.000000",
"BTTGeneralSettings" : {
"BTTPathSampleSize" : 100,
"BTTCMOnTop" : true,
"BTTForceForceClickPressure2F" : 700,
"BSTLeftHalfBlock" : true,
@nagae
nagae / Brewfile
Last active October 9, 2022 05:39
Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "iandol/adobe-fonts"
brew "aspell"
brew "boost"
brew "glib"