I hereby claim:
- I am janko on github.
- I am jankomarohnic (https://keybase.io/jankomarohnic) on keybase.
- I have a public key ASCaKDu-hYZyqe53pvnM1eyYwApTFr47U_wy1jV5M4j0WQo
To claim this, I am signing this object:
| require "roda" | |
| require "sequel" | |
| require "rack/test" | |
| require "json" | |
| DB = Sequel.sqlite | |
| DB.create_table :accounts do | |
| primary_key :id | |
| String :status_id, default: 1, null: false | |
| String :email, null: false |
| class ApplicationController < ActionController:Base | |
| extend ControllerMacros | |
| end |
I hereby claim:
To claim this, I am signing this object:
| source "https://rubygems.org" | |
| gem "sequel" | |
| gem "pg" | |
| gem "sequel_pg" | |
| gem "memory_profiler" |
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "activerecord", "6.0.3.3", require: "active_record" | |
| gem "sequel", "5.36" | |
| gem "sequel_pg", "1.13.0", require: false | |
| gem "pg", "1.2.3" | |
| gem "mysql2", "0.5.3" |
| #!/usr/bin/env ruby | |
| require "dry/cli" | |
| require "aws-sdk-s3" | |
| require "aws-sdk-iam" | |
| require "json" | |
| ENV["AWS_ACCESS_KEY_ID"] = "..." |
| class ApplicationController < ActionController::Base | |
| private | |
| def stream_body(async: false, **options, &block) | |
| self.status ||= 200 | |
| self.headers["Cache-Control"] = "no-cache" | |
| self.headers.delete("Content-Length") | |
| stream_class = async ? AsyncStream : Stream |
| width, imagemagick, libvips | |
| 1000, 0.129, 0.045 | |
| 1500, 0.190, 0.067 | |
| 2000, 0.276, 0.054 | |
| 2500, 0.380, 0.068 | |
| 3000, 0.498, 0.085 |
| Value = Struct.new(:value) do | |
| def coerce(other) | |
| puts "called #{self}#coerce(#{other.inspect})" | |
| [Value.new(other), self] | |
| end | |
| def +(other) | |
| puts "called #{self} + #{other.inspect}" | |
| end |