Skip to content

Instantly share code, notes, and snippets.

View Juansero29's full-sized avatar
🎸
.NETing

Juan Rodríguez Juansero29

🎸
.NETing
  • Masao
  • France
  • 23:30 (UTC +02:00)
View GitHub Profile
@Juansero29
Juansero29 / PersistenceManager.java
Created October 18, 2018 09:40
A simple binary persistence manager written in java
/* This file and every class, interface and other components in this project is licenses
* under 'THE UNLICENSE' terms and conditions.
*
* THE UNLICENSE:
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
@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>
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 / ControlsLibrary.csproj
Last active May 18, 2019 02:47
Example of a Multi-targeted .NET Standard Library for Xamarin. This library targets .NET Standard 2.0, Xamarin.iOS and Xamarin.Android, it is here as a reference
<Project Sdk="MSBuild.Sdk.Extras/2.0.24">
<PropertyGroup Label="Globals">
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
</PropertyGroup>
<PropertyGroup>
@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.
@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 / 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 / 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 / gist:4da581c88cfe776b5d70a4b06b5d258e
Created February 12, 2021 20:04
DELETE BIN / OBJ SCRIPT
# Consignes d'utilisation de ce script :
#
# - Il faut lancer ce script dans un répertoire qui contient à la racine une solution Visual Studio (.sln)
#
# - Il est préférable que Visual Studio soit fermé pendant que le script se éxécute
#
# - Il est préférable que l'on aie fait un "Get Latest" des fichiers concernées par cette
# solution avant de lancer le script
#
# - Il faut s'assurer que toutes les variables d'environnement systèmes nécessaires soient
@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
{
/*