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 / Curiosidades de Mexico
Last active January 24, 2019 17:46
Alexa, abre curiosidades de mexico y dame un dato
//Lambda
const Alexa = require('ask-sdk');
const LaunchRequestHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
},
handle(handlerInput) {
{
"interactionModel": {
"languageModel": {
"invocationName": "piropos mexicanos",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela eso",
"olvidalo",
@LucioMSP
LucioMSP / .JSON - Frases Geeks
Created March 26, 2019 22:01
Alexa, abre frases geeks y dime una frase
{
"interactionModel": {
"languageModel": {
"invocationName": "frases geeks",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]
Política de Privacidad y Términos de Uso de nuestra Skill de Alexa.
Esta política describe cómo protegemos tu privacidad y tus datos. Antes de utilizar nuestra Skills de Alexa, lee atentamente nuestras políticas y términos de uso, al igual que los términos de uso de Alexa y las políticas de privacidad de Amazon Digital Services LLC (con sus afiliadas, “Amazon).
Con respecto a Amazon, “Alexa” significa el Servicio de voz de Alexa que incluye servicios de terceros (como nuestras skills) y otro Software relacionado.
Si utilizas una de nuestras skills, acepta completamente esta política de privacidad.
GENERAL
@LucioMSP
LucioMSP / ObservableObject.cs
Created July 22, 2019 14:47
ObservableObject.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace CurrencyUISample.Classes
{
public class ObservableObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
@LucioMSP
LucioMSP / CurrencyConverter.cs
Created July 22, 2019 14:53
CurrencyConverter.cs
using System;
using Xamarin.Forms;
using System.Globalization;
using System.Text.RegularExpressions;
namespace CurrencyUISample.Converters
{
/// <summary>
/// Converter for using in Entry fields for masked input of currency.
/// <b>The binded property must be of type decimal, and must invoke the
@LucioMSP
LucioMSP / MainPage.xaml
Created July 22, 2019 15:05
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"
xmlns:util="clr-namespace:CurrencyUISample.Converters;assembly=CurrencyUISample"
mc:Ignorable="d" x:Class="CurrencyUISample.MainPage"
BackgroundColor="{StaticResource Bluebull}">
<ContentPage.Resources>
@LucioMSP
LucioMSP / MainPageVM.cs
Created July 22, 2019 15:06
MainPageVM.cs
using Xamarin.Forms;
using System.Windows.Input;
using CurrencyUISample.Classes;
namespace CurrencyUISample.ViewModels
{
public class MainPageVM: ObservableObject
{
private INavigation _navigation;
public ICommand TransferMoneyCommand {get; set;}
@LucioMSP
LucioMSP / MainPage.xaml.cs
Created July 22, 2019 15:08
MainPage.xaml.cs
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using CurrencyUISample.ViewModels;
namespace CurrencyUISample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MainPage : ContentPage
{
MainPageVM vm = null;
@LucioMSP
LucioMSP / Consejos del Abuelo.JSON
Last active October 26, 2019 18:24
Alexa, lanza consejos del abuelo
{
"interactionModel": {
"languageModel": {
"invocationName": "consejos del abuelo",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]