Skip to content

Instantly share code, notes, and snippets.

View Juansero29's full-sized avatar
🎸

Juan R. Juansero29

🎸
  • Masao
  • France
  • 09:39 (UTC +02:00)
View GitHub Profile
@Juansero29
Juansero29 / randonnée.md
Last active August 4, 2026 12:24
Sport connecté

Sport connecté

Mon setup pour faire du sport en étant connecté avec iPhone & Apple Watch

Sites Téléchargement Parcours GPX - randonnée, course à pied

Ensemble de sites permettant de parcourir des randonnées existantes et d'en télécharger des fichiers GPX pour les importer ensuite dans l'application WorkOutDoors sur iOS.

Le but étant de pouvoir faire des randonnées avec des maps clean, sur des sentiers vérifiés, avec l'itinéraire offline au poignet même lorsqu'il n'y a plus de connexion internet.

@Juansero29
Juansero29 / README.md
Created August 3, 2023 13:34
How my team solved Unhandled exception at 0x7726BF4B (MrmCoreR.dll) in AppName_UWP.exe: 0xC0000005: Access violation reading location 0x02000087 for a UWP app
  1. A teammate watched on App launch after installation in Process Monitor (by Sysinternals) and saw before App starting WerFault (preparing crash report) it is doing many stuff like "OverrideLanguagesList".
  2. My teammate remembered that, in the app, we had code that was doing ApplicationLanguages.PrimaryLanguageOverride = stuff, and that when doing this app would be closed or restarted.
  3. My teammate searched for where we played with PrimaryLanguageOverride and saw indeed, during first launch it was overriden by some code, then during 2nd launch it is not overriden any more
  4. By analyzing with my teamate we saw that crash was generated because of how we handled language change in or BindableStrings class, we changed the responsible code as follows image
  5. Now app didn't crash anymore :)

So main points:

  • You can use [Process Monito
@Juansero29
Juansero29 / LaunchArcRenderer.cs
Created October 10, 2021 18:07
Basketball Launch Arc Renderer
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(LineRenderer))]
public class LaunchArcRenderer : MonoBehaviour
{
/*
@Juansero29
Juansero29 / FullPropertyChanged.snippet
Created January 29, 2021 16:21
Code snippet for a property which implements "PropertyChanged" with a private field.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>FullPropertyChanged</Title>
<Author>Juan R. (Juansero29)</Author>
<Description>
@Juansero29
Juansero29 / xamlregionsurround.snippet
Created September 25, 2019 13:40
Code snippet for surrounding existing XAML with a region. It's targeted to use within Xamarin.Forms, it may not work elsewhere. Type 'sregx' to access it easily on a XAML Code Editor window. Language Version: C# 4.0 or higher
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Surround XAML with a XAML Region</Title>
<Author>Juan R. (Juansero29)</Author>
<Shortcut>sregx</Shortcut>
<Description>
Code snippet for surrounding existing XAML with a region.
It's targeted to use within Xamarin.Forms, it may not work elsewhere.
@Juansero29
Juansero29 / xamlregion.snippet
Created September 25, 2019 13:40
Code snippet for an automatically implemented region in XAML. It's targeted to use within Xamarin.Forms. Type 'regx' to access it easily on a XAML Code Editor window.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>XAML Regions</Title>
<Author>Juan R. (Juansero29)</Author>
<Shortcut>regx</Shortcut>
<Description>
Code snippet for an automatically implemented region in XAML.
It's targeted to use within Xamarin.Forms.
@Juansero29
Juansero29 / xamlregion.snippet
Created September 25, 2019 13:39
Code snippet for an automatically implemented region in XAML. It's targeted to use within Xamarin.Forms. Type 'regx' to access it easily on a XAML Code Editor window. Language Version: C# 4.0 or higher
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>XAML Regions</Title>
<Author>Juan R. (Juansero29)</Author>
<Shortcut>regx</Shortcut>
<Description>
Code snippet for an automatically implemented region in XAML.
It's targeted to use within Xamarin.Forms.
private async Task GoToCustomerFormAsync(object obj)
{
var bc = new CustomerFormViewModel(Client) { Navigation = this.Navigation };
var c = new CRMNavigationPage(new CustomerFormPage()
{
BindingContext = bc,
Title = "Fiche Client"
});
@Juansero29
Juansero29 / bprop.snippet
Last active May 13, 2022 03:41 — forked from parth7676/bprop.snippet
Modern Bindable Property Snippet for Xamarin Forms.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>BindableProperty</Title>
<Author>Juan R. (Juansero29) and Parth Patel (parth7676)</Author>
<Description>