This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby 2.1.2 までは動いたが、2.1.3 で動かなくなった | |
# syntax error, unexpected modifier_if | |
{ | |
foo: | |
if true | |
10 | |
else | |
20 | |
end | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if_perl.xs:174:0: 警告: "Perl_croak_nocontext" が再定義されました [デフォルトで有効] | |
# define Perl_croak_nocontext dll_Perl_croak_nocontext | |
^ | |
In file included from /home/thinca/.anyenv/envs/plenv/versions/5.21.4/lib/perl5/5.21.4/x86_64-linux/CORE/perl.h:5443:0, | |
from if_perl.xs:53: | |
/home/thinca/.anyenv/envs/plenv/versions/5.21.4/lib/perl5/5.21.4/x86_64-linux/CORE/embed.h:1829:0: 備考: ここが以前の宣言がある位置です | |
# define Perl_croak_nocontext Perl_croak | |
^ | |
In file included from /home/thinca/.anyenv/envs/plenv/versions/5.21.4/lib/perl5/5.21.4/x86_64-linux/CORE/perl.h:5372:0, | |
from if_perl.xs:53: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[1,2],[2,3],[6,7,8],[7,9],[100,1000]].each_with_object([{}, []]) {|a, (o, r)| | |
e = a.find {|i| o.include?(i) } | |
if e | |
o[e].concat(a) | |
else | |
r.push(a) | |
end | |
x = o[e] || a | |
a.each do |i| | |
o[i] = x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe vimspec-style | |
Describe supports lexical scope | |
let test_var_1 = 1 | |
It can access to the variable | |
Assert True(exists('test_var_1')) | |
Assert Equals(test_var_1, 1) | |
End | |
It does not taint the global scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set runtimepath^=~/.vim/bundle/ultisnips | |
set runtimepath^=~/.vim/bundle/dispatch | |
set runtimepath^=~/.vim/bundle/omnisharp " Use pr-209 branch | |
filetype plugin indent on | |
syntax enable | |
set completeopt& completeopt+=menuone completeopt-=preview | |
let g:OmniSharp_want_snippet = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -L. -L/home/thinca/.anyenv/envs/rbenv/versions/2.2.2/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath=/home/thinca/.anyenv/envs/pyenv/versions/system/lib -L/usr/local/lib -Wl,--as-needed -o vim objects/buffer.o objects/blowfish.o objects/charset.o objects/crypt.o objects/crypt_zip.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o objects/if_cscope.o objects/if_xcmdsrv.o objects/mark.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/sha256.o objects/spell.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" The Vim prison. | |
" Can you leave from the vim? | |
redir => g | |
silent! autocmd | |
redir END | |
for i in filter(split(g, "\n")[1:], "v:val !~ '^\\s'") | |
execute 'autocmd!' i | |
endfor | |
mapclear | |
mapclear! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! Bf() | |
let bf = {} | |
function! bf.inc() | |
let self[self.ptr] = get(self, self.ptr, 0) + 1 | |
endfunction | |
function! bf.dec() | |
let self[self.ptr] = get(self, self.ptr, 0) - 1 | |
endfunction | |
function! bf.next() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim additional ftplugin: javascript_tofunc - TOFunc settings | |
" Author : thinca <http://d.hatena.ne.jp/thinca/> | |
" License: Creative Commons Attribution 2.1 Japan License | |
" <http://creativecommons.org/licenses/by/2.1/jp/deed.en> | |
if exists('g:TOFunc.javascript') | |
finish | |
endif | |
let s:save_cpo = &cpo |