Skip to content

Instantly share code, notes, and snippets.

```shell
$ cat main.cpp
#define PI 3.14
int
main(){
float f = PI;
return 0;
}
function! s:init(value)
let value = a:value
" 初期値に基づいて関数を定義する
function! s:hoge() closure
return value + value
endfunction
function! s:bar(value) closure
return value + a:value
function! Foo()
let x = 0
function! Bar() closure
let x += 1
return x
endfunction
return function('Bar')
endfunction
let Count = Foo()
let s:V = vital#of("vital")
let s:S = s:V.import("Palette.Scriptnames")
function! s:call_stack()
try
throw 'abc'
catch /^abc$/
return split(matchstr(v:throwpoint, 'function \zs.*\ze,.*'), '\.\.')[ : -2]
endtry
"
" γ'"´`"''ヽ
" / ● l
" /⌒) Oo ミ
" ヽl'l wwWW
" ノ ヽ
"  _ l ,--- ヽ
" |ヽ__ l ヽ)ヽヽヾヽ
" _/    \ ヽ ヽヽヾヽヽ
"(ミ    ◎ -ヽ ヽ ヽヾヽヽヽ
package fc.dbx0.lightboxer
import android.app.Activity
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.ImageView
import com.bumptech.glide.Glide
module M
class X
def homu
"homu"
end
end
end
puts "Hello,world."
let s:V = vital#of("vital")
let s:J = s:V.import("Branc.Job")
function! s:error(msg)
echohl ErrorMsg
echom a:msg
echohl NONE
endfunction
function! s:start(config, context)
module M
class A
def mami
p "mami"
end
end
end
class X