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!
}
@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;
}