Skip to content

Instantly share code, notes, and snippets.

View diondree's full-sized avatar
💭
Building and learning

Diondre Edwards diondree

💭
Building and learning
View GitHub Profile
@diondree
diondree / SingleTableAppSync.md
Created September 4, 2020 20:15 — forked from dabit3/SingleTableAppSync.md
GraphQL Single Table Design with DynamoDB and AWS AppSync

GraphQL

GraphQL Schema

type Customer {
  id: ID!
  email: String!
}
@diondree
diondree / SingleTableAppSync.md
Created September 4, 2020 20:15 — forked from dabit3/SingleTableAppSync.md
GraphQL Single Table Design with DynamoDB and AWS AppSync

GraphQL

GraphQL Schema

type Customer {
  id: ID!
  email: String!
}
.main-content {
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
min-height: 650px;
}
.login-form {
background-color: white;
padding: 48px 16px;
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Lambda resource stack creation using Amplify CLI",
"Parameters": {
"CloudWatchRule": {
"Type": "String",
"Default": "NONE",
"Description": " Schedule Expression"
},
"env": {
@diondree
diondree / useCarousel.ts
Created June 7, 2020 22:12 — forked from FlorianRappl/useCarousel.ts
The generic useCarousel hook.
import { useReducer, useEffect } from 'react';
import { useSwipeable, SwipeableHandlers, EventData } from 'react-swipeable';
function previous(length: number, current: number) {
return (current - 1 + length) % length;
}
function next(length: number, current: number) {
return (current + 1) % length;
}
@diondree
diondree / .eslintrc.js
Last active March 30, 2021 02:24
My React Typescript ESLint configuration using prettier and jsx-a11y
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { jsx: true },
},
env: {
browser: true,
node: true,
},
@diondree
diondree / .eslintrc.js
Created February 26, 2020 19:15
Working Typescript Eslint configuration using Prettier, Airbnb and jsx-a11y
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jest', 'jsx-a11y', 'prettier'],
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'prettier/react',
'prettier/@typescript-eslint',
This file has been truncated, but you can view the full file.
[
{
"_id": "5df38f6e695566a48211da8f",
"first_name": "Blankenship",
"last_name": "Vincent",
"email": "blankenshipvincent@rocklogic.com",
"children": {
"first_name": "Robinson",
"last_name": "Alston",
"email": "robinsonalston@rocklogic.com"
This file has been truncated, but you can view the full file.
[
{
"_id": "5df3996f42f77f726c9b217c",
"first_name": "Althea",
"last_name": "Macias",
"email": "altheamacias@dadabase.com",
"children": {
"first_name": "Dillard",
"last_name": "Wright",
"email": "dillardwright@dadabase.com"
[{"id":1,"first_name":"Vanessa","last_name":"Grimsell","email":"ewofenden0@patch.com","children":{"first_name":"Elsa","last_name":"Willmetts","email":"Wofenden"}},
{"id":2,"first_name":"Mordecai","last_name":"Lauks","email":"cblanko1@google.nl","children":{"first_name":"Calypso","last_name":"Lobbe","email":"Blanko"}},
{"id":3,"first_name":"Theressa","last_name":"Sellars","email":"acastelletti2@cnet.com","children":{"first_name":"Alyda","last_name":"Georgeon","email":"Castelletti"}},
{"id":4,"first_name":"Pebrook","last_name":"Delafoy","email":"dnabarro3@rambler.ru","children":{"first_name":"Domeniga","last_name":"Gottschalk","email":"Nabarro"}},
{"id":5,"first_name":"Aurea","last_name":"Hoodlass","email":"sovey4@xinhuanet.com","children":{"first_name":"Salomi","last_name":"Jados","email":"Ovey"}},
{"id":6,"first_name":"Fields","last_name":"Skoate","email":"halanbrooke5@twitter.com","children":{"first_name":"Hughie","last_name":"Ruben","email":"Alanbrooke"}},
{"id":7,"first_name":"Jerrie","last_name":"Brittin"