From ed0753ad224f0c65133bd7a63180257eecd9f5e3 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Wed, 8 Jan 2025 10:48:09 +0100 Subject: vault backup: 2025-01-08 10:48:09 --- zettelkast/Notes/010720231037 - With function.md | 18 ------------------ zettelkast/Notes/010920231434 - (UNIX) Watch.md | 1 - ...240613112 - Aggregates should protect invariants.md | 2 +- zettelkast/Notes/202406131159 - Invariant.md | 6 +----- 4 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 zettelkast/Notes/010720231037 - With function.md delete mode 100644 zettelkast/Notes/010920231434 - (UNIX) Watch.md (limited to 'zettelkast') diff --git a/zettelkast/Notes/010720231037 - With function.md b/zettelkast/Notes/010720231037 - With function.md deleted file mode 100644 index d646a8f..0000000 --- a/zettelkast/Notes/010720231037 - With function.md +++ /dev/null @@ -1,18 +0,0 @@ -#nix-lang - -The `with` function brings all attributes from a given set, e.g nixpkgs, into the local scope. Making them accessible as if they were declared in the same file. - -An example, bringing everything from nixpkgs into scope: -``` -with import ; -with python310Packages; <-- declared in nixpkgs - -buildPythonPackage <-- declared in python310Packages -``` - -The import statement is required here because imports a nix expression from another source, in this case nixpkgs. -It is not required at line two, because python310Packages itself is already in the local scope. - - ---- -[Nix Manual](https://nixos.org/manual/nix/stable/language/index.html) diff --git a/zettelkast/Notes/010920231434 - (UNIX) Watch.md b/zettelkast/Notes/010920231434 - (UNIX) Watch.md deleted file mode 100644 index dafeb80..0000000 --- a/zettelkast/Notes/010920231434 - (UNIX) Watch.md +++ /dev/null @@ -1 +0,0 @@ -`watch (1)` periodically executes the executable on argv. It can be used to reload the output of a command, like `sudo watch ovs-dpctl dump-flows` . \ No newline at end of file diff --git a/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md b/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md index 7e4d67c..0fd5ef7 100644 --- a/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md +++ b/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md @@ -1,4 +1,4 @@ -An invariant should be designed in such a way that it can enforce an invariant. This means even if they require another aggregate to do so, therefore it's allowed to reference other aggregates. +An [[202406131159 - Invariant]] should be designed in such a way that it can enforce an invariant. This means even if they require another aggregate to do so, therefore it's allowed to reference other aggregates. --- Related: diff --git a/zettelkast/Notes/202406131159 - Invariant.md b/zettelkast/Notes/202406131159 - Invariant.md index 0109c04..22ae337 100644 --- a/zettelkast/Notes/202406131159 - Invariant.md +++ b/zettelkast/Notes/202406131159 - Invariant.md @@ -1,5 +1 @@ -An invariant is a condition that simply must always be true. - ---- -Related: -- [[20240613112 - Aggregates should protect invariants]] \ No newline at end of file +An invariant is a condition that simply must always be true. \ No newline at end of file -- cgit v1.2.3