Skip to content

Instantly share code, notes, and snippets.

View oppara's full-sized avatar
:octocat:
::

oppara oppara

:octocat:
::
View GitHub Profile
@oppara
oppara / .vimrc-statusline.vim
Created November 20, 2012 02:58 — forked from eethann/.vimrc-statusline.vim
vimrc segment for syntastic- and fugitive-enabled statusline.
" 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.
@oppara
oppara / tenkaichi-git.md
Created April 23, 2013 04:02 — forked from teppeis/tenkaichi-git.md
ぎっとぎとにしてやんよ

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@oppara
oppara / README.md
Created April 30, 2013 00:40 — forked from shunirr/README.md
Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

必要なもの

うっかり jenkins.pkg を入れてしまった人はアンインストールする

/**
* 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/.
**/
@oppara
oppara / git-now
Created July 31, 2013 08:36 — forked from bleis-tift/git-now
git-now
#!/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
@oppara
oppara / Custom.css
Created November 15, 2013 03:59 — forked from tivac/Custom.css
/* 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; }