Skip to content

Instantly share code, notes, and snippets.

module A
def func
puts "A"
super
end
end
module B
def func
module A
def func
puts "A"
super
end
end
module B
module A
def func
puts "A"
end
end
module B
def func
puts "B"
end
class Base
private
def hoge
puts :hoge
end
end
class X < Base
def test
hoge
let g:textobj_multitextobj_textobjects_group_i["test"] = [
\ "i'",
\ 'i"',
\]
omap <expr> im textobj#multitextobj#mapexpr_i("test")
vmap <expr> im textobj#multitextobj#mapexpr_i("test")
let g:quickrun_config = {
\ "javascript/watchdogs_checker" : {
\ "type" : "watchdogs_checker/eslint",
\ },
\}
call watchdogs#setup(g:quickrun_config)
@osyo-manga
osyo-manga / main.rb
Created June 2, 2015 06:12
static_func
def static_def name, &block
name = caller.last[/([^:]+):/, 1] + name.to_s
define_method(name, block)
end
def static_send name, *args
name = caller.last[/([^:]+):/, 1] + name.to_s
send(name, *args)
end
#include <iostream>
#include <algorithm>
int
min(int n, int m){
return n + m;
}
int
main(){
require 'net/http'
class Gyazo
attr_reader :id
def initialize(id = '',
boundary = '----BOUNDARYBOUNDARY----',
host = 'gyazo.com',
cgi = '/upload.cgi',
let s:Prelude = vital#of("vital").import("Prelude")
function! s:as_list(a)
return type(a:a) == type([]) ? a:a : [a:a]
endfunction
function! s:ignore(rule)
let rule = copy(a:rule)
let rule.input = rule.char
let rule.input_after = ""