Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
require "openssl"
require "securerandom"
require "benchmark/ips"
class Signer
def initialize
@rsa_key = OpenSSL::PKey::RSA.new(2048)
end
def sign(string_to_sign)
package quamina
import (
"fmt"
"io"
"os"
"testing"
)
var (
// extra constraint
function action<TContext extends MyContext>(handler: (arg: TContext) => void): Function {
return function (object: object, aub: any, descriptor: any) {
if (!object.hasOwnProperty('getContext')) {
throw new Error("Can't bind @action to class which don't implement 'getContext' method");
}
// @ts-ignore
const ctx = object.getContext();
# frozen_string_literal: true
require 'torque-postgresql'
require 'byebug'
require "active_record"
require "minitest/autorun"
require "logger"
ActiveRecord::Base.establish_connection(
adapter: "postgresql",
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# Activate the gem you are reporting the issue against.
# frozen_string_literal: true
class MiniSqlConnection
def self.cached_type_map
@@type_map ||= begin
pg_connection = ActiveRecord::Base.connection.raw_connection
MiniSql::Postgres::Connection.type_map(pg_connection)
end
end
/Users/yosi/.rvm/rubies/truffleruby-20.0.0/bin/truffleruby -I/Users/yosi/.rvm/gems/truffleruby-20.0.0/gems/rspec-core-3.9.0/lib:/Users/yosi/.rvm/gems/truffleruby-20.0.0/gems/rspec-support-3.9.0/lib /Users/yosi/.rvm/gems/truffleruby-20.0.0/gems/rspec-core-3.9.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
An error occurred while loading ./spec/panko/serializer_spec.rb.
Failure/Error: backend.type = descriptor.type
RuntimeError:
Arity error - expected: 2 actual: 1 (ArityException)
from com.oracle.truffle.llvm.runtime.interop.LLVMForeignCallNode$PackForeignArgumentsNode.error(LLVMForeignCallNode.java:149)
from com.oracle.truffle.llvm.runtime.interop.LLVMForeignCallNodeFactory$PackForeignArgumentsNodeGen.executeAndSpecialize(LLVMForeignCallNodeFactory.java:129)
from com.oracle.truffle.llvm.runtime.interop.LLVMForeignCallNodeFactory$PackForeignArgumentsNodeGen.execute(LLVMForeignCallNodeFactory.java:66)
[Jul 09 17:53:03] ERROR - org.openqa.selenium.WebDriverException unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: chrome=73.0.3683.103)
(Driver info: chromedriver=73.0.3683.103,platform=Linux 4.15.0-1040-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'automation', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1040-aws', java.version: '1.8.0_212'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 73.0.3683.103, userDataDir: /tmp/.org.chromium.Chromium...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:34873}, handlesAle