Skip to content

Instantly share code, notes, and snippets.

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

Vicente Guzmán LucioD3v

🏠
Working from home
View GitHub Profile
@LucioD3v
LucioD3v / Politica_Previa.json
Last active September 18, 2025 16:43
Política para integrar Amazon Nova Lite en una Alexa Skill
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel"
],
"Resource": "arn:aws:bedrock:<REGION>::foundation-model/amazon.titan-text-lite-v1"
},
@LucioD3v
LucioD3v / Lambda_fuction_Nova_Lite.py
Last active September 24, 2025 20:43
Código para integrar Amazon Nova Lite en una Alexa Skill
import json
import boto3
bedrock = boto3.client('bedrock-runtime')
def lambda_handler(event, context):
try:
intent_name = event['request']['intent']['name']
if intent_name == 'GenerarTextoNova':
@LucioD3v
LucioD3v / AgeCalculator.java
Created February 25, 2025 22:17
This Java application calculates the age of a user based on their birthdate. It also provides additional information such as the number of days until the user's next birthday and wishes them a happy birthday if today is their birthday.
import java.time.LocalDate;
import java.time.Period;
import java.util.Scanner;
public class AgeCalculator {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Prompt the user to enter their birth year
System.out.println("Enter your birth year: ");
@LucioD3v
LucioD3v / 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",
@LucioD3v
LucioD3v / 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.
@LucioD3v
LucioD3v / 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",
@LucioD3v
LucioD3v / 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>
@LucioD3v
LucioD3v / 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);
}
@LucioD3v
LucioD3v / 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"
]
@LucioD3v
LucioD3v / 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))]