This is a WIP of a cheat-sheet that I will finish Eventually™
Mapping of the shader types to Heaps types:
Float = Float
Int = Int
Bool = Bool
// in your build.zig, you can specify a custom test runner: | |
// const tests = b.addTest(.{ | |
// .target = target, | |
// .optimize = optimize, | |
// .test_runner = "test_runner.zig", // add this line | |
// .root_source_file = b.path("src/main.zig"), | |
// }); | |
const std = @import("std"); | |
const builtin = @import("builtin"); |
#![feature(fn_traits, unboxed_closures)] | |
macro_rules! orelse { | |
(($($lhs:tt)+), $rhs:tt) => {$($lhs)+}; | |
((), ($($rhs:tt)*)) => {$($rhs)*} | |
} | |
macro_rules! overload { | |
( | |
$v:vis fn $fn_name:ident { |
version: "3" | |
services: | |
vpn: | |
image: qmcgaw/gluetun | |
container_name: vpn | |
cap_add: | |
- NET_ADMIN | |
ports: | |
- 8888:8888/tcp # HTTP proxy | |
- 8388:8388/tcp # Shadowsocks |
Podman is such a cool project! However, there is no easy way to setup the nvidia-container-runtime and podman so that we can run unprivileged container in a gpu host. This is specially interesting in environments with multiple people accessing the same host (strong isolation between containers!!!).
Ubuntu: add-apt-repository -y ppa:projectatomic/ppa && apt install podman buildah skopeo
package; | |
import haxe.io.Bytes; | |
import lime.utils.UInt8Array; | |
import lime.graphics.Image; | |
import lime.graphics.ImageBuffer; | |
import openfl.Assets.AssetLibrary; | |
import openfl.Assets; | |
import openfl.Lib; | |
import openfl.utils.ByteArray; |