Skip to content

Instantly share code, notes, and snippets.

View nhridoy's full-sized avatar
🎯
Focusing

Nahidujjaman Hridoy nhridoy

🎯
Focusing
View GitHub Profile
@nhridoy
nhridoy / calendar.tsx
Last active May 31, 2025 03:21
Shadcn Calendar Component with year and month selector
"use client";
import { Button, buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { differenceInCalendarDays, format } from "date-fns";
import { ChevronLeft, ChevronRight } from "lucide-react";
import * as React from "react";
import {
DayPicker,
labelNext,
@nhridoy
nhridoy / JSON_MINIFIER.py
Created April 13, 2022 04:34
Python Script to minify JSON files
import os
import json
def minify(filename):
newname = filename.replace('.json', '.min.json') # Output file name
new_file_location = os.path.join(
'./compressed/', newname) # Output file location
with open(filename, encoding="utf8") as fp:
print("Compressing file: " + filename)