Skip to content

Instantly share code, notes, and snippets.

View iamshubhamjangle's full-sized avatar
🎯
Focusing

Shubham jangle iamshubhamjangle

🎯
Focusing
View GitHub Profile
"use client";
import Image from "next/image";
import toast from "react-hot-toast";
import { X } from "lucide-react"; // Assuming the X icon from lucide-react is available
import { Card, CardContent, CardFooter } from "./card";
import { useState, useCallback, Dispatch, SetStateAction } from "react";
import { useDropzone, FileRejection } from "react-dropzone";
type ImageDropzoneHook = {
@iamshubhamjangle
iamshubhamjangle / next13-tips.md
Last active January 21, 2024 15:17
Next.js Tips & Tricks

Setting up new yarn nextjs project

yarn create next-app my-app     # Create new project my-app
yarn install                    # Install all dependencies
yarn dev                        # Run development server
yarn add lodash                 # Add new package
yarn remove lodash              # Remove a package

Depends on what version your on. For 12 next/future/image and 13 here's a fun trick:

@iamshubhamjangle
iamshubhamjangle / setup.md
Last active October 25, 2023 16:50 — forked from GooRiOn/setup.md
Git For Win + Windows Terminal Setup
@iamshubhamjangle
iamshubhamjangle / instagram.js
Last active January 20, 2025 09:35
Instagram Followers and Non followers
const arr = document.getElementById('followers')
const followers = [];
arr.querySelectorAll('a[href^="/"]').forEach(a => {
followers.push(a.href)
});
const following = [];
const arr2 = document.getElementById('following')
arr2.querySelectorAll('a[href^="/"]').forEach(a => {
following.push(a.href)