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 | |
| import uuid | |
| import json | |
| # Create a boto3 client for SES | |
| ses_client = boto3.client('ses') | |
| def lambda_handler(event, context): | |
| for record in event['Records']: | |
| print(record) |
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 | |
| # Create a boto3 client for SES | |
| ses_client = boto3.client("ses") | |
| def lambda_handler(event, context): | |
| # Activation | |
| sender_email = "iambatmanbrucewayne6789@gmail.com" |
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": "2008-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "stmt1689931588490", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "Service": "ses.amazonaws.com" | |
| }, | |
| "Action": "SNS:Publish", |
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 | |
| def lambda_handler(event, context): | |
| lambda_image = 'https://d1.awsstatic.com/Digital%20Marketing/House/PAC/2up/PAC-Q4_House-Ads_Lambda_2up.62dc7e19b7b2e0a2c06821594c31f1ce00a6bdda.png' | |
| response = { | |
| 'image': lambda_image, | |
| 'text': 'Hello from Lambda!!' | |
| } |
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
| <html> | |
| Ohh An Error Occured !! | |
| </html> |
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
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous" /> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> | |
| </head> | |
| <body> |
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 random | |
| import time | |
| # Introduction | |
| print("""-----------WELCOME TO THE ROCK PAPER SCISSORS GAME----------- | |
| FOR ROCK PRESS 0 | |
| FOR PAPER PRESS 1 | |
| FOR SCISSORS PRESS 2""") | |
| # It takes the input from the user and assigns a value to user_move variable. | |
| while True: |
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 time | |
| import random | |
| # asks for the sign from user | |
| print("Which sign do you want to have ? x or o") | |
| ask_sign = input() | |
| # introduction | |
| print("""|------|------|------| | |
| | 1 | 2 | 3 | | |
| |------|------|------| |