Skip to content

Instantly share code, notes, and snippets.

Avatar

Vicente G. Guzmán Lucio LucioMSP

View GitHub Profile
@LucioMSP
LucioMSP / código_conducta
Created Mar 18, 2021
Código de Conducta - Blazor en Español
View código_conducta
* Cero Tolerancia a la Piratería:
- No está permitido compartir piratería.
- Enlaces a descarga ilegal de libros, videos y recursos de pago.
- Virtualización de OSX en un hardware diferente a una Mac.
- Enlaces a software crackeado o modificado de su versión original.
* Cero Insultos, Ataques u Hostigamiento:
Se solicita respeto cuando te comuniques con los demás compañeros.
@LucioMSP
LucioMSP / LucyBot.json
Created Feb 17, 2021
Example JSON file to connect a Bot created in Azure to an Alexa Skill
View LucyBot.json
{
"interactionModel": {
"languageModel": {
"invocationName": "lucy bot",
"intents": [
{
"name": "GetUserIntent",
"slots": [
{
"name": "phrase",
@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 / 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();