Skip to content

Instantly share code, notes, and snippets.

@Jyosua
Jyosua / go-wsl.md
Last active November 12, 2021 17:51 — forked from renevo/go-wsl.md
Easily update/install Go in wsl

Updating/Installing Go in WSL Debian

Remove

Removes older versions

sudo rm -rf /usr/local/go* && sudo rm -rf /usr/local/go
@Jyosua
Jyosua / ImageEx.cs
Last active November 27, 2019 01:44 — forked from andreinitescu/gist:c907c2951a719ed3ac34
Xamarin.Forms Image subclass that finds the aspect needed to fill the view in one axis, and then dynamically expands the view in the other axis to fit the image without scaling.
public class ImageEx : Image
{
public static readonly BindableProperty TrueAspectProperty =
BindableProperty.Create(
propertyName: nameof(TrueAspect),
returnType: typeof(AspectEx),
declaringType: typeof(AspectEx),
defaultValue: AspectEx.AspectFit,
defaultBindingMode: BindingMode.OneWay,
propertyChanged: OnAspectExPropertyChanged);