On going!
$ sudo apt install mpich libmpich-dev
$ sudo apt install mpich libxc-dev
$ sudo apt install mpich libfftw3-dev
$ sudo apt install python3.12-venv
$ tar xf qe-7.4.1-ReleasePack.tar.gz
| /* WebAssembly/WASM/Emscripten Arguments.c can get three arguments from URL parameters */ | |
| /* For example: http://localhost:6931/arguments.html?foo=Hello%2c&bar=Takeshi%20Nishimatsu&baz=Everything%20is%20OK%3f */ | |
| /* See also JavaScript between </script><script> in template.html. */ | |
| /* Import canvas.c and canvas.h from https://github.com/alextyner/wasm-canvas */ | |
| #include "canvas.h" | |
| int main(int argc, char** argv) { | |
| HTMLCanvasElement *canvas = createCanvas("myCanvas"); | |
| canvas->setWidth( canvas, 600); | |
| canvas->setHeight(canvas, 400); | |
| CanvasRenderingContext2D *ctx = canvas->getContext(canvas, "2d"); |
| // Animation.c | |
| // wasm-canvas: https://github.com/alextyner/wasm-canvas | |
| // How to compile and run locally (as written in Makefile): | |
| // ln -s SOMEWHERE/wasm-canvas/src/canvas.c . | |
| // ln -s SOMEWHERE/wasm-canvas/src/canvas.h . | |
| // emcc -c -o animation.o animation.c | |
| // emcc -c -o canvas.o canvas.c | |
| // emcc --shell-file template.html animation.o canvas.o -o index.html | |
| // emrun index.html | |
| //// |
| // ArcWASM.c draws a rectangle and an arc with wasm-canvas as same as original.html | |
| // wasm-canvas: https://github.com/alextyner/wasm-canvas | |
| // How to compile and run locally (as written in Makefile): | |
| // ln -s SOMEWHERE/wasm-canvas/src/canvas.c . | |
| // ln -s SOMEWHERE/wasm-canvas/src/canvas.h . | |
| // emcc -c -o ArcWASM.o ArcWASM.c | |
| // emcc -c -o canvas.o canvas.c | |
| // emcc --shell-file template.html ArcWASM.o canvas.o -o index.html | |
| // emrun index.html | |
| //// |
メルカリの暗号資産(ビットコインBTC、イーサリアムETH、XRP)の月間取引報告書CSVファイルから 確定申告のために年間の損益計算をするためのRubyスクリプトmercari.rbと それをCrystal言語に移植したmercari.cr
ライセンスは GPLv3 で、完全無保証です。税務署に怒られてもしりません。
参考文献: https://help.jp.mercari.com/guide/articles/1513/ メルカル ビットコイン取引 取引報告書・損益計算方法
先日、無謀にも mrubyファミリ (組み込み向け軽量Ruby) Advent Calendar 2024 向けに mrubyをC言語のシミュレーションのプログラムに組み込んでDSLとして利用する という記事を書いてしまいました。 このgist文章はそのC++言語版かもしれません。
C++のクラスは小難しい構造体にすぎないので、
Munimula CoreXY 3D Printer
| # printer.cfg for EasyTheeD ET-4000 V2 | |
| # * CoreXY | |
| # * Proximity sensor | |
| # * Sherpa Micro with NEMA14 motor | |
| # * multi-printers under one Klipper host | |
| # | |
| # I wrote Klipper firmware into ET-4000 V2 with ATmega1284P through | |
| # my Linux PC, a "USB Tiny ISP" and a 6-pin cable. | |
| # See https://gist.github.com/t-nissie/a9c81376cf0898c0ec0b453d5a385d33 | |
| ## |