Skip to content

Instantly share code, notes, and snippets.

View icalderond's full-sized avatar
👨‍💻
Working in home

Israel Calderon de la Cruz icalderond

👨‍💻
Working in home
View GitHub Profile
@icalderond
icalderond / xamarinandroidbindings.md
Created August 30, 2022 01:32 — forked from JonDouglas/xamarinandroidbindings.md
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:

@icalderond
icalderond / propfull_icc.snippet
Created March 18, 2020 20:01
Snippets for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>propfullqs</Title>
<Shortcut>propfullqs</Shortcut>
<Description>Fragmento de código para la propiedad y el campo de respaldo para QuarkSoft</Description>
<Author>Israel Calderon de la Cruz</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
@icalderond
icalderond / Get fingerprint keystore.txt
Created September 18, 2019 16:13
Get fingerprint keystore android
keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test
@icalderond
icalderond / GenerateGenericString.cs
Created August 23, 2019 20:58
Generar una cadena de caracteres aleatoria
private string GetStringByCharacterCount(string cadena, int cantidadCaracteres)
{
if (cadena.Length >= cantidadCaracteres)
return cadena.Substring(0, cantidadCaracteres);
else
return GetStringByCharacterCount(cadena + Guid.NewGuid().ToString(), cantidadCaracteres);
}
@icalderond
icalderond / MessagingCenter.cs
Created May 9, 2019 15:00
Usando Messaging Center Xamarin Forms
MessagingCenter.Subscribe<MainMenuViewModel, int>(this, "ChangeCounter", (sender, args) => Counter = args);
//MainMenuViewModel.cs
MessagingCenter.Send(this, "ChangeCounter", configApp.CounterMessage);
@icalderond
icalderond / SeparaConcatenaVarchar.sql
Created October 23, 2017 14:33
Agregar un caracter en un texto cada cierto numero de caracteres
CREATE FUNCTION [dbo].[SeparaConcatenaVarchar]
(
@string VARCHAR(MAX),
@limit int,
@separator char(1)
)
RETURNS VARCHAR(MAX)
BEGIN
@icalderond
icalderond / circle.xaml
Last active August 10, 2017 15:02
Conociendo XAML (eXtensible Application Markup Language)
<Ellipse Fill="Magenta" Width="100" Height="100"/>
@icalderond
icalderond / Basic
Last active November 26, 2021 23:15
Comandos GIT
# Change editor replacing VIM editor with VS Code
# On macOS
git config --global core.editor "code-insiders --new --wait"
# On Windows
git config --global core.editor "'C:\Program Files\Sublime Text 3\sublime_text.exe' -new -w"
# Command dictionary
# --new , -n : Open editor on new window
# --wait, -w : When editor is closed the terminar is enable for contoune wrriting more commands
@icalderond
icalderond / git-tag-delete-local-and-remote.sh
Created June 13, 2017 17:04 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@icalderond
icalderond / UppercaseFirst.cs
Created July 7, 2016 21:53
Convertir la primera letra en Mayuscula
public static string UppercaseFirst(string text)
{
var s = text.TrimEnd().TrimStart().ToLower();
// Check for empty string.
if (string.IsNullOrEmpty(s))
return string.Empty;
var arr = s.Split(' ');
foreach (var item in arr)
s = s.Replace(item, char.ToUpper(item[0]) + item.Substring(1));