Skip to content

Instantly share code, notes, and snippets.

View hiasinho's full-sized avatar

Mathias Maisberger hiasinho

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hiasinho on github.
  • I am hiasinho (https://keybase.io/hiasinho) on keybase.
  • I have a public key ASDgK7kbjlPvU0Uk7kC2pG8p_Zckyq9rOBbsDGInS_-o-wo

To claim this, I am signing this object:

@hiasinho
hiasinho / factory_girl_strategy_find_or_create.rb
Last active May 27, 2020 18:31
FactoryGirl strategy for adding find & find_or_create
## http://stackoverflow.com/questions/7145256
module FactoryGirl
module Strategy
class Find
def association(runner)
runner.run
end
def result(evaluation)
build_class(evaluation).where(get_overrides(evaluation)).first

Keybase proof

I hereby claim:

  • I am hiasinho on github.
  • I am hiasinho (https://keybase.io/hiasinho) on keybase.
  • I have a public key whose fingerprint is 4423 7E1F 5370 B2A6 3052 1786 E039 4132 C5A8 2ECE

To claim this, I am signing this object:

@hiasinho
hiasinho / modernie.md
Last active September 1, 2021 22:23
Internet Explorer on Vagrant

The Modern.ie Virtual Machine Images – VMs used for testing several versions of IE – are now also available as vagrant boxes. Here’s the list: