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
{ | |
"openapi": "3.0.0", | |
"paths": { | |
"/": { | |
"get": { | |
"operationId": "health", | |
"parameters": [], | |
"responses": { "200": { "description": "" } } | |
} | |
}, |
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
{ | |
"Statement": [ | |
### BEGIN ADDING STATEMENT HERE ### | |
{ | |
"Action": [ | |
"ecr:BatchCheckLayerAvailability", | |
"ecr:CompleteLayerUpload", | |
"ecr:GetAuthorizationToken", | |
"ecr:InitiateLayerUpload", | |
"ecr:PutImage", |
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
version: 0.2 | |
phases: | |
pre_build: | |
commands: | |
- echo Deleting app module | |
- rm -rf apps/app | |
- echo Logging in to Amazon ECR and docker hub... | |
- echo "$DOCKER_PW" | docker login -u "$DOCKER_ID" --password-stdin | |
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com | |
build: |
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
commands: | |
setvars: | |
command: /opt/elasticbeanstalk/bin/get-config environment | jq -r 'to_entries | .[] | "export \(.key)=\"\(.value)\""' > /etc/profile.d/sh.local |
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 "./utils/env"; | |
import { App } from "@slack/bolt"; | |
import { utcToZonedTime } from "date-fns-tz"; | |
// post messages the next time it's 3pm | |
const getNextTimestamp = () => { | |
let date = new Date(); | |
if (date.getHours() > 14) { | |
date.setDate(date.getDate() + 1); |
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
{"openapi":"3.0.0","paths":{"/auth/signin":{"post":{"operationId":"signIn","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}}}},"responses":{"201":{"description":""}},"tags":["Auth"]}},"/auth/google-auth":{"get":{"operationId":"googleSignIn","parameters":[],"responses":{"200":{"description":""}},"tags":["Auth"]}},"/auth/google-redirect":{"get":{"operationId":"googleRedirect","parameters":[],"responses":{"200":{"description":""}},"tags":["Auth"]}},"/auth/refresh":{"get":{"operationId":"refreshToken","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponseDto"}}}}},"tags":["Auth"],"security":[{"bearer":[]}]}},"/auth/confirm-email":{"get":{"operationId":"confirmEmailAddress","parameters":[{"name":"token","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/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
interface User { | |
name: string; | |
} | |
interface Props { | |
user: User | |
setUser: (user: User) => void; | |
} | |
const UserDisplay = (props: Props) => { |
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
interface EmptySet { | |
foo: string; | |
bar: string; | |
faz: object; | |
// -> add an infinite number of requirements | |
// ... | |
// ... | |
} |
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
type ReallyPermissiveType = {} | string | number | symbol | bigint | boolean | undefined | null; |
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
interface SmallerType { | |
foo: string; | |
baz: string; | |
} | |
let obj: SmallerType; | |
const smaller = { | |
// included in our requirements | |
foo: "foo", | |
baz: "bar", | |
// infinite number of other properties |
NewerOlder