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
| { | |
| config, | |
| lib, | |
| pkgs, | |
| modulesPath, | |
| ... | |
| }: | |
| { | |
| environment.systemPackages = with pkgs; [ | |
| kind |
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
| { | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | |
| terranix.url = "github:terranix/terranix"; | |
| terranix.inputs.nixpkgs.follows = "nixpkgs"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| sops-nix = { | |
| url = "github:Mic92/sops-nix"; |
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
| // Generated by `wit-bindgen` 0.33.0. DO NOT EDIT! | |
| #include "strings.h" | |
| #include <stdlib.h> | |
| #include <string.h> | |
| // Exported Functions from `x:strings/upper` | |
| __attribute__((__weak__, __export_name__("cabi_post_x:strings/upper#upper"))) | |
| void __wasm_export_exports_x_strings_upper_upper_post_return(uint8_t * arg0) { | |
| switch ((int32_t) (int32_t) *((uint8_t*) (arg0 + 0))) { |
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
| // Generated by `wit-bindgen` 0.33.0. DO NOT EDIT! | |
| #include "strings.h" | |
| #include <stdlib.h> | |
| #include <string.h> | |
| // Exported Functions from `x:strings/upper` | |
| __attribute__((__weak__, __export_name__("cabi_post_x:strings/upper#upper"))) | |
| void __wasm_export_exports_x_strings_upper_upper_post_return(uint8_t * arg0) { | |
| switch ((int32_t) (int32_t) *((uint8_t*) (arg0 + 0))) { |
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
| $ !zig build test | |
| test | |
| +- run test stderr | |
| total allocated bytes: 4608 | |
| total allocated bytes: 4672 | |
| total allocated bytes: 4672 | |
| tag type: @typeInfo(root.test_0.Foo).Union.tag_type.? | |
| tag 0 addr: @typeInfo(root.test_0.Foo).Union.tag_type.?@7ffff7ef7200 | |
| tag 1 addr: @typeInfo(root.test_0.Foo).Union.tag_type.?@7ffff7ef7201 |
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 std = @import("std"); | |
| pub fn main() void { | |
| const input1 = [_]f32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; | |
| var mean: f32 = 0; | |
| var variance: f32 = 0; | |
| for (input1, 0..) |v, count| { | |
| const delta = v - mean; | |
| mean += delta / @as(f32, @floatFromInt(count + 1)); | |
| const delta2 = v - mean; |
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
| package main | |
| import ( | |
| "bytes" | |
| "encoding/base32" | |
| "encoding/binary" | |
| "fmt" | |
| "io" | |
| ) |
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
| package main | |
| import ( | |
| "fmt" | |
| "runtime" | |
| "sync" | |
| ) | |
| func NewDebugMutex() sync.Locker { | |
| return &debugMutex{} |
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
| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| "io" | |
| "slices" | |
| "sync" | |
| "time" |
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
| import type { CodegenConfig } from "@graphql-codegen/cli"; | |
| const config: CodegenConfig = { | |
| overwrite: true, | |
| schema: "./graph/*.graphql", | |
| documents: ["./app/graph/*.gql"], | |
| generates: { | |
| "./app/graph/types.ts": { | |
| config: { | |
| useTypeImports: true, |
NewerOlder