Skip to content

Instantly share code, notes, and snippets.

View luismts's full-sized avatar
🚀
Kaizen

Luis Matos luismts

🚀
Kaizen
View GitHub Profile
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.Models
{
public class User
{
public User()
{
LastName = new ValidatableObject<string>();
Name = new ValidatableObject<string>();
using Plugin.ValidationRules;
using ValidationRulesTest.Validations;
using ValidationRulesTest.Models;
namespace ValidationRulesTest.ViewModels
{
public class Example2ViewModel
{
public Example2ViewModel()
{
var isValidEmail = User.Email.Validate();
<Entry Text="{Binding User.Name.Value, Mode=TwoWay}" >
<Entry.Behaviors>
<behaviors:EventToCommandBehavior EventName="Unfocused" Command="{Binding ValidateUserNameCommand}" />
</Entry.Behaviors>
</Entry>
<Entry Text="{Binding User.Name.Value, Mode=TwoWay}" />
<Label Text="{Binding User.Name.Error}" TextColor="Red" HorizontalTextAlignment="Center" />
<Label>
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="Lorem ipsum " FontAttributes="Bold" TextColor="Blue" TextDecorations="Underline">
<Span.GestureRecognizers>
<TapGestureRecognizer Command="{Binding TapCommand, Mode=OneWay}"
CommandParameter="https://luismts.com/"/>
</Span.GestureRecognizers>
</Span>
@luismts
luismts / Colaborar Proyecto GitHub.markdown
Created November 11, 2018 04:51 — forked from BCasal/Colaborar Proyecto GitHub.markdown
Pasos a seguir para colaborar en un proyecto de GitHub

Cómo colaborar en un proyecto en GitHub

  • Fork del repositorio
  • Clonar el repositorio
  • Actualizar la rama master
  • Crear una rama
  • Hacer los cambios
  • Hacer un Pull Request

Fork del repositorio

@luismts
luismts / GitHub-Forking.md
Created November 15, 2018 02:33 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

<Label MaxLines="4"
LineBreakMode="TailTruncation"
Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mattis quam non enim pellentesque, ut placerat purus finibus. Nulla quis tincidunt ante. Ut mauris lectus, aliquam a sagittis vitae, consequat eget elit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque convallis nunc nisi, a imperdiet elit efficitur et. Duis in lectus mollis, interdum ipsum et, tincidunt orci. Fusce ipsum metus, imperdiet non lacus vitae, facilisis feugiat magna. Nulla volutpat nisl tortor, a consectetur felis consectetur non. Curabitur in enim vulputate sem volutpat bibendum id nec lorem. Mauris laoreet lacus ac volutpat tempus."/>