Lua Basics Cheat Sheet
1. Installation Windows: Download from https://lua.org/download.html Linux/Mac: sudo apt install lua5.3 # Ubuntu brew install lua # macOS Check Version: lua -v 2. Hello World print(“Hello, Lua!”) 3. Variables and…
1. Installation Windows: Download from https://lua.org/download.html Linux/Mac: sudo apt install lua5.3 # Ubuntu brew install lua # macOS Check Version: lua -v 2. Hello World print(“Hello, Lua!”) 3. Variables and…
1. Installation pip install pillow Verify Installation: from PIL import Image print(Image.__version__) 2. Import Pillow from PIL import Image, ImageDraw, ImageFont, ImageFilter 3. Opening and Displaying an Image img =…
1. Installation pip install opencv-python opencv-python-headless Verify Installation: import cv2 print(cv2.__version__) 2. Import OpenCV import cv2 3. Reading and Displaying an Image img = cv2.imread(‘image.jpg’) cv2.imshow(‘Image’, img) cv2.waitKey(0) # Wait…
1. Installation pip install torch torchvision torchaudio Verify Installation: import torch print(torch.__version__) 2. Import PyTorch import torch import torch.nn as nn import torch.optim as optim import torchvision 3. Tensors Create…
1. Installation pip install matplotlib or for Jupyter Notebooks: pip install notebook matplotlib 2. Import Matplotlib import matplotlib.pyplot as plt For inline plots in Jupyter Notebooks: %matplotlib inline 3. Basic…
1. What is Django? Django is a Python-based web framework that follows the Model-View-Template (MVT) architecture. Why Use Django? Fast development Secure by default Scalable and maintainable 2. Installation pip…
1. What is Bash? Bash (Bourne Again SHell) – A command-line interpreter for Unix/Linux. Purpose: Automate tasks, run commands, and create reusable scripts. Script File Extension: .sh Execute Script: bash…
1. General Information Symbol: Ca Atomic Number: 20 Atomic Mass: 40.08 u Group: 2 (Alkaline Earth Metals) Period: 4 Block: s-block Electron Configuration: 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² Valence…
1. General Information Symbol: K Atomic Number: 19 Atomic Mass: 39.10 u Group: 1 (Alkali Metals) Period: 4 Block: s-block Electron Configuration: 1s² 2s² 2p⁶ 3s² 3p⁶ 4s¹ Valence Electrons:…
1. General Information Symbol: Ar Atomic Number: 18 Atomic Mass: 39.95 u Group: 18 (Noble Gases) Period: 3 Block: p-block Electron Configuration: 1s² 2s² 2p⁶ 3s² 3p⁶ Valence Electrons: 8…