2021-01-01から1年間の記事一覧
Jupyter Lab で pandoc があると PDF 化できるので、そのインストール方法のメモ。 wget https://github.com/jgm/pandoc/releases/download/2.14.0.1/pandoc-2.14.0.1-1-amd64.deb sudo apt install ./pandoc-2.14.0.1-1-amd64.deb -y
原因 パスが通ってない。 パスにC:\Program Files\GNU Octave\Octave-6.2.0\mingw64\binを追加。 pip install octave_kernel # pip でカーネルをインストール python -m octave_kernel.check # パスがない場合にエラー python -m octave_kernel install --us…
Windows で Electron を立ち上げると、「縺」とかがたくさん出てきて文字化け… 解決法は、package.json のelectron . を chcp 65001 && electron . に変更すること。 "scripts": { "start": "chcp 65001 && electron ." } 無事、治ってくれた。
Windows で Electron を立ち上げると、「縺」とかがたくさん出てきて文字化け… 解決法は、package.json のelectron . を chcp 65001 && electron . に変更すること。 "scripts": { "start": "chcp 65001 && electron ." } 無事、治ってくれた。
256x256 の画像を 128x128 にするスクリプト例 環境構築不要。メモ帳に書いて PowerShell で実行するだけ。 using namespace System.Drawing function resize($src, $dst, $width, $height){ $img = [Bitmap]::new($src) $rImg = [Bitmap]::new($width, $hei…
dependencies: scidart: ^0.0.1-dev.5 import 'package:scidart/numdart.dart'; void main() { Array n = arange(stop:100); print(n); } // Array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18…
ノイズが乗っかったサンプリング周波数 100 Hz で 5 Hz のデーターに 7 Hz のローパスフィルターをかける。 import numpy as np import matplotlib.pyplot as plt from scipy import signal fs = 100 # サンプリング周波数 t = np.arange(1000) / fs # 10 秒…
ax.tick_params(left=False)
import numpy as np data = """ 1,2,3 4,5,6 7,8,9 """ np.array([[float(__) for __ in _.split(",")] for _ in data.split("\n")[1:-1]])