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 rurema-converter.rb
require 'ast'
require 'strscan'
class RuremaParser
def initialize(text, path: nil)
@text = text
@path = path
@index = 0
end
View ovto-oncreate-bug.rb
require 'ovto'
class MyApp < Ovto::App
class State < Ovto::State
item :next_node, default: false
end
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: ../..
specs:
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-2.6.3.0/lib/parser/lexer.rb:710:Array
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-2.6.3.0/lib/parser/ruby23.rb:876:Array
201464 /home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/parser-2.6.3.0/lib/parser/ruby23.rb:1799:Array
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
clear
@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) }})
endfunction
autocmd InsertCharPre * call s:display_typed_char()
View pipeline.rb
require "net/http"
require "json"
class Pipeline < BasicObject
def self.start
new
end
def initialize
View puzzle-solver.rb
require 'optparse'
require 'pathname'
require 'open3'
require 'ripper'
require 'etc'
require 'timeout'
def valid_syntax?(code)
Ripper.sexp(code)
end
View puzzle.rb
puts("Hello world") if false \
&& false &&
false
You can’t perform that action at this time.