This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import shutil | |
| from pathlib import Path | |
| def delete_node_modules(folder_path="."): | |
| folder = Path(folder_path) | |
| for root, dirs, _ in os.walk(folder): | |
| if "node_modules" in dirs: | |
| node_modules_path = Path(root) / "node_modules" | |
| print(f"Deleting: {node_modules_path}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Splits a sentence into two parts based on a focus keyword. | |
| * Handles case-insensitivity and edge cases gracefully. | |
| * | |
| * @param sentence - The full sentence. | |
| * @param focusKeyword - The keyword to highlight. | |
| * @returns An object containing `firstWord` and `lastWord` around the keyword. | |
| * | |
| * 🔹 **Use Case: WordPress ACF (Advanced Custom Fields)** | |
| * - This function can be used in a **React/Next.js frontend** to dynamically highlight keywords |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set /p input= Enter the PORT | |
| ngrok http --domain=your-ngrok-domain %input% |