Skip to content

Instantly share code, notes, and snippets.

Working on pocke/korat

Masataka Pocke Kuwabara pocke

Working on pocke/korat
Block or report user

Report or block pocke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ovto-oncreate-bug.rb
require 'ovto'
class MyApp < Ovto::App
class State < Ovto::State
item :next_node, default: false
class Actions < Ovto::Actions
def enable_next_node
return {next_node: true}
View ovto-component-children.diff
diff --git a/examples/static/Gemfile.lock b/examples/static/Gemfile.lock
index f2985fe..01959f6 100644
--- a/examples/static/Gemfile.lock
+++ b/examples/static/Gemfile.lock
@@ -2,7 +2,7 @@ PATH
remote: ../..
ovto (0.4.1)
- opal (~> 0.11)
+ opal (>= 0.11, < 2)
View memprof-after-gc
871296 /home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/parser-
528480 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/psych/tree_builder.rb:97:Psych::Nodes::Scalar
281108 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:54:String
201464 /home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/parser-
201464 /home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/parser-
201156 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/psych.rb:456:String
166489 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:54:Regexp
111640 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/psych/visitors/to_ruby.rb:162:Hash
95561 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/psych/visitors/to_ruby.rb:364:String
95560 /home/pocke/.rbenv/versions/trunk/lib/ruby/2.7.0/psych/nodes/node.rb:34:Array
View tp_binding_of_caller.rb
module B
extend self
@enabled = false
def enable!
return if @enabled
@enabled = true
View popup_key.vim
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) }})
autocmd InsertCharPre * call s:display_typed_char()
View pipeline.rb
require "net/http"
require "json"
class Pipeline < BasicObject
def self.start
def initialize
View puzzle-solver.rb
require 'optparse'
require 'pathname'
require 'open3'
require 'ripper'
require 'etc'
require 'timeout'
def valid_syntax?(code)
View puzzle.rb
puts("Hello world") if false \
&& false &&
pocke / sum2.rb
Last active Apr 30, 2019
For akaza blog
View sum2.rb
require 'akaza'
class A
extend Akaza::Annotation
whitespace def sum(a, b)"#{a}\n#{b}\n")
You can’t perform that action at this time.