This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YAML::ENGINE.yamler = 'psych' | |
File.open('new/en.yml', 'w') { |f| f.write(Psych.load(File.open('config/locales/en.yml').read).to_yaml) }; 1 | |
check_with = Psych.load(File.open('new/en.yml').read)["en"].to_a; 1 | |
Psych.load(File.open('config/locales/en.yml').read)["en"].to_a.each_with_index do |hash, i| | |
if check_with[i] != hash | |
puts hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/terriblelabs/guardrail_notifier | |
https://github.com/bumi/validation_rage | |
https://github.com/watu/validation_auditor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// elements get appended with "__" and the $name | |
@mixin e($name) { | |
@at-root #{&}__#{$name} { | |
@content; | |
} | |
} | |
// modifiers get appended with "--" and the $name | |
@mixin m($name) { | |
@at-root #{&}--#{$name} { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::BaseDecorator < Draper::Decorator | |
def self.collection_decorator_class | |
Admin::CollectionDecorator | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mixin that allows to specify arbitrary CSS properties with | |
// unitless numbers. The output has rem unit with pixel fallback. | |
// Shorthand assignments are supported too! | |
$base_line: 10; | |
@mixin rem($property, $values, $important:"") | |
{ | |
// Placeholder variables | |
$shorthand_px: ""; | |
$shorthand_rem: ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# t = Message.arel_table | |
# Message. | |
# joins(:thread). | |
# where( | |
# t[:id].eq( | |
# t.grouping( | |
# Arel.sql( | |
# Message. | |
# select(t[:id]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name: "Dmitry Polushkin", | |
title: "Software Engineer", | |
location: ["Tenerife", "Spain", "Earth"], | |
email: "dmitry.polushkin@gmail.com" | |
} |
OlderNewer