- Single Responsibility Principle (SRP)
- Open/Closed Principle (OCP)
- Liskov Substitution Principle (LSP)
- Interface Segregation Principle (ISP)
- Dependency Inversion Principle (DIP)
This file contains hidden or 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
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
This file contains hidden or 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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObjectAcl", | |
"s3:GetObject", | |
"s3:DeleteObject", |
Source: https://www.youtube.com/watch?v=qw--VYLpxG4
\l
This file contains hidden or 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
// This file adds coloring to the announcements to make it easier to read and understand what's going on | |
import { | |
DragCancelEvent, | |
DragEndEvent, | |
DragMoveEvent, | |
DragOverEvent, | |
DragStartEvent, | |
useDndMonitor, | |
} from "@dnd-kit/core"; |
This file contains hidden or 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
# Creating a next app from example template | |
# All examples: https://github.com/vercel/next.js/tree/canary/examples | |
yarn create next-app -e app-dir-mdx . |
This file contains hidden or 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
"use client" | |
import React, { useState, SetStateAction, Dispatch } from "react"; | |
import { Color, colors } from "@/types" | |
import { useIsomorphicLayoutEffect } from "usehooks-ts"; | |
interface ThemeContextProps { | |
theme: Color; | |
setTheme: Dispatch<SetStateAction<Color>> | null; | |
} |