Skip to content

Instantly share code, notes, and snippets.

View renganatha10's full-sized avatar

Renganatha Arunachalam renganatha10

  • Bangalore
View GitHub Profile
{
"workbench.colorTheme": "Night Owl",
"git.enableSmartCommit": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": false,
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "Monaco",
"editor.fontSize": 14,
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint"
],
SELECT (SELECT pl.id, pl."postId" FROM "PostLikes" as pl where "Posts".id = pl."postId" ) as postCount, "Posts"."id" as "postId" FROM "Posts"
INNER JOIN "Users" as "user" ON "Posts"."userId" = "user"."id"
WHERE "Posts"."userId" = '40f7198d-6851-4e19-94fb-df0094b84bb6'
@renganatha10
renganatha10 / vpc.yml
Created September 27, 2020 06:46
Cloud Formation for Deep Dive VPC
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.1.0.0/16
EnableDnsSupport: true
EnableDnsHostnames: true
Tags:
- Key: Name
Value: !Sub ${AWS::StackName}-web-pub
{ "openapi": "3.0.1", "info": { "title": "Event Processing API", "description": "Yodel Event Processing API", "version": "1.0.0" }, "servers": [ { "url": "http://localhost:8108", "description": "Generated server url" } ], "paths": { "/receiveEvent": { "post": { "tags": [ "json-event-receiver-controller" ], "summary": "Process Tracking Event", "operationId": "processJsonEvent", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonEvent" } } }, "required": true }, "responses": { "201": { "description": "Event processed successfully" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/YodelResponseBody" }, "examples": { "Invalid Argument": { "summary": "throw when invalid request body passed", "description": "Invalid Argument", "value": { "status": "FAIL", "code": "400 BAD_REQUEST", "message": "INVALID_ARGUMENTS", "data": null, "fieldInformation": { "fieldList": [ { "field": "pudoLocationId", "informat