Skip to content

Instantly share code, notes, and snippets.

Vicente G. Guzman Lucio LucioMSP

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / MainPage.xaml.cs
Created Nov 8, 2019
Ejemplo de cómo implementar la autenticación biométrica en aplicaciones Xamarin.Forms
View MainPage.xaml.cs
using System;
using Xamarin.Forms;
using Plugin.Fingerprint;
using System.ComponentModel;
namespace FingerPrintPCL
{
[DesignTimeVisible(false)]
public partial class MainPage : ContentPage
{
@LucioMSP
LucioMSP / MainPage.xaml
Created Nov 8, 2019
Ejemplo de cómo implementar la autenticación biométrica en aplicaciones Xamarin.Forms
View MainPage.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"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="FingerPrintPCL.MainPage">
<StackLayout VerticalOptions="Center">
You can’t perform that action at this time.