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
function ImageOverLay() { | |
return ( | |
// class image | |
<div className="w-full h-[500px] bg-center bg-cover bg-[url('../../public/happyGuy.jpg')] "> | |
{/* class image-overlay */} | |
<div className="w-full h-[500px] bg-gradient-to-r bg-[rgba(0,48,93,.6)] flex justify-center items-end gap-4"> | |
{/* job finder with three dots */} | |
<div className=""> | |
<div className="bg-white p-1"> |
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
// Place your key bindings in this file to override the defaults | |
[ | |
// { | |
// "key": "shift+ctrl+=", | |
// "command": "editor.action.fontZoomIn" | |
// }, | |
// { | |
// "key": "ctrl+=", | |
// "command": "editor.action.fontZoomIn" | |
// }, |
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
{ | |
// "editor.rulers": [140] // if you ever wanted it | |
"editor.lineHeight": 25, // it works really well with vim | |
// bracket colorize | |
"editor.bracketPairColorization.enabled": true, | |
"editor.guides.highlightActiveBracketPair": true, | |
"editor.guides.bracketPairsHorizontal": "active", | |
"editor.guides.bracketPairs": "active", | |
"editor.autoClosingBrackets": "always", | |
"editor.detectIndentation": false, |
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
// Place your key bindings in this file to override the defaults | |
[ | |
// { | |
// "key": "shift+ctrl+=", | |
// "command": "editor.action.fontZoomIn" | |
// }, | |
// { | |
// "key": "ctrl+=", | |
// "command": "editor.action.fontZoomIn" | |
// }, |
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 { SessionProvider } from "next-auth/react"; | |
import "../styles/globals.css"; | |
import { | |
Hydrate, | |
QueryClient, | |
QueryClientProvider, | |
} from "@tanstack/react-query"; | |
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; | |
import type { AppProps } from "next/app"; |
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
// https://github.com/prisma/prisma/discussions/10037 | |
// and why it does matter: https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/instantiate-prisma-client#the-number-of-prismaclient-instances-matters | |
import { PrismaClient } from "@prisma/client"; | |
let prisma: PrismaClient; | |
if (process.env.NODE_ENV === "production") { | |
prisma = new PrismaClient(); | |
} else { | |
let globalWithPrisma = global as typeof globalThis & { |
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
// source: https://stackoverflow.com/questions/4434076/best-way-to-alphanumeric-check-in-javascript | |
// i just edited a little bit | |
/** | |
* | |
* @param {string} char | |
* @returns | |
*/ | |
function isAlphaNumeric(char) { | |
let code = char.charCodeAt(0); | |
if ( |
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
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
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
module.exports = { | |
purge: [], | |
theme: { | |
extend: { | |
gridTemplateColumns: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', | |
'auto-fill': 'repeat(auto-fill, minmax(0, 1fr))', | |
}, | |
gridTemplateRows: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', |
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
/* -------------- */ | |
/* Global styling */ | |
/* -------------- */ | |
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
body { |
NewerOlder