From 3d4b47e03c8b23e89ea126d58e65ad0d8923eaa0 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Tue, 29 Nov 2016 13:19:06 -0500 Subject: [PATCH] add contrib --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b43d5c..7345028 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The file [whitelist.conf](whitelist.conf) gathers email domains that are often i Example Usage ============= -Python +**Python** ```Python blacklist = ('disposable_email_blacklist.conf') blacklist_content = [line.rstrip() for line in blacklist.readlines()] @@ -23,7 +23,7 @@ if email.split('@')[1] in blacklist_content: else: return True ``` -PHP contributed by @txt3rob and @deguif +**PHP** contributed by @txt3rob and @deguif ```php function is_temp_mail($mail) { $mail_domains_ko = file('disposable_email_blacklist.conf', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); @@ -32,7 +32,7 @@ function is_temp_mail($mail) { return in_array(explode('@', $mail)[1], $mail_domains_ko); } ``` -Ruby on Rails +**Ruby on Rails** contributed by @MitsunChieh In resource model, usually it is `user.rb` ```Ruby