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…
Pandas is a powerful Python library for data manipulation, analysis, and visualization. 1. Installing and Importing Pandas pip install pandas import pandas as pd 2. Creating DataFrames and Series Create…
Numerical Python (NumPy) is a powerful library for numerical computations in Python. 1. Installing and Importing NumPy pip install numpy import numpy as np 2. Creating Arrays 1D Array arr…
1. Introduction to Golang Go (Golang) is an open-source programming language developed by Google. Known for simplicity, efficiency, and concurrency support. Designed for scalable and high-performance applications. 2. Setup and…
1. Introduction to Java Java is a high-level, object-oriented programming language. Known for Write Once, Run Anywhere (WORA) – Java code can run on any platform with a Java Virtual…