This file contains 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
# title: 3D_perspective_projection_visualizer.py | |
# reference: ChatGPT-4> Given the python program https://gist.github.com/FredEckert/9527d4ec1fbd1be2e46bd920225ca1f4, | |
# can you create a perspective projection visualizer in a similar style>? | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
from mpl_toolkits.mplot3d.art3d import Poly3DCollection | |
def perspective_transform(matrix, points): |
This file contains 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
Title: Command-Line Rust | |
Subtitle: A Project-Based Primer for Writing Rust CLIs | |
Author: Ken Youens-Clark | |
Publisher: O'Reilly | |
Publish Date: January 2022 | |
Preface: | |
What is Rust |
This file contains 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
# title: 3D_affine_transformation_visualizer.py | |
# references: | |
# 1. how to perform coordinates affine transformation using python? | |
# https://stackoverflow.com/questions/8873462/how-to-perform-coordinates-affine-transformation-using-python/56329041#56329041 | |
# 2. python draw parallelepiped | |
# https://stackoverflow.com/questions/44881885/python-draw-parallelepiped/45094199#45094199 | |
# https://stackoverflow.com/questions/44881885/python-draw-parallelepiped/49766400#49766400 | |
# | |
import numpy as np | |
from mpl_toolkits.mplot3d import Axes3D |
This file contains 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
/* | |
To test that the Linux framebuffer is set up correctly, and that the device permissions | |
are correct, use the program below which opens the frame buffer and draws a gradient- | |
filled red square: | |
retrieved from: | |
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2) | |
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html | |
*/ |