Skip to content

Instantly share code, notes, and snippets.

View erran-r7's full-sized avatar
:shipit:

Erran Carey erran-r7

:shipit:
View GitHub Profile
require 'ostruct'
require 'benchmark/ips' # gem install benchmark-ips
AGE = 21
USER = 'User'.freeze
HASH = { name: USER, age: AGE }.freeze
User = Struct.new(:name, :age)
def ostruct_slow
#!/bin/bash
docker ps -q | xargs -n 1 docker inspect -f "{{$@}}"

Keybase proof

I hereby claim:

  • I am erran-r7 on github.
  • I am err7n (https://keybase.io/err7n) on keybase.
  • I have a public key whose fingerprint is 36F0 D12F 87C8 21ED 7D2E 5D26 8314 77F7 80B2 FDD4

To claim this, I am signing this object: