Skip to content

Instantly share code, notes, and snippets.

View luismts's full-sized avatar
🚀
Kaizen

Luis Matos luismts

🚀
Kaizen
View GitHub Profile
@luismts
luismts / gist:74cc92849fe83dd8846e8c27545f63ec
Created August 24, 2018 16:58 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@luismts
luismts / aligning-images.md
Created September 10, 2018 04:45 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files

Aligning images

left alignment

This is the code you need to align images to the left:

using Plugin.ValidationRules.Interfaces;
namespace ValidationRulesTest.Validations
{
public class IsNotNullOrEmptyRule<T> : IValidationRule<T>
{
public string ValidationMessage { get; set; }
public bool Check(T value)
{
using Plugin.ValidationRules;
namespace ValidationRulesTest.ViewModels
{
public class Example1ViewModel
{
public Example1ViewModel()
{
Name = new ValidatableObject<string>();
}
//Email validations
Email.Validations.Add(new IsNotNullOrEmptyRule<string>{ ValidationMessage = "A email is required." });
Email.Validations.Add(new EmailRule<string> { ValidationMessage = "Email is not valid." });
var isValidEmail = Email.Validate();
<Entry Text="{Binding Name.Value, Mode=TwoWay}" >
<Entry.Behaviors>
<behaviors:EventToCommandBehavior EventName="Unfocused" Command="{Binding ValidateUserNameCommand}" />
</Entry.Behaviors>
</Entry>
public bool Validate()
{
var isValidName = _name.Validate();
var isValidLastname = _lastname.Validate();
var isValidEmail = _email.Validate();
// Your logic here
return isValidName && isValidLastname && isValidEmail;
}
_unit1 = new ValidationUnit(Name, LastName, Email);
var isValidUnit = _unit1.Validate();
var errors = Name.Errors;
var error = Name.Error;