Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing on wain project

Linda_pp rhysd

🎯
Focusing on wain project
View GitHub Profile
View today.diff
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}
View hoge.cpp
enum struct 技 {
たいあたり = 0,
なきごえ,
しっぽをふる,
};
int main()
{
auto hoge = 技::しっぽをふる;
(void) hoge;
View today.diff
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 Feb 1, 2014
from git/git/document
View git1.9rc1.markdown

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

View today.diff
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
View today.diff
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
View today.diff
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
View tmp.vim
let s:tmp = {}
function! s:tmp.completion(arglead, cmdline, cursorpos)
['foo', 'bar', 'baz']
endfunction
" ココ!
command! -complete=customlist,s:tmp.completion Hoge echo <args>
View hoge.md

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

View tour_of_go_71.go
package main
import (
"fmt"
"sync"
)
type Page struct {
url, body string
}
You can’t perform that action at this time.