Skip to content

Instantly share code, notes, and snippets.

View kostia's full-sized avatar

Kostia Newt kostia

  • JustRelate
  • Berlin, Germany
View GitHub Profile
@kostia
kostia / prefere-instance-level-implementations-over-class-level-implementation.md
Last active December 17, 2015 11:39
The is a pseudo-blogpost about why I think an instance level implementations is to prefere over a class level implementation.

Why an instance level implementations is to prefere over a class level implementation.

First of all, let's make clear what is ment by an instance level implementation and a class level implementation.

Here is an example of an instance level implementation:

# driver1.rb
@kostia
kostia / gist:4075236
Created November 14, 2012 22:15
German synonyms for Elasticsearch
This file has been truncated, but you can view the full file.
80470 => 80470
ABC => ABC
ABM => ABM
ACL => ACL
ACPI => ACPI
ADAC => ADAC
ADSL => ADSL
AEG => AEG
AG => AG
AGP => AGP
@kostia
kostia / README.md
Created February 23, 2012 14:56
Plugin for HashWithStructAccess for loading YAML from string and from files

HashWithStructAccessYamlLoader

# In you Gemfile
gem("hash_with_struct_access_yaml_loader", :git => "git://gist.github.com/1893175.git")

# In your code
HashWithStructAccess.load_yaml_file("load_me.yml")