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 sys | |
from awsglue.transforms import * | |
from awsglue.utils import getResolvedOptions | |
from pyspark.context import SparkContext | |
from awsglue.context import GlueContext | |
from awsglue.job import Job | |
from pyspark.sql.functions import * | |
from awsglue.dynamicframe import DynamicFrame | |
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 ec2 = require('@aws-cdk/aws-ec2'); | |
import ecs = require('@aws-cdk/aws-ecs'); | |
import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); | |
import cdk = require('@aws-cdk/core'); | |
import route53 = require('@aws-cdk/aws-route53'); | |
import acm = require('@aws-cdk/aws-certificatemanager'); | |
import targets = require('@aws-cdk/aws-route53-targets/lib'); | |
import path = require('path'); | |
import { config } from 'dotenv'; | |
import { ApplicationProtocol, SslPolicy } from '@aws-cdk/aws-elasticloadbalancingv2'; |
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
package com.blogspot.lifeinide.postgres.locks; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.hibernate.exception.LockAcquisitionException; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.core.Ordered; | |
import org.springframework.stereotype.Component; |
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 schema provides a comprehensive foundation for a hospital management system, | |
-- outlining the key entities involved and their interrelationships. | |
-- Adjustments may be required based on specific system requirements, | |
-- such as adding or modifying tables and relationships. | |
-- uncomment the below statements to recreate the schema | |
DROP TYPE IF EXISTS _roomType CASCADE; | |
DROP TABLE IF EXISTS hospital CASCADE; | |
DROP TABLE IF EXISTS department CASCADE; | |
DROP TABLE IF EXISTS employee CASCADE; |
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
[flake8] | |
max-line-length = 88 | |
max-complexity = 12 | |
select = C,E,F,W,B,B950 | |
ignore = E203, E501, W503 |
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
# Based on the following: | |
# https://www.datainsightonline.com/post/how-to-generate-fake-dataset-with-python-faker-library | |
# https://deparkes.co.uk/2020/12/28/python-fake-data-with-faker/ | |
from faker.providers import BaseProvider | |
from faker import Faker | |
import pandas as pd | |
from loguru import logger | |
fake = Faker("en_GB") |
OlderNewer