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
#!/bin/sh | |
fullpath=$(realpath $1) | |
dirpath=$(dirname $fullpath) | |
name=$(basename $1) | |
service_file=/etc/systemd/system/$name.service | |
echo "[Unit]" > $service_file | |
echo "Description=$name" >> $service_file | |
echo "After=network.target" >> $service_file | |
echo "[Service]" >> $service_file |
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
struct M44 | |
{ | |
union | |
{ | |
struct | |
{ | |
float m00, m01, m02, m03; | |
float m10, m11, m12, m13; | |
float m20, m21, m22, m23; | |
float m30, m31, m32, m33; |
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
#define assert(expr) if(!(expr)) { *((int *)0) = 0; } | |
#define invalidCodePath assert(false); | |
#define arrlen(arr) (sizeof(arr)/sizeof((arr)[0])) | |
#include "matrix.cpp" | |
#include <windows.h> | |
#include <d3d11.h> | |
#include <dxgi.h> | |
#include <stdint.h> |
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
//#include "matrix.cpp" | |
#include <windows.h> | |
#include <d3d11.h> | |
#include <dxgi.h> | |
#include <stdint.h> | |
#include <d3dcompiler.h> | |
#define assert(expr) if(!(expr)) { *((int *)0) = 0; } | |
#define invalidCodePath assert(false); |