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 A | |
| def func | |
| puts "A" | |
| super | |
| end | |
| end | |
| module B | |
| def func |
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 A | |
| def func | |
| puts "A" | |
| super | |
| end | |
| end | |
| module B |
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 A | |
| def func | |
| puts "A" | |
| end | |
| end | |
| module B | |
| def func | |
| puts "B" | |
| 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
| class Base | |
| private | |
| def hoge | |
| puts :hoge | |
| end | |
| end | |
| class X < Base | |
| def test | |
| hoge |
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 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") |
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 g:quickrun_config = { | |
| \ "javascript/watchdogs_checker" : { | |
| \ "type" : "watchdogs_checker/eslint", | |
| \ }, | |
| \} | |
| call watchdogs#setup(g:quickrun_config) |
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
| 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 |
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
| #include <iostream> | |
| #include <algorithm> | |
| int | |
| min(int n, int m){ | |
| return n + m; | |
| } | |
| int | |
| main(){ |
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
| require 'net/http' | |
| class Gyazo | |
| attr_reader :id | |
| def initialize(id = '', | |
| boundary = '----BOUNDARYBOUNDARY----', | |
| host = 'gyazo.com', | |
| cgi = '/upload.cgi', |
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: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 = "" |