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 / lambda_function_cucuta_cloud.py
Created April 28, 2026 17:22
C贸digo fuente para la funci贸n AWS Lambda utilizada en la charla "Crea tu F谩brica de IA con Amazon Rekognition" de C煤cuta-Cloud.
import boto3
def lambda_handler(event, context):
rekognition = boto3.client('rekognition')
s3 = boto3.client('s3')
# Obtener el nombre del bucket y la foto del evento
bucket = event['Records'][0]['s3']['bucket']['name']
key = event['Records'][0]['s3']['object']['key']
@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"
]