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" | |
| ] |
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
| 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))] |
NewerOlder