Skip to content

Instantly share code, notes, and snippets.

View mopp's full-sized avatar
💜
Power is power

mopp mopp

💜
Power is power
View GitHub Profile
@mopp
mopp / gist:4753822
Created February 11, 2013 10:53
VimFiler
以下で適当なディレクトリ生成
このようなディレクトリの場合のみ乱れるようです
1~10やAtoZだけだと正しく表示されました
#!/opt/local/bin/zsh
atoZ=('a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z')
@mopp
mopp / gist:5126853
Last active December 14, 2015 18:09
neocomplcache bug report.
<?php
App::uses('Controller', 'Controller');
class AppController extends Controller {
}
上記のようなPHPファイルにて
App::usesを追記しようとした際
Appからコロンを2つ入力すると
@mopp
mopp / don't pass test92 log
Last active December 16, 2015 04:38
don't pass test92 log
Logs
../vim -u unix.vim -U NONE --noplugin -s dotest.in test92.in
# For flaky tests retry one time.
# Check if the test.out file matches test.ok.
7c7
< normal! 014|
---
> normal! 016|
21,22c21,22
< exe 'normal! ' . s:c . '|zs' . 14 . '|'
@mopp
mopp / ReversePolishNotation.c
Last active December 16, 2015 15:59
逆ポーランド
// http://judge.u-aizu.ac.jp/onlinejudge/lesson.jsp?id=ALDS1#
// 問題:3-B
#include<stdio.h>
#include<stdlib.h>
#define MAX_SIZE 100
int stack[MAX_SIZE];
int stack_pointer = 0;
@mopp
mopp / Brainf**k_implementation_by_C.c
Last active December 16, 2015 22:59
Brainf**k !!
#include<stdio.h>
#include<string.h>
#define MAX_MEM_SIZE 30000
int evalInstruction(char*, int, char**);
char* strrnchr(char*, int, char);
int main(void) {
let s:stored_session_filename = tempname()
" 初期化
function! s:initialize()
" 現在のセッションを保存
execute 'mksession!' s:stored_session_filename
call writefile(['set bg='.&bg, 'colorscheme ' . g:colors_name], s:stored_session_filename . 'x.vim')
" windowを作成
execute 'silent! split moppbuf'
function <SNR>54_ClangCompleteInit..<SNR>54_initClangCompletePython の処理中にエラーが検出されました:
行 13:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/mopp/.vim/bundle/clang_complete/plugin/libclang.py", line 1, in <module>
from clang.cindex import *
File "/Users/mopp/.vim/bundle/clang_complete/plugin/clang/cindex.py", line 65, in <module>
from ctypes import *
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 10, in <module>
from _ctypes import Union, Structure, Array
function! g:vimconsole#hooks.on_logged(context)
echomsg string(a:context)
endfunction
function! s:tester(i)
call vimconsole#log('This message is test '.a:i)
endfunction
function! g:vimconsole#hooks.on_logged(context)
call vimconsole#winopen()
" echomsg string(a:context)
endfunction
function! s:tester(i)
call vimconsole#log('This message is test '.a:i)
endfunction
set nocompatible
set number
set laststatus=2
set statusline=%<%F\ %m%r%h%w%y%{'['.(&fenc!=''?&fenc:&enc).']['.&fileformat.']'}%=%l/%L,%c%V%8P
set cmdheight=2 " コマンドラインの行数
set showcmd " 入力中のコマンド表示
set showmatch " 括弧強調
set showtabline=2 " タブバーを常に表示
set backspace=2 " Backspaceの動作