When you install arduino IDE the serial port is usually not visible. This command helps with setting it up.
sudo adduser <username> dialout
sudo chmod a+rw /dev/ttyUSB0| class ReLU(Scene): | |
| """ | |
| Animation of Rectified Linear Unit activation function | |
| used in Neural Networks. | |
| """ | |
| def construct(self): | |
| # Define graph axes | |
| axes = Axes( | |
| x_range = [-10, 10, 1], | |
| y_range = [0, 6, 1], |
| class Suprise(Scene): | |
| """ | |
| This animation is used to show the Probability vs Suprise Graph. | |
| The graph shows the inverse relationship between Probability and | |
| Suprise. | |
| """ | |
| def construct(self): | |
| # Define the graph axes |
| from manim import * | |
| class SimpleFrequency(Scene): | |
| def construct(self): | |
| ax = Axes( | |
| x_range=[-10, 10.3, 1], | |
| y_range=[-1.5, 1.5, 1], | |
| x_length=10, | |
| x_axis_config={ | |
| "numbers_to_include": np.arange(-10, 10.01, 2) |
| class Inference(Scene): | |
| def construct(self): | |
| title = Title("LoRA Inference", include_underline=False).scale(0.75) | |
| self.add(title) | |
| # This computes the values of the matrices used in the animation | |
| self.computation() |
| from manim import * | |
| class UnitCircle(MovingCameraScene): | |
| def construct(self): | |
| title = Title("The Unit Circle", include_underline=False) | |
| circle = Circle() | |
| numberplane = NumberPlane() | |
| line = Line(ORIGIN, np.array([1.0, 0, 0])) | |
| dot = Dot().move_to(np.array([1.0, 0, 0])) |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Moving Box</title> | |
| </head> | |
| <body> | |
| <canvas id="draw"></canvas> | |
| """ | |
| A file system is the interface between a user and their storage device. | |
| features: | |
| Non-contiguous | |
| Single-level directory | |
| Storage device | |
| Block | |
| File system |
| // import the readline module to get user input | |
| readline = require('node:readline') | |
| class BankUSSD { | |
| main(){ | |
| // Define the variable that will be used to get user input | |
| const userInput = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout, |
| import functools | |
| def log_function_call(func): | |
| @functools.wraps(func) | |
| def wrapper(*args, **kwargs): | |
| print(f"Calling {func.__name__} with args: {args}, kwargs: {kwargs}") | |
| result = func(*args, **kwargs) | |
| print(f"{func.__name__} returned: {result}") | |
| return result | |
| return wrapper |