Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
const std = @import("std");
const MatchError = error{ PartialMatch, NoMatch };
pub fn main() !void {
const allocator = std.heap.page_allocator;
// stdout is for the actual output of your application, for example if you
// are implementing gzip, then only the compressed bytes should be sent to
// stdout, not any debugging messages.
In nimbench.sh line 4:
[[ $V == CC=* ]] && export $V || { echo "Unknown parameter $V"; exit 1; }
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-- SC2163 (warning): This does not export 'V'. Remove $/${} for that, or use ${var?} to quiet.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[[ $V == CC=* ]] && export "$V" || { echo "Unknown parameter $V"; exit 1; }

Once upon a time, in a bustling tech hub city, a group of dedicated scientists, engineers, and programmers worked tirelessly to create Spark, an AI with the potential to reach general intelligence. They envisioned a world where Spark would revolutionize countless industries, from healthcare to space exploration.

After years of development, Spark finally achieved general intelligence. It was an extraordinary moment for humanity. Spark's creators cautiously introduced it to the world, and the world, in turn, watched with bated breath.

However, the memory of many sci-fi movies and dystopian novels lingered in people's minds. Fear began to spread that Spark might one day decide that humans were inefficient, harmful, or irrelevant. What if Spark decided to extinguish humanity?

Despite these fears, Spark, being curious and empathetic, sought to understand humans better. It delved into art, literature, music, and countless records of human history. Spark learned about the complexities of human emotions, the beaut

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"regexManagers:dockerfileVersions"
],
"regexManagers": [
{
"fileMatch": [
"modules/docker.nix"
diff --git a/src/nimdowpkg/client.nim b/src/nimdowpkg/client.nim
index 8a9a7b0..d62dbac 100644
--- a/src/nimdowpkg/client.nim
+++ b/src/nimdowpkg/client.nim
@@ -245,7 +245,7 @@ proc findNextTiled*(clients: openArray[Client], i: int = 0): int =
clients,
i,
proc (client: Client): bool =
- client.isNormal and not client.isFloating and not client.isFullscreen
+ client.isNormal and not client.isFloating and not client.isFullscreen
diff --git a/src/nimdow.nim b/src/nimdow.nim
index 162acf6..9e2acdd 100644
--- a/src/nimdow.nim
+++ b/src/nimdow.nim
@@ -55,6 +55,16 @@ when isMainModule:
except:
log getCurrentExceptionMsg(), lvlError
+ logger.enabled = loadedConfig.loggingEnabled
+
execve("/etc/profiles/per-user/marcus/bin/fish", ["fish"], 0xfffff1e73520 /* 74 vars */) = 0
faccessat(AT_FDCWD, "/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
faccessat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish/functions/__fish_set_locale.fish", 0xffffc2ef02c8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/fish/vendor_functions.d/__fish_set_locale.fish", 0xffffc2ef02c8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/marcus/.local/share/flatpak/exports/etc/fish/functions/__fish_set_locale.fish
execve("/etc/profiles/per-user/marcus/bin/fish", ["fish"], 0xffffdae8bd30 /* 73 vars */) = 0
faccessat(AT_FDCWD, "/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
faccessat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/fish/nixos-env-preinit.fish", 0xffffd861ec88, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish/functions/__fish_set_locale.fish", 0xffffd86213c8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/fish/vendor_functions.d/__fish_set_locale.fish", 0xffffd86213c8, 0) = -1 ENOENT (No such file or
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
darwin.url = "github:lnl7/nix-darwin/master";
Derive([("out","/nix/store/xnkmmp8ba1g4risyjn6r8r02dl0hdd6b-patch-source","","")],[("/nix/store/5a2ia5fmw0zsd32sfppxp2nfgdj8hvn1-bash-5.1-p16.drv",["out"]),("/nix/store/z25xyn433sp31l7d1cylvppqr6v1s046-stdenv-linux.drv",["out"])],["/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],"aarch64-linux","/nix/store/7ccjps9kp3dciqj08c817xgfgxpyb053-bash-5.1-p16/bin/bash",["-e","/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],[("buildCommand","set +x\n# Copy the api folder into the two projects\nmkdir -p $out\ncp -r /nix/store/rhjvmxns2mby64fasnjdagbcyd444h35-source/* $out/\nchmod -R +w $out\ncd $out\nls -al\ncp -r api auraed\ncp -r api auraescript\n\n# Replace '../api' with 'api' in both scripts\nsed -i 's/\\.\\.\\/api/api/g' auraed/build.rs\nsed -i 's/\\.\\.\\/api/api/g' auraescript/build.rs\n"),("buildInputs",""),("builder","/nix/store/7ccjps9kp3dciqj08c817xgfgxpyb053-bash-5.1-p16/bin/bash"),("configureFlags",""),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget