Skip to content

Instantly share code, notes, and snippets.

View kashewnuts's full-sized avatar

Kashun YOSHIDA kashewnuts

View GitHub Profile
@kashewnuts
kashewnuts / keybindings.json
Last active June 21, 2023 12:22
vscodevim用にカスタマイズしたkeybindings
// 既定値を上書きするには、このファイル内にキー バインドを挿入します
[
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+n",
"command": "workbench.action.quickOpenSelectNext",
@kashewnuts
kashewnuts / vimrc
Created February 14, 2021 03:40
WSL2でopen-browser.vimを使うと画面が真っ黒になる件
set runtimepath^=~/.cache/plugged/open-browser.vim
let g:netrw_nogx = 1 " disable netrw's gx mapping.
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
@kashewnuts
kashewnuts / vim_make_test.log
Created November 3, 2019 06:36
vim make test log
kashew@ThinkPad:src (master)$
make test
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/json_test.o json_test.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr
@kashewnuts
kashewnuts / setup_bashrc_for_git.md
Last active January 1, 2019 17:04
BashでGitの補完やプロンプトへの情報表示をする

BashのGit補完カスタマイズ

  • git/contrib/completion - git/git より以下をホームディレクトリにダウンロード

    • git-completion.bash
    • git-prompt.sh
  • ホームディレクトリにある .bashrc に以下を記述。存在しない場合は新規で作成する。

# ~/.bashrc
@kashewnuts
kashewnuts / actionlist.vim
Created December 13, 2018 11:51 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@kashewnuts
kashewnuts / apt_install.log
Created October 28, 2018 04:02
Ubuntu18.04LTSでpython3-devとpython3-pipを入れるときの依存関係
vagrant@ubuntu-bionic:~$ sudo apt install python3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dh-python libexpat1-dev libpython3-dev libpython3-stdlib libpython3.6 libpython3.6-dev libpython3.6-minimal
libpython3.6-stdlib python3 python3-minimal python3-venv python3.6 python3.6-dev python3.6-minimal python3.6-venv
Suggested packages:
python3-doc python3-tk python3.6-doc binfmt-support
The following NEW packages will be installed:
@kashewnuts
kashewnuts / pyls_memo.md
Last active October 11, 2018 04:03
python-language-serverを試したとき補完が効かないモジュールがあるので記録を残す

前提とする環境

  • OS: macOS Sierra, Ubuntu18.04LTS Desktop
  • Python: 3.6.4(macOS 公式インストーラ), 3.6.6(Ubuntuデフォルト)
  • Vim: macvim-kaoirya, apt install vim-gnome して入ったもの
  • 仮想環境: あるなし関係なくモジュールの補完がうまくいかないものがある
    • なし→Python3.6が動く
    • venv
    • pipenv
@kashewnuts
kashewnuts / constraints.txt
Created October 6, 2018 07:08
MachineLearning用 Jupyter Notebook環境 requirements.txt
ipython==6.5.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.0
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.3
jupyter-console==5.2.0
jupyter-core==4.4.0
@kashewnuts
kashewnuts / vim-lsp_async-related_pyls.vimrc
Created October 3, 2018 03:18
Vim8でvim-lspとasyncomplete関連でpylsを使う(細かいオプションは省略)
@kashewnuts
kashewnuts / .vimrc
Created October 3, 2018 00:23
vim-lspを試そうとしたがomnifuncが設定されないのか動かない
let s:plug_dir = '~/.cache/plugged'
call plug#begin(s:plug_dir) " {{{
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
call plug#end() " }}}
" --- vim-lsp --- {{{
if executable('pyls')
" pip install python-language-server
autocmd User lsp_setup call lsp#register_server({