This file contains hidden or 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
| # ~/.bash_profile: executed by bash(1) for login shells. | |
| if [ -f ~/.bashrc ]; then | |
| source ~/.bashrc | |
| fi |
This file contains hidden or 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
| # http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/ | |
| # lib/email_validator.rb | |
| require 'mail' | |
| module ActiveModel | |
| module Validations | |
| class EmailValidator < ActiveModel::EachValidator | |
| def validate_each(record,attribute,value) | |
| begin | |
| m = Mail::Address.new(value) | |
| # We must check that value contains a domain and that value is an email address |
This file contains hidden or 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
| <ifmodule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
| </ifmodule> | |
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| ExpiresByType text/html M3600 | |
| ExpiresByType text/css M3600 | |
| ExpiresByType application/javascript M3600 | |
| ExpiresByType image/bmp M3600 | |
| ExpiresByType image/gif M3600 |
NewerOlder