Skip to content

Instantly share code, notes, and snippets.

View kiritocode1's full-sized avatar
🪄
Abra Cadabra

Aryan Kathawale kiritocode1

🪄
Abra Cadabra
View GitHub Profile
@kiritocode1
kiritocode1 / begin(C++).md
Created October 6, 2021 04:48 — forked from johnmcfarlane/begin(C++).md
Resources for C++ beginners
@kiritocode1
kiritocode1 / .tsx
Created January 14, 2024 10:21
Infinite Scrolling lol
"use client";
import { Card , Image } from "@nextui-org/react";
import { gsap } from "gsap";
import localFont from "next/font/local";
import { Projects, colour , ProjectShow} from "@/lib/Projects";
import { useGSAP } from "@gsap/react";
import { Observer, ScrollTrigger } from "gsap/all";
import React , {
useState,useEffect
@kiritocode1
kiritocode1 / .ts
Last active January 16, 2024 19:14
0$ Ai project
//? npm i @huggingface/inference
//? npm i --save-dev dotenv
//? get the api key from here : https://huggingface.co/settings/tokens
// 💖 written by Aryan Kathawale :)
import { HfInference } from "@huggingface/inference";
import { config } from "dotenv";
@kiritocode1
kiritocode1 / youtube-video-efffect.tsx
Last active September 22, 2024 07:21
replicating youtube effect in a speedrun : 2 hrs
"use client";
import { FC, useEffect, useRef } from "react";
interface pageProps {}
const Page: FC<pageProps> = ({}) => {
return (
<div className="flex min-h-screen bg-black relative items-center justify-center min-w-full">
<video
className="w-[600px] max-w-full h-auto absolute z-20 translate-x-1/2 translate-y-[60%] scale-[1.5_1.3] rounded-[30%] blur-[100px] saturate-200 opacity-50"
@kiritocode1
kiritocode1 / r2-sdk-v3.ts
Created September 30, 2024 17:28
cloudflare
import { GetObjectCommand, GetObjectCommandOutput, S3Client, ListObjectsV2Command , S3 } from "@aws-sdk/client-s3";
import "dotenv/config";
import fs from "node:fs";
import path from "path";
import {Writable} from "stream"
const { AccessKeyId, SecretAccessKey, S3ClientLink } = process.env;
if (!AccessKeyId || !SecretAccessKey || !S3ClientLink) throw new Error("Missing environment variables");
class S3Handler {
//! blog.localhost:3000/ -> hidden(localhost:3000/articles)
//? subdomain.vercel.app -> hidden(vercel.app/{subdomain})
import { NextRequest, NextResponse } from "next/server";