Skip to content

Instantly share code, notes, and snippets.

View jaimemahaffey's full-sized avatar

Jaime Mahaffey jaimemahaffey

  • SF Bay Area, CA
  • 22:04 (UTC -07:00)
View GitHub Profile
@h2m730131
h2m730131 / .vsvimrc
Last active March 3, 2025 16:02
Visual Studio 2022 + VsVim + ReSharper + PeasyMotion + im-select
" [ReSharper Documentation](https://www.jetbrains.com/help/resharper/)
" 避免 key mapping 覆蓋 `"` 與 `/` 暫存器, 分別採用 `z` 與 `s` 暫存器替代
" Not support InsertLeave autocmd 自動切換回英文輸入法
"autocmd InsertLeave * !%USERPROFILE%\\.vscode\\extensions\\im-select.exe 1033
inoremap <Esc> <Esc>:!%USERPROFILE%\\.vscode\\extensions\\im-select.exe 1033<CR>
@ErickPetru
ErickPetru / worktree-publish-to-gh-pages.md
Created September 13, 2019 13:26
Publishing a `dist` folder from `master` branch using **worktree** feature to `gh-pages` branch.

Setup

First of all, you need to have a gh-pages. If you don't have, create:

git branch gh-pages

This makes a branch based on the master HEAD. It would be okay but the files and the git history of master branch are not meaningful on gh-pages branch.