This file contains hidden or 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
```shell | |
$ cat main.cpp | |
#define PI 3.14 | |
int | |
main(){ | |
float f = PI; | |
return 0; | |
} |
This file contains hidden or 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! s:init(value) | |
let value = a:value | |
" 初期値に基づいて関数を定義する | |
function! s:hoge() closure | |
return value + value | |
endfunction | |
function! s:bar(value) closure | |
return value + a:value |
This file contains hidden or 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! Foo() | |
let x = 0 | |
function! Bar() closure | |
let x += 1 | |
return x | |
endfunction | |
return function('Bar') | |
endfunction | |
let Count = Foo() |
This file contains hidden or 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
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 |
This file contains hidden or 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
" | |
" γ'"´`"''ヽ | |
" / ● l | |
" /⌒) Oo ミ | |
" ヽl'l wwWW | |
" ノ ヽ | |
" _ l ,--- ヽ | |
" |ヽ__ l ヽ)ヽヽヾヽ | |
" _/ \ ヽ ヽヽヾヽヽ | |
"(ミ ◎ -ヽ ヽ ヽヾヽヽヽ |
This file contains hidden or 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 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 |
This file contains hidden or 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
module M | |
class X | |
def homu | |
"homu" | |
end | |
end | |
end |
This file contains hidden or 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
puts "Hello,world." |
This file contains hidden or 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
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) |
This file contains hidden or 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
module M | |
class A | |
def mami | |
p "mami" | |
end | |
end | |
end | |
class X |