Skip to content

Instantly share code, notes, and snippets.

View heytherewill's full-sized avatar

William Barbosa heytherewill

View GitHub Profile
@heytherewill
heytherewill / NonWovenLoginViewModel.cs
Last active October 24, 2017 21:50
Code snippets for ".NET IL Weaving for those who know nothing about .NET IL Weaving"
namespace NonWoven
{
//BaseViewModel implements INotifyPropertyChanged
public sealed class LoginViewModel : BaseViewModel
{
private bool _isLoading;
public bool IsLoading
{
get => _isLoading;
set
@heytherewill
heytherewill / Observable.cs
Last active September 2, 2020 11:59
Use the common method names in Rx.Net instead of using the LINQ ones.
using System.Collections.Generic;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace System.Reactive.ApiMappings
{
public static class ObservableEx
{

Keybase proof

I hereby claim:

  • I am willsb on github.
  • I am willsb (https://keybase.io/willsb) on keybase.
  • I have a public key ASAD0-tqTDh7fi4cA3M-g-o0vjDnsZKGM20D3B2mERRgxQo

To claim this, I am signing this object:

@heytherewill
heytherewill / polyline.cs
Created February 18, 2016 17:21
Decode a Polyline String in Xamarin.Android
private IEnumerable<LatLng> DecodePolylineString(string encodedPath)
{
var len = encodedPath.Length;
var index = 0;
var lat = 0;
var lng = 0;
while (index < len)
{
var result = 1;