天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。
- gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
| " from https://github.com/spf13/spf13-vim/blob/master/.vimrc | |
| if has('statusline') | |
| set laststatus=2 | |
| " Broken down into easily includeable segments | |
| set statusline=%<%f\ " Filename | |
| set statusline+=%w%h%m%r " Options | |
| set statusline+=%{fugitive#statusline()} " Git Hotness | |
| set statusline+=\ [%{&ff}/%Y] " filetype | |
| set statusline+=\ [%{getcwd()}] " current dir | |
| set statusline+=%#warningmsg# |
| diff --git a/Src/compat.c b/Src/compat.c | |
| index cc4e876..44c7167 100644 | |
| --- a/Src/compat.c | |
| +++ b/Src/compat.c | |
| @@ -855,6 +855,7 @@ int mk_wcswidth(const wchar_t *pwcs, size_t n) | |
| return width; | |
| } | |
| +#endif /* 0 */ | |
| diff --git a/Src/utils.c b/Src/utils.c | |
| index 26e2a5c..04c3783 100644 | |
| --- a/Src/utils.c | |
| +++ b/Src/utils.c | |
| @@ -4244,6 +4244,13 @@ mod_export char * | |
| zreaddir(DIR *dir, int ignoredots) | |
| { | |
| struct dirent *de; | |
| +#ifdef HAVE_ICONV | |
| + static iconv_t conv_ds = (iconv_t)NULL; |
| #!/usr/bin/env php | |
| <?php | |
| /* | |
| * ltsv viewer | |
| * | |
| * ex) | |
| * cat foo.log | php ltsview.php | |
| */ | |
| // refereces below. |
| /** | |
| * Based conceptually on the _.extend() function in underscore.js ( see http://documentcloud.github.com/underscore/#extend for more details ) | |
| * Copyright (C) 2012 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955 | |
| * | |
| * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. | |
| **/ |
| #!/bin/sh | |
| PREFIX="from now" | |
| MESSAGE="[${PREFIX}] `date +\"%Y/%m/%d %T\"`" | |
| get_amend() { | |
| if [ -z `git log --pretty=oneline -1 | cut -d " " -f 2- | grep "^\[${PREFIX}]"` ] | |
| then | |
| return 1 | |
| fi |
| /* See http://darcyclarke.me/design/skin-your-chrome-inspector/ for installation instructions */ | |
| /* Wombat theme for Chrome developer tools */ | |
| .source-code, | |
| .script-view, | |
| .styles-section { background: #242424 !important; color: #F6F3E8 !important; font-size: 12px !important; } | |
| #drawer .source-code { background: #FFF !important; } |