Skip to content

Instantly share code, notes, and snippets.

View Saccomani's full-sized avatar

Rafael Felipe Sacomani Saccomani

View GitHub Profile
@alfeugds
alfeugds / CurrencyConverter.cs
Last active July 13, 2023 06:01
Xamarin Forms Currency Mask for Entry fields
using System;
using System.Globalization;
using System.Text.RegularExpressions;
using Xamarin.Forms;
namespace MyProject.Util
{
/// <summary>
/// Converter for using in Entry fields for masked input of currency.
/// <para>The binded property must be of type decimal, and must invoke the PropertyChangedEventArgs event whenever the value is changed, so that the desired mask behavior is kept.</para>
@wildbook
wildbook / WebSocketServer.cs
Created November 24, 2018 21:37
Very simple websocket server in C#
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Threading;
public class WebSocketServer
{
public readonly List<WebSocketSession> Clients = new List<WebSocketSession>();
@faganello60
faganello60 / MaskTextField.swift
Last active July 27, 2022 22:32
MaskTextField-SwiftUI.swift
import SwiftUI
import Combine
public protocol Mask {
var maskFormat: String { get set }
func formateValue(_ value: String) -> String
}
extension Mask {
public func formateValue(_ value: String) -> String {
@LanceMcCarthy
LanceMcCarthy / README.md
Last active December 20, 2023 13:28
VS Live Episode: Resources for Publishing .NET MAUI Projects

.NET MAUI Publishing Resources

So you're done building your .NET MAUI application, congrats! Now it's time to publish them, This can be a tricky topic to navigate, even to dedicated DevOps engineers who do this regularly because of the number of moving pieces in the puzzle.

To help you, I have combined several resources that are a great place to get started. These are not only a good Getting Started experience, but it's also a good thing to bookmark as a quick look-up reference.

Table of Contents

@pictos
pictos / ReelNavigation.cs
Created June 21, 2024 01:01
a view that implements the Reels navigation
sealed class SwipePageView : ContentView
{
View _firstPage;
View _secondPage;
AbsoluteLayout mainLayout;
bool flagThatIdontKnowHowToNameIt = false;
const uint length = 300;
const uint rate = 16;
Action<double> animateTransitionFirstPageAction;
Action<double> animateTransitionSecondPageAction;