This file contains 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
puts("Hello world") if false \ | |
&& false && | |
false |
This file contains 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 'optparse' | |
require 'pathname' | |
require 'open3' | |
require 'ripper' | |
require 'etc' | |
require 'timeout' | |
def valid_syntax?(code) | |
Ripper.sexp(code) | |
end |
This file contains 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
This file contains 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" | |
require "json" | |
class Pipeline < BasicObject | |
def self.start | |
new | |
end | |
def initialize |
This file contains 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: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() |
This file contains 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 B | |
extend self | |
@enabled = false | |
def enable! | |
return if @enabled | |
clear | |
@enabled = true |
This file contains 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
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 |
This file contains 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
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) |
This file contains 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 '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} |
This file contains 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 'ast' | |
require 'strscan' | |
class RuremaParser | |
def initialize(text, path: nil) | |
@text = text | |
@path = path | |
@index = 0 | |
end |