Skip to content

Instantly share code, notes, and snippets.

Avatar

Vicente G. Guzmán Lucio LucioMSP

View GitHub Profile
@LucioMSP
LucioMSP / PasswordValidationBehaviorPage.xaml
Created Jul 31, 2020
XAML PasswordValidationBehavior
View PasswordValidationBehaviorPage.xaml
<StackLayout Padding="{StaticResource ContentPadding}"
Spacing="50"
VerticalOptions="CenterAndExpand">
<Label Text="Text color will change accordingly to the style that is configured when a invalid value (password) is entered. Password rule should contain at least 8 characters, 1 numeric, 1 lowercase, 1 uppercase, 1 special character [eg: R3dDr@g0n]." />
<Entry IsPassword="True" Placeholder="Password">
<Entry.Behaviors>
<behaviors:PasswordValidationBehavior InvalidStyle="{StaticResource InvalidEntryStyle}"/>
</Entry.Behaviors>
</Entry>
</StackLayout>
@LucioMSP
LucioMSP / vm_property.cs
Created Jun 18, 2020
ViewModel Property Code Snippet
View vm_property.cs
private $type$ $field$;
public $type$ $property$
{
get => $field$;
set => SetProperty(ref $field$, value);
}
@LucioMSP
LucioMSP / Function.cs - V1
Last active Apr 24, 2020
Alexa Skill with Net Core
View Function.cs - V1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.LambdaJsonSerializer))]
@LucioMSP
LucioMSP / FirstSkill - .JSON
Created Apr 24, 2020
Código de ejemplo en donde se muestra el manejo de SLOTS - FirstSkill - Hola mi nombre es Lucio", intenta decir eso con tu nombre
View FirstSkill - .JSON
{
"interactionModel": {
"languageModel": {
"invocationName": "first skill",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]
@LucioMSP
LucioMSP / index.js
Created Nov 23, 2019
Curiosidades Interesantes - Ejemplo de guía explicada en Twitter
View index.js
// This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2).
// Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management,
// session persistence, api calls, and more.
const Alexa = require('ask-sdk-core');
const LaunchRequestHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest';
},
handle(handlerInput) {
@LucioMSP
LucioMSP / SideDrawerXAML.xaml
Last active Nov 13, 2019
Example of how to implement Telerik SideDrawer control in Xamarin.Forms applications
View SideDrawerXAML.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TrkSideDrawer.Views.SideDrawerXAML"
xmlns:telerik="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives">
<telerik:RadSideDrawer x:Name="Drawer" DrawerLength="200" >
<telerik:RadSideDrawer.MainContent>
<Label Text="Side Menu" Margin="15,50"/>
</telerik:RadSideDrawer.MainContent>
@LucioMSP
LucioMSP / TransitionsPage.xaml
Created Nov 13, 2019
Example of how to implement Telerik SideDrawer control in Xamarin.Forms applications
View TransitionsPage.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TrkSideDrawer.Views.TransitionsPage"
xmlns:telerik="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives">
<ContentPage.ToolbarItems>
<ToolbarItem Activated="OnToolbarButtonClick"
Order="Primary"
@LucioMSP
LucioMSP / LocationPage.xaml
Last active Nov 12, 2019
Example of how to implement Telerik SideDrawer control in Xamarin.Forms applications
View LocationPage.xaml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TrkSideDrawer.Views.LocationPage"
xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives">
<ContentPage.ToolbarItems>
<ToolbarItem Activated="OnToolbarButtonClick"
Order="Primary"
Priority="0"
@LucioMSP
LucioMSP / SideDrawerCode.cs
Last active Nov 12, 2019
Example of how to implement Telerik SideDrawer control in Xamarin.Forms applications
View SideDrawerCode.cs
using Xamarin.Forms;
using Telerik.XamarinForms.Primitives;
namespace TrkSideDrawer.Views
{
public class SideDrawerCode : ContentPage
{
public SideDrawerCode()
{
var drawerContent = new StackLayout();
@LucioMSP
LucioMSP / AndroidManifest.xml
Last active Nov 8, 2019
Ejemplo de cómo implementar la autenticación biométrica en aplicaciones Xamarin.Forms
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.ss.mx.fingerprintpcl">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="FingerPrintPCL.Android"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
</manifest>
You can’t perform that action at this time.