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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using HelloRazor.Model; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.RazorPages; | |
namespace HelloRazor.Pages | |
{ |
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
/* global $ */ | |
/* global callback */ | |
var http = require('http'); | |
var cheerio = require('cheerio'); | |
var sendgrid = require('sendgrid')([SEND_GRID_KEY]); | |
var azure = require('azure-storage'); | |
function LegoChecker() { | |
this.Sender = '[SENDER_EMAIL]'; | |
this.Receivers = '[RECEIVER_EMAIL]'; |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
public bool IsValid(string email) | |
{ | |
try | |
{ | |
System.Net.Mail.MailAddress address = new System.Net.Mail.MailAddress(email); | |
return true; | |
} | |
catch (Exception) | |
{ |
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
//Generic interface for Validators | |
public interface IValidator<T> | |
{ | |
IEnumerable<ValidationResult> Validate(T businessEntity); | |
} |
NewerOlder