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
#include <gst/gst.h> | |
#include <gst/vulkan/vulkan.h> | |
#include <cstdlib> | |
int main(int argc, char* argv[]) { | |
GstElement *pipeline, *sink; | |
gint width, height; | |
GstSample* sample; | |
gchar* descr; |
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
# Install QEMU-6.1.0 | |
wget https://download.qemu.org/qemu-6.1.0.tar.xz | |
tar xvJf qemu-6.1.0.tar.xz | |
cd qemu-6.1.0 | |
./configure | |
make | |
sudo make install | |
# Download Armbian (Ubuntu Focal 20.04) for OrangePi PC | |
wget https://mirrors.netix.net/armbian/dl/orangepipc/archive/Armbian_21.08.1_Orangepipc_focal_current_5.10.60.img.xz |
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
[package] | |
name = "bk" | |
version = "0.1.0" | |
authors = ["Jan Stępień"] |
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
/** | |
* Bresenham Curve Rasterizing Algorithms | |
* @author Zingl Alois | |
* @date 17.12.2014 | |
* @version 1.3 | |
* @url http://members.chello.at/easyfilter/bresenham.html | |
*/ | |
function assert(a) { | |
if (!a) console.log("Assertion failed in bresenham.js "+a); |
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
#include <glm/matrix.hpp> | |
class Frustum | |
{ | |
public: | |
Frustum() {} | |
// m = ProjectionMatrix * ViewMatrix | |
Frustum(glm::mat4 m); |
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
// pasting this in front of most shadertoys allows them to be compiled with: | |
// glslangValidator -V inputFile.frag -o outputFile.spv | |
#version 430 | |
layout(binding = 1, std140) uniform glob { | |
uniform vec3 iResolution; | |
uniform float iGlobalTime; | |
uniform float iTimeDelta; | |
uniform int iFrame; | |
uniform float iFrameRate; | |
uniform float iChannelTime[4]; |
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
# create ACI with trusty without actool due to bug https://github.com/coreos/rocket/issues/198 | |
mkdir sleeper ; cd sleeper | |
debootstrap --verbose --variant=minbase --include=iproute,iputils-ping --arch=amd64 trusty rootfs | |
cat > app <<EOF | |
{ | |
"acVersion": "1.0.0", | |
"acKind": "AppManifest", | |
"name": "sleeper", | |
"version": "1.0.0", | |
"os": "linux", |
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
/* | |
Check SSE/AVX support. | |
This application can detect the instruction support of | |
SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4a, SSE5, and AVX. | |
*/ | |
#include <iostream> | |
#ifdef _MSC_VER | |
#include <intrin.h> | |
#endif |