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
| % jruby -Ilib ./bin/image_voodoo -m /home/enebo/Pictures/2020/01/23/P1050367.JPG | |
| [{dir name}] - {tag name} = {tag descr} | |
| --------------------------------------- | |
| [JPEG] - Compression Type = Baseline | |
| [JPEG] - Data Precision = 8 bits | |
| [JPEG] - Image Height = 3448 pixels | |
| [JPEG] - Image Width = 4592 pixels | |
| [JPEG] - Number of Components = 3 | |
| [JPEG] - Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/1 vert |
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
| https://oss.sonatype.org/content/repositories/snapshots/org/jruby/jruby-dist/10.0.0.0-SNAPSHOT/jruby-dist-10.0.0.0-20250313.162203-11-bin.tar.gz |
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 'jdbc/sqlite3' | |
| Jdbc::SQLite3.load_driver | |
| Java::org.sqlite.JDBC | |
| url = "jdbc:sqlite:test.db" | |
| con = java.sql.DriverManager.get_connection url | |
| statement = con.create_statement | |
| statement.execute("create table people (id int PRIMARY_KEY)") |
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
| enebo: ruby -I "subspawn-win32/lib" -I "subspawn/lib" -r 'subspawn' -r 'subspawn/replace-pty' -e 'm,s =PTY.open; p [m,s]; pid,j = SubSpawn.spawn(["cmd"], pty: s); sleep 5; m << "echo yes\n\r\nexit\r\n"; m.flush; p pid, j; p m.read(5); p Process.wait(pid); puts "done"' |
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 'java' | |
| h = java.util.HashMap.new | |
| h["one"] = 2 | |
| def foo(one:) | |
| p one | |
| end | |
| foo(h) |
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
| bidet |
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
| a = case [0, 1, 2, 3, 4] | |
| in [*pre, 2, *post] | |
| [pre, post] | |
| else | |
| false | |
| end | |
| p a |
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
| java.lang.Thread.State: RUNNABLE | |
| at org.jruby.RubyString.makeShared(RubyString.java:862) | |
| at org.jruby.RubyString.multibyteSubstr19(RubyString.java:3745) | |
| at org.jruby.RubyString.substr19(RubyString.java:3696) | |
| at org.jruby.RubyString.op_aref(RubyString.java:3839) | |
| at org.jruby.RubyString.op_aref(RubyString.java:3798) | |
| at org.jruby.RubyString$INVOKER$i$op_aref.call(RubyString$INVOKER$i$op_aref.gen) | |
| at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173) | |
| at home.enebo.work.jruby.lib.ruby.stdlib.rdoc.markdown.invokeOther5:\=\{\}(/home/enebo/work/jruby/lib/ruby/stdlib/rdoc/markdown.rb:362) | |
| at home.enebo.work.jruby.lib.ruby.stdlib.rdoc.markdown.RUBY$method$get_byte$0(/home/enebo/work/jruby/lib/ruby/stdlib/rdoc/markdown.rb:362) |
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
| java.lang.Exception | |
| at org.jruby.runtime.BlockBody.prepareArgumentsForCall(BlockBody.java:268) | |
| at org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66) | |
| at org.jruby.runtime.Block.call(Block.java:143) | |
| at org.jruby.RubyProc.call(RubyProc.java:291) | |
| at org.jruby.RubyProc$INVOKER$i$call.call(RubyProc$INVOKER$i$call.gen) | |
| at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:354) | |
| at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:172) | |
| at org.jruby.RubyEnumerable$ChunkedBlockCallback.lambda$call$0(RubyEnumerable.java:2088) | |
| at org.jruby.runtime.BlockCallback.call(BlockCallback.java:58) |
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
| int foo() { | |
| int i; | |
| i = 42; | |
| } | |
| int bar() { | |
| int i; | |
| return i; | |
| } |
NewerOlder