Skip to content

Instantly share code, notes, and snippets.

View pocke's full-sized avatar
⌨️
Pocke is typing...

Masataka Pocke Kuwabara pocke

⌨️
Pocke is typing...
View GitHub Profile
module B
extend self
@enabled = false
def enable!
return if @enabled
clear
@enabled = true
let s:display_typed_char_zindex = 1
function! s:display_typed_char() abort
let ch = systemlist('banner ' . v:char)
let winid = popup_create(ch, {"zindex": s:display_typed_char_zindex})
let s:display_typed_char_zindex += 1
call job_start("sleep 0.5", {"exit_cb": { -> popup_close(winid) }})
endfunction
autocmd InsertCharPre * call s:display_typed_char()
require "net/http"
require "json"
class Pipeline < BasicObject
def self.start
new
end
def initialize
require 'optparse'
require 'pathname'
require 'open3'
require 'ripper'
require 'etc'
require 'timeout'
def valid_syntax?(code)
Ripper.sexp(code)
end
puts("Hello world") if false \
&& false &&
false
@pocke
pocke / sum2.rb
Last active April 30, 2019 16:16
For akaza blog
require 'akaza'
class A
extend Akaza::Annotation
whitespace def sum(a, b)
input=StringIO.new("#{a}\n#{b}\n")
output=StringIO.new
@pocke
pocke / sum1.rb
Last active April 30, 2019 16:16
For akaza blog
require 'akaza'
class A
extend Akaza::Annotation
whitespace def sum(input, output)
This code is never evaluated.
@pocke
pocke / hello.rb
Created April 28, 2019 09:32
For akaza blog
# Hello, world!を出力するプログラム
require 'akaza'
Akaza.eval("
@pocke
pocke / hello.ws
Last active April 28, 2019 09:32
For akaza blog