Until I get odin support in ALE's tree proper, here's how you register an odin check -vet linter with ALE so your edit->compile->fix loop is shorter!
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
| // search for "BUG" to see the lines causing a segfault | |
| const ENABLE_SEGFAULT = true; | |
| const std = @import("std"); | |
| const FnPtr = fn () f64; | |
| const EvalError = error{ | |
| ParseFloat, | |
| ParserOutOfMemory, |
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
| const Node = struct { | |
| t: type = bool, | |
| next: ?*Node = null, | |
| }; | |
| var registry: ?*Node = null; | |
| fn addComponent(comptime T: type) void { | |
| registry = Node{ .t = T, .next = registry }; | |
| } |
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
| var allComponentTypes: []type = undefined; | |
| fn addComponent(comptime T: type) void { | |
| allComponentTypes = allComponentTypes ++ [1]type{T}; | |
| } | |
| test "add component" { | |
| const Mover = struct { | |
| foo: bool, | |
| }; |
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
| const Builder = @import("std").build.Builder; | |
| const warn = @import("std").debug.warn; | |
| const builtin = @import("builtin"); | |
| pub fn build(b: *Builder) void { | |
| var exe = b.addExecutable("hello", "hello.zig"); | |
| exe.setBuildMode(b.standardReleaseOptions()); | |
| exe.addIncludeDir("."); | |
| exe.addIncludeDir("C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.16299.0\\shared"); | |
| exe.addIncludeDir("C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.16299.0\\um"); |
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
| { | |
| "name": "Unity.VisualEffectGraph.EditorTests", | |
| "references": [ | |
| "Unity.VisualEffectGraph.Editor", | |
| "Unity.VisualEffectGraph.Runtime" | |
| ], | |
| "optionalUnityReferences": [], | |
| "includePlatforms": ["Editor"], | |
| "excludePlatforms": [], | |
| "allowUnsafeCode": false, |
Mozilla exists to protect a healthy and open and accessible and decentralized and inclusive internet
NetGain - parent foundation; Definitely read the "Automation and the Quantified Society" whitepaper.
We're not talking about "the terminator or skynet" -- talking about issues that we're seeing RIGHT NOW. machine bias, social justice, equity, inclusive society.
check out: Propublica's investigation into a system to predict whether defendents are likely to commit a crime again.
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
| fn compile_exe() -> Result<(), failure::Error> { | |
| use cretonne::prelude::Configurable; | |
| use cretonne_native; | |
| use cretonne_faerie::{FaerieTrapCollection, FaerieBuilder, FaerieBackend}; | |
| use cretonne_codegen::settings; | |
| use cretonne_module::Module; | |
| use target_lexicon::BinaryFormat; | |
| let (mut flag_builder, isa_builder) = cretonne_native::builders().unwrap_or_else(|_| { | |
| panic!("host machine is not a supported target"); |
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
| static Matrix4x4 FrustumCornersMatrix(Camera cam, Camera.MonoOrStereoscopicEye eye) | |
| { | |
| var camtr = cam.transform; | |
| cam.CalculateFrustumCorners(new Rect(0, 0, 1, 1), cam.farClipPlane, eye, frustumCorners); | |
| Matrix4x4 frustumMatrix = Matrix4x4.identity; | |
| frustumMatrix.SetRow(0, camtr.TransformVector(frustumCorners[0])); | |
| frustumMatrix.SetRow(1, camtr.TransformVector(frustumCorners[3])); | |
| frustumMatrix.SetRow(2, camtr.TransformVector(frustumCorners[1])); | |
| frustumMatrix.SetRow(3, camtr.TransformVector(frustumCorners[2])); |
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
| diff --git a/Assets/Raymarching Toolkit/Assets/Shaders/RaymarchTemplate.shader b/Assets/Raymarching Toolkit/Assets/Shaders/RaymarchTemplate.shader | |
| index 6cd2a38f..12e3b027 100644 | |
| --- a/Assets/Raymarching Toolkit/Assets/Shaders/RaymarchTemplate.shader | |
| +++ b/Assets/Raymarching Toolkit/Assets/Shaders/RaymarchTemplate.shader | |
| @@ -46,17 +46,11 @@ CGPROGRAM | |
| #pragma vertex vert | |
| #pragma fragment frag | |
| -#if RENDER_OBJECT | |
| #include "UnityCG.cginc" // @noinlineinclude |
