Skip to content

Instantly share code, notes, and snippets.

View rhysd's full-sized avatar
🐕
Fixing an off-by-wan error

Linda_pp rhysd

🐕
Fixing an off-by-wan error
View GitHub Profile
enum struct 技 {
たいあたり = 0,
なきごえ,
しっぽをふる,
};
int main()
{
auto hoge = 技::しっぽをふる;
(void) hoge;
diff --git a/vimrc b/vimrc
index a0cb89a..6baa880 100644
--- a/vimrc
+++ b/vimrc
@@ -1884,6 +1884,8 @@ smap <expr><C-S-l> neosnippet#expandable() \|\| neosnippet#jumpable() ?
" 自作スニペット
let g:neosnippet#snippets_directory=$HOME.'/.vim/bundle/inu-snippets/snippets'
AutocmdFT neosnippet,gitconfig setlocal noexpandtab
+" 標準のスニペットを読み込まない
+let g:neosnippet#disable_runtime_snippets = {'cpp' : 1, 'python' : 1}
diff --git a/tmux.conf b/tmux.conf
index 03f3398..3b79903 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -120,6 +120,9 @@ bind-key -t vi-copy 'C-j' bottom-line
bind-key -t vi-copy 'C-k' top-line
bind-key -t vi-copy 'C-h' back-to-indentation
bind-key -t vi-copy 'C-l' end-of-line
+
+# capture the buffer
@rhysd
rhysd / git1.9rc1.markdown
Created February 1, 2014 02:34
from git/git/document

Git v1.9 Release Notes

Backward compatibility notes

"git submodule foreach $cmd $args" used to treat "$cmd $args" the same way "ssh" did, concatenating them into a single string and letting the shell unquote. Careless users who forget to sufficiently quote $args gets their argument split at $IFS whitespaces by the shell, and got

diff --git a/linux.zshrc b/linux.zshrc
index d1bc4c9..e2ccc4c 100644
--- a/linux.zshrc
+++ b/linux.zshrc
@@ -3,6 +3,15 @@ export BROWSER=google-chrome:firefox:$BROWSER
export PATH=$PATH:$HOME/.gem/ruby/1.9.1/bin
export PATH=/usr/lib/colorgcc/bin:$PATH
+if [ -d "/usr/local/go" ]; then
+ export GOROOT=/usr/local/go
diff --git a/gitconfig b/gitconfig
index 660103e..8c7682d 100644
--- a/gitconfig
+++ b/gitconfig
@@ -52,3 +52,5 @@
email = lin90162@yahoo.co.jp
[push]
default = simple
+[github]
+ user = rhysd
diff --git a/gitconfig b/gitconfig
index 660103e..8c7682d 100644
--- a/gitconfig
+++ b/gitconfig
@@ -52,3 +52,5 @@
email = lin90162@yahoo.co.jp
[push]
default = simple
+[github]
+ user = rhysd
let s:tmp = {}
function! s:tmp.completion(arglead, cmdline, cursorpos)
['foo', 'bar', 'baz']
endfunction
" ココ!
command! -complete=customlist,s:tmp.completion Hoge echo <args>

BEFORE

(YesodAuth master, PersistMonadBackend (b (HandlerT master IO)) ~ PersistEntityBackend val, b ~ YesodPersistBackend master, Key val ~ AuthId master, PersistStore (b (HandlerT master IO)), PersistEntity val, YesodPersist master, Typeable val) => HandlerT master IO (Maybe (AuthId master))

AFTER

package main
import (
"fmt"
"sync"
)
type Page struct {
url, body string
}