Skip to content

Instantly share code, notes, and snippets.

View t-nissie's full-sized avatar

Takeshi Nishimatsu t-nissie

View GitHub Profile
@t-nissie
t-nissie / mercari.rb
Last active February 25, 2025 19:32
メルカリの暗号資産(ビットコイン、イーサリアム)の月間取引報告書CSVファイルから確定申告のために年間の損益計算用のCSVファイルを作るRuby スクリプト
#!/usr/bin/env ruby
# coding: utf-8
# 目的 (Purpose): メルカリで暗号資産取引をしている人の確定申告 (Japanese tax return)
# 使い方 (Usage): LANG=ja_JP.UTF-8 ruby mercari.rb report_2024?.csv report_20241?.csv
# 出力CSVファイル: btc_buy.csv, btc_sel.csv, eth_buy.csv, eth_sel.csv を開いて計算された値を国税庁の総平均法用002.xlsxにコピペ
# Author: Takeshi Nishimatsu
# Licence: GPLv3
# 完全無保証: 税務署に怒られてもしりません
# 参考:
# https://help.jp.mercari.com/guide/articles/1513/ メルカル ビットコイン取引 取引報告書・損益計算方法
@t-nissie
t-nissie / !3dp.md
Last active January 14, 2025 19:56
Memo: My 3D Printers

Memo on 3D Printers

I make some 3D Printers with 3D printers.

My 3D Printers

Kingroon KP3D Pro

  • Nozzle: 1.2 mm

Osiad Black

@t-nissie
t-nissie / !mrubybind.md
Last active February 23, 2025 04:40
C++のクラスやメソッドを半自動的にmrubyに変換(bind)してくれるmrubybindを調査
@t-nissie
t-nissie / !mruby.md
Last active January 27, 2025 09:41
mrubyをC言語のシミュレーションのプログラムに組み込んでDSLとして利用する

mrubyをC言語のシミュレーションのプログラムに組み込んでDSLとして利用する

シミュレーション、CAD、画像処理、ゲーム、エディタなどのアプリで Tcl, Scheme, Lua, Python, LISPなどが domain-specific language (DSL) として採用されていて、 パラメーターサーチ、 繰り返し処理、

@t-nissie
t-nissie / munimula-printer.cfg
Created October 17, 2024 21:30
CoreXY printer.cfg for EasyThreeD ET4000+ board
# CoreXY printer.cfg for EasyThreeD ET4000+ board
# * CoreXY
# * Sherpa Heavy like extruder
# I use ET4000+ main board for my CoreXY printer project.
# ET4000+ is MKS Robin Lite compatible.
# Motor ampere can be controlled via pwm pins: PB0 (xy), PA7(z) and PA6 (extruder).
# Original file is https://github.com/makerbase-mks/Klipper-for-MKS-Boards/blob/main/MKS%20Robin%20Lite%20V1.1/generic-mks-robin-lite-v1.cfg
# The firmware binary is also in the same GitHub directory.
@t-nissie
t-nissie / osiad_black_et4000v2_NEMA14_printer.cfg
Last active October 17, 2024 20:49
printer.cfg for ET4000 V2
# printer.cfg for EasyTheeD ET-4000 V2
# * CoreXY
# * Proximity sensor
# * Sherpa Micro with NEMA14 motor
##
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
@t-nissie
t-nissie / osiad_white_printer.cfg
Last active October 6, 2024 01:42
printer.cfg for ET4000+ and CoreXY
# CoreXY printer.cfg for EasyThreeD ET4000+ board
# I use ET4000+ main board for my CoreXY printer project.
# ET4000+ is MKS Robin Lite compatible.
# Motor ampere can be controlled via pwm pins: PB0, PA7 and PA6.
# Original file is https://github.com/makerbase-mks/Klipper-for-MKS-Boards/blob/main/MKS%20Robin%20Lite%20V1.1/generic-mks-robin-lite-v1.cfg
# The firmware binary is also in the same GitHub directory.
# To use this config, the firmware should be compiled for the
# STM32F103RCT6. When running "make menuconfig", enable "extra low-level
# configuration setup", select the 28KiB bootloader, and serial (on
@t-nissie
t-nissie / 00LinuxArduinoIDE.md
Last active April 14, 2024 21:15
Arduino IDE 2.3.2 on Linux

Arduino IDE 2.3.2 on Linux

This memo describes how to upload Arduino sketches to Arduino UNO R3 (Atmel ATMega328P) and R4 Minima (Runesas RA4M1) from Arduino IDE 2.3.2 on GNU/Linux.

Instalation

Download and unzip arduino-ide_2.3.2_Linux_64bit.zip.

@t-nissie
t-nissie / 00USBtiny.md
Last active March 24, 2024 11:53
Write a program on AVR with USBtiny and a 6-pin cable from Linux

Write a program on AVR with USBtiny and a 6-pin cable from Linux

USBtiny is a writer/reader for in-system programming (ISP) or in-circuit serial programming (ICSP) for AVR. Although there is no drivers for Windows 10 nor 11, we can still use USBtiny with Linux. My USBtiny is HP-AUSB-ISP.

I could write some programs into some boards through a 6-pin cable/connector:

@t-nissie
t-nissie / 00KlipperArduinoUNO.md
Last active March 20, 2024 07:37
Arduino UNO に Klipper をインストールして multi-MCU する

Arduino UNO に Klipper をインストールして multi-MCU する

電源電圧の違いなどでKlipperな3Dプリンターを複数のメインボードでコントロールしたい場合がある。 メインボードの1つとしてATmega328pなArduino UNOとCNC Shieldを使用する方法のメモ。 2024年3月現在Ubuntu 22.04 LTSやDebian 12 Bookwormに入っている avr-gcc 5.4.0を使うと遭遇するエラーの回避方法を書いた。 完全無保証

この文章のオリジナルは https://gist.github.com/t-nissie/81bc471cd543e92d5cd1c3d36474c8b1 にある。