© PrasadM 2026
Initializing Webapp
Initializing Webapp
A personal library of reusable snippets and technical cheatsheets to speed up development.
How to properly await params in Next.js 15 page components.
export default async function Page({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params
// Use slug...
}A reusable class for glassmorphism effects in Tailwind CSS 4.
<div className="bg-white/10 backdrop-blur-md border border-white/20 rounded-xl shadow-xl">
{/* Content */}
</div>Standard serial initialization for Arduino mechatronics projects.
void setup() {
Serial.begin(9600);
while (!Serial) {
; // Wait for serial port to connect
}
Serial.println("System Initialized");
}Quickly filter and map lists in Python.
items = [1, 2, 3, 4, 5]
squared_evens = [x**2 for x in items if x % 2 == 0]
# Output: [4, 16]