Skip to content

Instantly share code, notes, and snippets.

View inouire's full-sized avatar
⛑️
Deploying every day

Edouard inouire

⛑️
Deploying every day
View GitHub Profile
@inouire
inouire / i18n.rb
Last active May 20, 2019 10:44
Simple i18n setup in my Hanami 1.3 app
# config/initializers/i18n.rb
require 'i18n'
# Configure it as you want
I18n.load_path = Dir["config/locales/**.yml"]
I18n.enforce_available_locales = true
I18n.default_locale = "en"
I18n.backend.load_translations
@inouire
inouire / gist:ba850551fd352238579d
Created December 9, 2014 08:57
CSV dataset provider, draft
<?php
namespace MetarDecoder\Service;
use MetarDecoder\Exception\DatasetLoadingException;
class DatasetProvider
{
private $base_dir;