Skip to content

Instantly share code, notes, and snippets.

module I18n
module Backend
class Simple
# Monkey-patch-in localization debugging
# Enable with ENV['I18N_DEBUG']=1 on the command line in server startup, or ./config/environments/*.rb file.
#
def lookup(locale, key, scope = [], options = {})
init_translations unless initialized?
keys = I18n.normalize_keys(locale, key, scope, options[:separator])
@Gee-Bee
Gee-Bee / output.txt
Last active August 29, 2015 14:08 — forked from ddlsmurf/output.txt
# Example with basic types
---
hash:
  string: some text
  number: 12345
  array_of_bool: [on, off, true, false, yes, no]
  ruby symbol: :symbol
  array:
    - item one
    - item two
<!DOCTYPE html>
<html data-ng-app>
<head>
<title>AngularJS Directives and Data Bindings</title>
</head>
<!-- init directive -->
<body data-ng-init="people = ['John Smith', 'John Doe', 'Jane Doe']">
<!-- model directive -->
Name: <input type="text" data-ng-model="name"> <br>
@Gee-Bee
Gee-Bee / 0_reuse_code.js
Created December 4, 2013 14:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console