Skip to content

Instantly share code, notes, and snippets.

View Vetrivel-VP's full-sized avatar
😃
Working

Vetrivel Ravi Vetrivel-VP

😃
Working
  • Doha
View GitHub Profile
@Vetrivel-VP
Vetrivel-VP / gist:c7a44b9f696b695148844331a0c6995a
Last active July 2, 2024 12:43
E-Commerce Store Helper Codes
NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_api_key
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_api_key
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_api_key
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_api_key
NEXT_PUBLIC_FIREBASE_APP_ID=your_api_key
------------------------------------------------------------------------------------------------------------------------
Google Ai Studio Scripts
/*
* Install the Generative AI SDK
*
* $ npm install @google/generative-ai
*
* See the getting started guide for more information
* https://ai.google.dev/gemini-api/docs/get-started/node
@Vetrivel-VP
Vetrivel-VP / gist:ef10c6474926201f1f27184238b36112
Last active August 17, 2024 09:16
Expence Tracker - Themeselection NextJs, Typescript, Mongodb
Source Link : https://themeselection.com/?ref=55
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
relationMode = "prisma"
@Vetrivel-VP
Vetrivel-VP / gist:675df119058f03bd92e85b4371328393
Created September 17, 2024 06:01
Used Cars & Bikes Hub with Next.js & Prisma - Contact Owners Directly! 🚗🏍️
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
generator client {
provider = "prisma-client-js"
}
@Vetrivel-VP
Vetrivel-VP / gist:96043efe0449fa19e4bec3cedc37ee7b
Last active October 24, 2024 06:10
YT-Used Vehicles - NextJs Prisma
Firebase confif ENV variables
----------------------------------------------------------------------------------------------------------------------------
NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
const firebaseConfig = {
const prompt = `
As an experienced prompt engineer, generate a JSON array containing 5 technical interview questions along with detailed answers based on the following job information. Each object in the array should have the fields "question" and "answer", formatted as follows:
[
{ "question": "<Question text>", "answer": "<Answer text>" },
...
]
Job Information:
- Job Position: ${data?.position}
hero.tsx
---------------------------------------------------------------------------------------------------------------------
"use client";
import React, { useRef } from "react";
import { Container } from "@/components/container";
import { GenerateButton } from "../generate-button";
import Link from "next/link";
import starsBg from "@/assets/stars.png";