packer
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim
packer
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim
~/.tmux.conf
# prefix keyの変更 set -g prefix C-a unbind C-b # paneの選択をvim様に bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R
Use rolling-ball algorithm for estimating background intensity
tab
キーで入力候補の表示Ctrl
+Space
で補完候補の一覧Get-Help
に続けて対象のCmdletを引数に入力Get-Alias
でエイリアスを一覧# 空ファイルを作成 "" > item.txt # Cmdletを利用 New-Item -Path item.txt
機能 | ショートカット | comment |
---|---|---|
<- の入力 |
Opt + '-' | Linux/Winは"Alt + '-'" |
help(log) ?(log)
関数の名前を覚えていない時に使う。
help.serch("cross tabulate") ??"cross_tabulate"
ヘルプファイルに含まれる全てのサンプルを実行できる機能。
# 例:logのサンプルを実行 example(log)
設計文書。
最低限書かれること。 - 解決したい課題とその背景 - 実装することになる予定の機能 - 実装方針
仕様書。利用者にとって必要。自動生成できるツールがあるのが普通。
プログラムのマニュアル。網羅性よりは利用者が使うであろう機能を中心に実行例をわかりやすく書くことが大事。
開発者のメモ。処理が複雑になった時など、他の人や未来の自分が理解しやすい形で解説する。このようなメモ類も大事な技術文書。
shell:startup
と入力してOKPC起動時に自動で好きなファイルが開く裏技-Windows10 | リリアのパソコン学習記
PCを立ち上げるのと同時にOutlookを自動的に起動させる方法|はじめてのOutlookコラム|NECフィールディング
GridSpec
の使い方複数のグラフを並べる。グラフの大きさを変更できるので、大小のグラフを並べるのに便利。
import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec def annotate_axes(fig): for i, ax in enumerate(fig.axes): ax.text(0.5, 0.5, "ax%d" % (i+1), va="center", ha="center") ax.tick_params(labelbottom=False, labelleft=False) fig = plt.figure() fig.suptitle("Controlling subplot sizes with width_ratios and height_ratios") gs = GridSpec(2, 2, width_ratios=[1, 2], height_ratios=[4, 1]) ax1 = fig.add_subplot(gs[0]) ax2 = fig.add_subplot(gs[1]) ax3 = fig.add_subplot(gs[2]) ax4 = fig.add_subplot(gs[3]) annotate_axes(fig)
import matplotlib.pyplot as plt def annotate_axes(fig): for i, ax in enumerate(fig.axes): ax.text(0.5, 0.5, "ax%d" % (i+1), va="center", ha="center") ax.tick_params(labelbottom=False, labelleft=False) fig = plt.figure() ax1 = plt.subplot2grid((3, 3), (0, 0), colspan=3) ax2 = plt.subplot2grid((3, 3), (1, 0), colspan=2) ax3 = plt.subplot2grid((3, 3), (1, 2), rowspan=2) ax4 = plt.subplot2grid((3, 3), (2, 0)) ax5 = plt.subplot2grid((3, 3), (2, 1)) annotate_axes(fig) plt.show()