Skip to content

Instantly share code, notes, and snippets.

View yeasin2002's full-sized avatar
πŸ‡§πŸ‡©
Be Unstoppable, Never Stop Learning

Md Kawsar Islam Yeasin yeasin2002

πŸ‡§πŸ‡©
Be Unstoppable, Never Stop Learning
View GitHub Profile
@yeasin2002
yeasin2002 / README.md
Created November 3, 2025 04:43
Socket.IO Events Reference for job-sphere

Socket.IO Events Reference

Quick reference for all Socket.IO events in the chat system.

Client β†’ Server Events

join_conversation

Join a conversation room to receive real-time messages.

Payload:

@yeasin2002
yeasin2002 / Flutter-Push-Notification.md
Created October 31, 2025 04:05
Flutter Push Notification Integration Guide

Flutter Push Notification Integration Guide

This guide provides step-by-step instructions for integrating Firebase Cloud Messaging (FCM) push notifications in your Flutter mobile app with the JobSphere backend.

Table of Contents

  1. Prerequisites
  2. Flutter Setup
  3. Implementation
  4. Testing

zod-to-openapi β€” guide & example

A concise, practical reference for using @asteasolutions/zod-to-openapi to:

  • maintain one source of truth (Zod schemas) for both runtime validation and OpenAPI docs.
  • generate an OpenAPI v3 document from your Zod schemas.
  • use the same schemas to validate Express requests.

This file is meant to be used as a quick reference or instruction set for Copilot / Cursor / Kiro assistants. Keep schemas central, descriptive, and versioned.

@yeasin2002
yeasin2002 / auth-code.md
Created June 29, 2025 18:48
minimal-auth
/*
File: contexts/AuthContext.tsx
Description: React context for authentication using JWT stored in HTTP-only cookies.
*/
import React, { createContext, useContext, useState, useEffect, ReactNode } from 'react';

// --- Types ---
export interface User {
@yeasin2002
yeasin2002 / auth.md
Created June 29, 2025 18:21
custom auth with next.js

Authentication Session Manager

A lightweight authentication session management system for Next.js applications using JWT tokens and HTTP-only cookies.

Overview

This module provides a complete session management solution that handles user authentication through encrypted JWT tokens stored in secure HTTP-only cookies. It's designed for Next.js applications and includes functions for login, logout, session retrieval, and automatic session refresh.

Features

@yeasin2002
yeasin2002 / context-hell.md
Last active June 21, 2025 16:16
No More React Context Hell

The Problem

export function App() {
  return (
    <CountProvider>
      <AuthProvider>
        <ThemeProvider>
          <CacheProvider>
            <IntlProvider>
              <TooltipProvider>
@yeasin2002
yeasin2002 / wave-skeleton.md
Created November 22, 2024 20:02
wave skeleton

html

    <div class="skeleton-loader"></div>

CSS

@yeasin2002
yeasin2002 / ToggleInputEye.md
Created May 19, 2024 19:03
Toggle Input eye open and close
"use client";

import { cn } from "@/utils";
import { Eye, EyeOff } from "lucide-react";
import { useState } from "react";
import type { UseFormRegisterReturn } from "react-hook-form";

interface InputForPasswordProps extends React.ComponentProps<"div"> {
@yeasin2002
yeasin2002 / gist:7b7f79a6c3dc07945b4af822e80cdf7c
Last active May 3, 2024 09:13
VS Code auto suggestions issue fix

for nextjs:

{
  "include": ["**/*"],
  "exclude": ["node_modules", "**/node_modules", "dist", "build", ".next"],
  "compilerOptions": {
    "paths": {
      "@/*": ["./*"]
 },
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
hyperBorder: {
// borderColors: ["random", "random"],
borderColors: ["#fc1da7", "#fba506"],
borderWidth: "8px",