Advanced Search
Search Results
156 total results found
Pathlib
from os import chdir from pathlib import Path def main() -> None: # current working directory and home directory cwd = Path.cwd() home = Path.home() print(f"Current working directory: {cwd}") print(f"Home directory: {home}") ...
Built-in Methods
Instance Method vs Static Method Instance Methods (normal methods without declaring @) specifies with that particular declared instance. For ex. a unique event is specific to a specific calendar instance, and should not exist on other calendar instances. S...
Serialization Formats
JSON import json import requests def main(): data = { 'username': 'james', 'active': True, 'subscribers': 10, 'order_total': 39.99, 'order_ids': ['ABC123', 'QQQ422', 'LOL300'], } print(data...
VSCode Shortcuts and Extensions
General Debugging
Understand the System Read the documentation from cover-to-cover to understand how to get the results you want Go in depth on things applicable at the moment Know your roadmap Understand what is black box and what is not Understand your debu...
Python Debugging
Tests Driven Development
from dataclasses import dataclass, field from enum import Enum class OrderStatus(Enum): OPEN = "open" PAID = "paid" @dataclass class LineItem: name: str price: int quantity: int = 1 @property def total(self) -> ...
Functions
Positional and Keyword Arguments Positional Arguments: Positional arguments are the most common type of arguments in Python. They are passed to a function in the same order as they are defined in the function's parameter list. ...
Getting Started part2
1. Make a good self introduction at the start of the interview ✅ Introduce yourself in a few sentences under a minute or 2. Follow our guide on how to make a good self introduction for software engineers ✅ Sound enthusiastic! Speak with a smile ...
Class Creation: Getter/Setter vs Property
Getter and Setter Pattern comes from OOP languages such as C++ and Java in order to adhere to Encapsulation the bundling of data/attributes and methods. restricting access to implementation details and violating state invariants In Python i...
Git Commands
Some of the top-used Git commands and good version control practices are: Top Used Git Commands: git clone: Clone a repository into a new directory. git init: Initialize a new Git repository. git add: Add file contents to the index (staging area) for the...
Perforce
GIT Best Practices
Good Version Control Practices: Use Descriptive Commit Messages: Write clear and concise messages explaining the changes made in each commit. Commit Often, Commit Early: Break down your work into smaller, logical units and commit them frequently. This make...
Rasterization
Color Lines 1. draw line by using Interpolate to compute values of a linear function. Filled Triangles draw lines to make wireframe of a triangle using 3 2D Vertices with connecting points Sort the points compute the x coordinate of the triangle ...
Getting Started with Vulkan
Install Vulkan SDK: https://vulkan.lunarg.com/
Raytracing
HUD Project
A portfolio project that showcases proficiency in shaders, UI, and digital humans. Reference done in DCC: https://www.youtube.com/watch?v=r-l74gVYgM8 Getting Started Lets ask Chatgpt by uploading an animated GIF of the radar done in a DCC to see if it ca...
Fragment Shaders
Fragment shader code is executed entirely on the GPU (Graphics Processing Unit). Parallelism: The GPU is designed to handle many operations at once, and since fragment shaders need to process every pixel on the screen, the GPU...
Core C Programming for GLSL
Writing GLSL (OpenGL Shading Language) code does not require extensive knowledge of C programming, but familiarity with some core C concepts can be very helpful. GLSL shares many similarities with C, as it is a C-like language, but there are important differen...
Converting ShaderToy to GLSL
ShaderToy is a platform for creating and sharing shaders in GLSL, but it includes some unique functions and features that are specific to its environment. If you want to port ShaderToy shaders to plain GLSL or another environment, you’ll need to understand the...