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 | |
sudo apt install pkg-config autoconf g++ libmcrypt-dev bison libbison-dev \ | |
re2c build-essential libxml2-dev sqlite3 libsqlite3-dev libssl-dev zlib1g-dev \ | |
libreadline-dev libseccomp-dev libcurl4-openssl-dev libjpeg-dev libpng-dev \ | |
libfreetype6-dev libgpm-dev libgd-dev libonig5 libonig-dev libpq-dev libzip-dev |
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
"use client"; | |
import { Button } from "@/components/ui/button"; | |
import { | |
Form, | |
FormControl, | |
FormField, | |
FormItem, | |
FormLabel, | |
FormMessage, | |
} from "@/components/ui/form"; //shadcn ui folder |
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
DELIMITER // | |
CREATE FUNCTION SlugifyTitle(title VARCHAR(255), sep CHAR(1)) | |
RETURNS VARCHAR(255) | |
BEGIN | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'š', 's'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'Đ', 'Dj'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'đ', 'dj'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'Ž', 'Z'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'ž', 'z'); |
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 useScrollRestoration from "utils/hooks/useScrollRestoration"; | |
const App = ({ Component, pageProps, router }) => { | |
useScrollRestoration(router); | |
return <Component {...pageProps} />; | |
}; | |
export default App; |