Skip to content

Instantly share code, notes, and snippets.

View callmeloureiro's full-sized avatar

Matheus Loureiro callmeloureiro

  • São Paulo, SP
View GitHub Profile
@callmeloureiro
callmeloureiro / database.yml.example mysql2
Created February 17, 2016 05:46 — forked from erichurst/database.yml.example mysql2
Rails 3 database.yml examples
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8
/*
* Simple mixin to add padding with the function rem() from http://kouto-swiss.io/
*/
pad(arguments)
if length(arguments) == 1
padding: rem(arguments[0])
if length(arguments) == 2
padding: rem(arguments[0]) rem(arguments[1])