This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "bedrock:InvokeModel" | |
| ], | |
| "Resource": "arn:aws:bedrock:<REGION>::foundation-model/amazon.titan-text-lite-v1" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "interactionModel": { | |
| "languageModel": { | |
| "invocationName": "maria bot", | |
| "intents": [ | |
| { | |
| "name": "GetUserIntent", | |
| "slots": [ | |
| { | |
| "name": "phrase", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "interactionModel": { | |
| "languageModel": { | |
| "invocationName": "lucy bot", | |
| "intents": [ | |
| { | |
| "name": "GetUserIntent", | |
| "slots": [ | |
| { | |
| "name": "phrase", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private $type$ $field$; | |
| public $type$ $property$ | |
| { | |
| get => $field$; | |
| set => SetProperty(ref $field$, value); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "interactionModel": { | |
| "languageModel": { | |
| "invocationName": "first skill", | |
| "intents": [ | |
| { | |
| "name": "AMAZON.CancelIntent", | |
| "samples": [ | |
| "cancela" | |
| ] |
NewerOlder