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
CREATE TABLE IF NOT EXISTS app_user ( | |
user_id SERIAL PRIMARY KEY, | |
email VARCHAR(255) NOT NULL, | |
password VARCHAR(255) NOT NULL | |
); | |
CREATE TABLE IF NOT EXISTS image ( | |
image_id SERIAL PRIMARY KEY, | |
name VARCHAR(255) NOT NULL, | |
created_by INT NOT NULL references app_user(user_id) | |
); |
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
from flask import Flask | |
from flask import Response | |
import requests | |
app = Flask(__name__, static_url_path='/change_this_to_somthing_else_that_is_not_static') | |
basePath = 'https://create-react-app-example.vercel.app' | |
# basePath = 'https://www.intercom.com' |
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
[{"username":"dineshsonachalam"}] |
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
[] |
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
<!-- MARKDOWN-AUTO-DOCS:START (CODE:src=https://raw.githubusercontent.com/kubernetes/kubectl/master/docs/book/examples/nginx/nginx.yaml) --> | |
<!-- MARKDOWN-AUTO-DOCS:END --> |
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 argparse | |
import os | |
def get_cli_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-repo', required=True) | |
parser.add_argument('-access_token', required=True) | |
parser.add_argument('-commit_author', required=True) | |
parser.add_argument('-commit_user_email', required=True) | |
parser.add_argument('-commit_message', required=True) |
<!-- AUTO-GENERATED-CONTENT:START (artifactsTable) -->
This content will be dynamically replaced with a table listing workflow artifacts.
<!-- AUTO-GENERATED-CONTENT:END -->
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
from LucidDynamodb.Operations import DynamoDb | |
import os | |
import logging | |
import uuid | |
from boto3.dynamodb.conditions import Key | |
logging.basicConfig(level=logging.INFO) | |
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") | |
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY") |
NewerOlder