This file contains 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 string | |
def generate_password(length=10): | |
"""Generate a random password of specified length.""" | |
characters = string.ascii_letters + string.digits + string.punctuation | |
password = ''.join(random.choice(characters) for _ in range(length)) | |
return password | |
# Example usage |
This file contains 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 random | |
import uuid | |
from faker import Faker | |
fake = Faker() | |
# Replace with your AWS credentials | |
aws_access_key_id = 'YOUR_ACCESS_KEY' | |
aws_secret_access_key = 'YOUR_SECRET_KEY' |
This file contains 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
{yogaPosesData.map((yogaPose) => ( | |
<div | |
id={yogaPose.id} // Ensure this is a unique identifier | |
className="card" | |
draggable={true} | |
onDrag={dragHandler} | |
onDragStart={dragStartHandler} | |
dataYogaPose={JSON.stringify(yogaPose)} | |
key={yogaPose.id} // Use a unique key | |
> |
This file contains 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
exports.handler = async (event) => { | |
const data = { | |
name: "mike", | |
} | |
return { | |
statusCode: 200, | |
body: JSON.stringify(data) | |
}; |