Skip to content

Instantly share code, notes, and snippets.

View leoarnold's full-sized avatar
⏱️
Always be benchmarking

Leo Arnold leoarnold

⏱️
Always be benchmarking
  • 12:34 (UTC +01:00)
View GitHub Profile

This is a curated list of companies who hire for Ruby developers in Germany. It does not aim for completeness. For example, agencies will rarely make it to the list. I'm mainly keeping track of companies which will keep looking for Ruby devs for the foreseeable future.

Company Location
1Komma5° Hamburg
8returns Berlin
Adigi Regensburg
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
    E-->F;
    E-->G;
    F-->H;
 G-->H;
@leoarnold
leoarnold / aes.rb
Last active October 16, 2021 15:37
A handwaving implementation of AES Polynomials in Ruby. Don't use this in production. SRSLY, don't!
# frozen_string_literal: true
class Integer
def to_aes
Aes::Polynomial.from(self)
end
def to_hex_s
hex = to_s(16).upcase
# @see https://blog.dnsimple.com/2018/03/elapsed-time-with-ruby-the-right-way/
def measure
started_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
result = yield
ended_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
p ActiveSupport::Duration.build(ended_at - started_at)
# frozen_string_literal: true
class Integer
def to_bin_s
bin = to_s(2)
bin.prepend('0') until (bin.length % 8).zero?
bin.scan(/.{4}/).join(' ')
end
@leoarnold
leoarnold / constant.rb
Created March 11, 2021 09:27
Safe handling of Ruby constant redefinition (though you should not have to do it in the first place)
module Constant
NAMESPACE_SEPARATOR = "::".freeze
module_function
def defined?(name)
Object.const_defined?(name)
end
def ensure(name, value)
@leoarnold
leoarnold / file-folder.pdf
Last active October 13, 2016 12:27
TikZ example "File folder with archived pages"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.