Skip to content

Instantly share code, notes, and snippets.

View LucioMSP's full-sized avatar
🏠
Working from home

Vicente Guzmán LucioMSP

🏠
Working from home
View GitHub Profile
@LucioMSP
LucioMSP / .json YouTube
Last active January 15, 2024 04:25
JSON YouTube Skill
{
"interactionModel": {
"languageModel": {
"invocationName": "YouTube",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]
@LucioMSP
LucioMSP / MariaBot.json
Last active July 7, 2022 22:22
Example JSON file to connect a Bot created in Azure to an Alexa Skill
{
"interactionModel": {
"languageModel": {
"invocationName": "maria bot",
"intents": [
{
"name": "GetUserIntent",
"slots": [
{
"name": "phrase",
@LucioMSP
LucioMSP / código_conducta
Created March 18, 2021 20:50
Código de Conducta - Blazor en Español
* 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 February 17, 2021 17:59
Example JSON file to connect a Bot created in Azure to an Alexa Skill
{
"interactionModel": {
"languageModel": {
"invocationName": "lucy bot",
"intents": [
{
"name": "GetUserIntent",
"slots": [
{
"name": "phrase",
@LucioMSP
LucioMSP / PasswordValidationBehaviorPage.xaml
Created July 31, 2020 23:15
XAML PasswordValidationBehavior
<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 June 18, 2020 17:58
ViewModel Property Code Snippet
private $type$ $field$;
public $type$ $property$
{
get => $field$;
set => SetProperty(ref $field$, value);
}
@LucioMSP
LucioMSP / Function.cs - V1
Last active April 24, 2020 20:23
Alexa Skill with Net Core
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 April 24, 2020 01:47
Código de ejemplo en donde se muestra el manejo de SLOTS - FirstSkill - Hola mi nombre es Lucio", intenta decir eso con tu nombre
{
"interactionModel": {
"languageModel": {
"invocationName": "first skill",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]
@LucioMSP
LucioMSP / index.js
Created November 23, 2019 03:58
Curiosidades Interesantes - Ejemplo de guía explicada en Twitter
// 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 November 13, 2019 15:26
Example of how to implement Telerik SideDrawer control in Xamarin.Forms applications
<?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>