Skip to content

Instantly share code, notes, and snippets.

View alamenai's full-sized avatar
🏠
Working from home

Aldin Bug alamenai

🏠
Working from home
View GitHub Profile
@alamenai
alamenai / commit-msg.sh
Created August 14, 2023 17:22
Husky scripts example
#!/bin/sh
# This hook enforces that commit messages start with a capitalized verb.
# ANSI color codes for formatting
RED='\033[0;31m'
NC='\033[0m' # No Color
commit_msg="$1"
error_msg="${RED}error: Commit message must start with a capitalized verb${NC}"
@alamenai
alamenai / .ts
Created September 17, 2023 05:23
TailwinCSS merge and conditonal styling.
import { clsx, ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export const cn = (...inputs: ClassValue[]) => {
return twMerge(clsx(inputs));
};