- Develop Code
- Publish Lambda, code lives in S3
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 { APIGatewayEvent, APIGatewayProxyResult, Context } from 'aws-lambda' | |
import { createYoga } from 'graphql-yoga' | |
import { getDb, dbSchema } from '@_models' | |
import { schema } from './schema' | |
import { ResolverContext } from './types' | |
import { NodePgDatabase } from 'drizzle-orm/node-postgres' | |
const yoga = createYoga<ResolverContext>({ | |
schema, |
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 { CodegenConfig } from '@graphql-codegen/cli' | |
const modelNames = [ | |
'User', | |
'Contractor', | |
'JobSite', | |
'Project', | |
'PunchListItem', | |
'ScheduleItem', | |
'Section', |
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 type { EditorConfig } from '@editorjs/editorjs' | |
// The image tool has no types, if using TS you'll need to define them. See below for example | |
import ImageTool from '@editorjs/image' | |
import axios from 'axios' | |
const editorOptions: EditorConfig = { | |
tools: { | |
image: { | |
class: ImageTool, | |
config: { |
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
/** Types for @uphold/uphold-sdk-javascript as of July 9th, 2021 | |
* Use as your own risk, as these types are created by hand from someone outside of the Uphold organization. | |
*/ | |
declare module '@uphold/uphold-sdk-javascript' { | |
type HttpMethod = string // 'get' | 'post' | 'delete' | 'put' | 'patch' | |
export interface SdkConstructorArgs { | |
/** Key used to store the access token | |
* @default uphold.access_token | |
*/ |
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
Transform: 'AWS::Serverless-2016-10-31' | |
Parameters: | |
Stage: | |
Type: String | |
CloudFrontDistributionId: | |
Type: String | |
BranchToRunBuildFrom: | |
Type: String | |
RepositoryUrl: |
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
#!/bin/sh | |
Red="\033[0;31m" # Red | |
Green="\033[0;32m" # Green | |
BICyan="\033[1;96m" # Bold Cyan | |
# Reset | |
Color_Off="\033[0m" # Text Reset | |
printf "\n\n$BICyan$( echo Deploying the Docker container )$Color_Off" |
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
Transform: 'AWS::Serverless-2016-10-31' | |
Parameters: | |
ClusterName: | |
Type: String | |
Stage: | |
Type: String | |
Resources: |
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
const baseArray = [ | |
{value: 1}, | |
{value: 4}, | |
{value: 8}, | |
{value: 9}, | |
{value: 7}, | |
{value: 2}, | |
{value: 3}, | |
{value: 5}, | |
{value: 6}, |
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
#!/bin/bash | |
echo '##### (33%)\r\c' | |
sleep 1 | |
echo '############# (66%)\r\c' | |
sleep 1 | |
echo '####################### (100%)\r\c' | |
echo '\n' |
NewerOlder