Skip to content

Instantly share code, notes, and snippets.

View luismts's full-sized avatar
🚀
Kaizen

Luis Matos luismts

🚀
Kaizen
View GitHub Profile
<ImageButton Aspect="AspectFill" BorderColor="Purple" BorderWidth="3"
Source="xamarin_logo.png" AutomationProperties.HelpText="Xamarin Logo" />
WebView myWebView = new WebView();
myWebView.Reload();
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TailwindTraders"
x:Class=" TailwindTraders.Shell"
Title="TailwindTraders">
<ShellItem Title="Home">
<ShellSection>
<ShellContent>
<local:HomePage />
</ShellContent>
<ContentPage ...
Visual="Material">
...
</ContentPage>
<CollectionView ItemsSource="{Binding Blogs}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
public class RestService : IRestService
{
HttpClient client;
...
public RestService ()
{
client = new HttpClient (); // Creating the HTTPClient Object
}
/// XF Project
namespace UsingDependencyService
{
public interface IToDo {
void ToDo (); //note that interface members are public by default
}
}
namespace UsingDependencyService.Service
{
@luismts
luismts / GitCommitBestPractices.md
Last active April 24, 2025 04:55
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

...
Forms.SetFlags("Visual_Experimental");
...
@luismts
luismts / Entry.xaml
Last active December 10, 2019 14:54
...
<Entry Placeholder="Sigueme en las redes @luismatosluna" Keyboard="Numeric"
Margin="{StaticResource myMargin}" HeightRequest="20"
Grid.Row="2" Grid.ColumnSpan="2"
Text="{Binding RegistrationCode, Mode=TwoWay}" />
...