Skip to content

Instantly share code, notes, and snippets.

View kavicastelo's full-sized avatar
💻
Living in a program

kavi castelo kavicastelo

💻
Living in a program
View GitHub Profile
@kavicastelo
kavicastelo / Dev Math.md
Created June 13, 2025 18:26
A collection of 100 tongue-in-cheek (yet oddly accurate) equations that model the beautiful chaos of software development. This is your unofficial developer physics engine — balancing caffeine, meetings, deadlines, and dreams.

🔢 Dev Math: 100 Equations That Define Developer Reality

A collection of 100 tongue-in-cheek (yet oddly accurate) equations that model the beautiful chaos of software development.
This is your unofficial developer physics engine — balancing caffeine, meetings, deadlines, and dreams.

From productivity and debugging, to cognitive load, burnout, and system resilience — it's all math now.


💡 All equations are in LaTeX-style math, rendered in Markdown using $$...$$.

@kavicastelo
kavicastelo / delete.js
Created April 23, 2025 17:52
MongoDB Learning Module 3 (Interns) – MongoDB with Node.js
const connect = require("../db/mongoClient");
(async () => {
const { client, db } = await connect();
const employees = db.collection("employees");
await employees.deleteOne({ name: "Bob" });
console.log("❌ Bob deleted");
await client.close();
})();
@kavicastelo
kavicastelo / Employee.java
Created April 23, 2025 17:48
MongoDB Learning Module 2 (Interns) – MongoDB Integration with Spring Boot
@Document("employees")
public class Employee {
@Id
private String id;
@NotBlank
private String name;
private String department;
@kavicastelo
kavicastelo / Task.java
Created April 23, 2025 17:07
Spring Boot Learning Module 3 – Simple In-Memory CRUD API
public class Task {
private Long id;
@NotBlank(message = "Title is required")
private String title;
private boolean completed = false;
// constructor, getters, setters
}
@kavicastelo
kavicastelo / User.java
Created April 23, 2025 17:05
Spring Boot Learning Module 2 – POST Requests + Request Body + Validation
public class User {
@NotBlank(message = "Name is required")
private String name;
@Email(message = "Invalid email format")
private String email;
@Min(value = 18, message = "Minimum age is 18")
private int age;
@kavicastelo
kavicastelo / Greeting.java
Created April 23, 2025 17:02
Spring Boot Learning Module 1 (Interns) – Basics (REST API Essentials)
public class Greeting {
private String message;
// constructor, getter, setter
}
@kavicastelo
kavicastelo / app.routes.ts
Created April 23, 2025 15:48
Angular Learning Module 3 (Interns) – Reusable Layout + Navigation + Feature Modules
import { Routes } from '@angular/router';
import { LayoutComponent } from './layout/layout.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { ProfileComponent } from './profile/profile.component';
import { MessagesComponent } from './messages/messages.component';
export const routes: Routes = [
{
path: '',
component: LayoutComponent,
@kavicastelo
kavicastelo / app.routes.ts
Last active April 23, 2025 15:43
Angular Learning Module 2 (Interns) – Forms + Firebase Firestore
import { Routes } from '@angular/router';
import { ContactComponent } from './contact/contact.component';
export const routes: Routes = [
{ path: 'contact', component: ContactComponent },
{ path: '**', redirectTo: 'contact' }
];
@kavicastelo
kavicastelo / app.routes.ts
Last active April 23, 2025 15:44
Angular Learning Module 1 (Interns) - Basics + Standalone Components
import { Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { ProjectsComponent } from './projects/projects.component';
import { AboutComponent } from './about/about.component';
export const routes: Routes = [
{ path: 'home', component: HomeComponent },
{ path: 'projects', component: ProjectsComponent },
{ path: 'about', component: AboutComponent },
{ path: '**', redirectTo: 'home' }
@kavicastelo
kavicastelo / blue&purple_theme_color_palette_dark.css
Created November 18, 2024 21:23
blue&purple_theme_color_palette
.theme-blue-purple-dark {
--color-primary-100: #8e44ad; /* Deep Purple */
--color-primary-200: #9b59b6; /* Soft Purple */
--color-primary-300: #af7ac5; /* Light Purple */
--color-primary-400: #d2b4de; /* Lavender */
--color-primary-500: #ebdef0; /* Very Light Lavender */
--color-primary-600: #f5eef8; /* Pale Lavender */
--color-primary-600-opacity-3: rgba(245, 238, 248, 0.3);
--color-primary-600-opacity-6: rgba(245, 238, 248, 0.6);
--color-primary-600-opacity-9: rgba(245, 238, 248, 0.9);