Skip to content

Instantly share code, notes, and snippets.

View Sonsuz's full-sized avatar

Behic G Sonsuz

View GitHub Profile
@Sonsuz
Sonsuz / lambda-function.py
Created November 14, 2022 04:33
lambda function for web app
import json
import boto3
from time import gmtime, strftime
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('WebApp-Table')
now = strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
def lambda_handler(event, context):
name = event['firstname'] +' '+ event['lastname']
@Sonsuz
Sonsuz / lambda-function.py
Last active November 7, 2022 18:36
lambda function for my simple web application project
import json
def lambda_handler(event, context):
name = event['firstname'] +' '+ event['lastname']
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda, ' + name)
}
@Sonsuz
Sonsuz / index.html
Created November 7, 2022 04:09
index html file
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />