https://www.scratchapixel.com https://www.gamasutra.com/view/news/168577/Indepth_Software_rasterizer_and_triangle_clipping.php https://www.microsoft.com/en-us/research/wp-content/uploads/1978/01/p245-blinn.pdf http://www.cs.gettysburg.edu/~ilinkin/courses/Fall-2014/cs373/handouts/papers/sh-rpc-74.pdf
This file contains hidden or 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
# https://stackoverflow.com/questions/2719579/how-to-add-a-changed-file-to-an-older-not-last-commit-in-git | |
git add <my fixed files> | |
git commit --fixup=OLDCOMMIT | |
git rebase --interactive --autosquash OLDCOMMIT^ |
This file contains hidden or 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
// Allows an asynchronous loop to be converted to an Observable. | |
function loop(): Observable<number> { | |
const subject = new DefaultSubject<number>(); | |
let promise = Promise.resolve(); | |
for (let i = 0; i < 3; i++) { | |
promise = promise.then(async () => | |
await new Promise(resolve => { | |
setTimeout(() => { | |
subject.next(i); | |
resolve(); |
Use the Sixel protocol: https://en.wikipedia.org/wiki/Sixel.
xterm -ti 340
sudo apt install libsixel-bin
curl -sL https://raw.githubusercontent.com/saitoha/libsixel/data/data/libsixel-1.png | img2sixel
Note that xterm shall be compiled with --enable-sixel option
and shall be launched with the option -ti 340
.
Limited to 16 colors.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test Filters</title> | |
<meta charset="utf-8"> | |
<script type="text/javascript"> | |
const xmlns = 'http://www.w3.org/2000/svg'; | |
async function getImage(path) { | |
const response = await fetch(path); |
This file contains hidden or 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
sudo apt-get install linux-lowlatency | |
# reboot chosing low-latency kernel. Shift or Escape during boot process. | |
# Add user to audio group | |
sudo usermod -a -G audio jedi | |
qsynth qsynth -a alsa | |
# Look for MIDI keyboard and FluidSynth entry | |
aconnect -o |
This file contains hidden or 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
# Transmit a x264 compressed low latency feed using udp | |
server: gst-launch-1.0 videotestsrc is-live=true ! videoconvert ! x264enc speed-preset=ultrafast tune=zerolatency byte-stream=true threads=1 key-int-max=15 intra-refresh=true ! rtph264pay ! udpsink host=%d port=9002 | |
client: gst-launch-1.0 udpsrc port=9002 caps='application/x-rtp' ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false async=false |
Gstreamer is a tool to manipulate audio and video format. It works as a
pipeline. It can be used as a library in C or other languages but also feature a
command line pipeline building tool gst-launch
. On ubuntu 20.04, the tool is
called from the command line using gst-launch-1.0
.
example:
gst-launch-1.0 videotestsrc ! autovideosink
- Added in 1999 as supplement 33
- Major departure for DICOM moving from data content and transmission into display
- Closely related to (but independent of) Supplement 28/Part 14 (Grayscale Standard Display Function)