https://www.nushell.sh/about.html
help
config --set [env $nu.env]
| #! /usr/bin/env nix-shell | |
| #! nix-shell --pure -i python -p "python38.withPackages (ps: [ ps.django ])" | |
| #! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/82b5f87fcc710a99c47c5ffe441589807a8202af.tar.gz | |
| import django | |
| print(django) |
https://www.nushell.sh/about.html
help
config --set [env $nu.env]
Multiple apps sharing the same code is a violation of twelve-factor. The solution here is to factor shared code into libraries which can be included through the dependency manager.
https://medium.com/better-programming/13-code-review-standards-inspired-by-google-6b8f99f7fd67
| import { pipe } from "@effect-ts/system/Function" | |
| import { makeAssociative } from "@effect-ts/core/Associative" | |
| import * as R from "@effect-ts/core/Collections/Immutable/Dictionary" | |
| import * as E from "@effect-ts/core/Either" | |
| test("example 04", () => { | |
| const ValidationApplicative = E.getValidationApplicative( | |
| makeAssociative<Array<string>>((l, r) => [...l, ...r]) |
| import * as SC from "@effect-ts/core/Effect/Schedule" | |
| import { pipe } from "@effect-ts/core/Function" | |
| const app1 = pipe( | |
| T.fail("app1"), | |
| T.retry(pipe( | |
| //SC.exponential(1000, 2)["&&"](SC.recurs(4))["|>"](SC.jittered_), | |
| SC.exponential(1000, 2)["&&"](SC.recurs(4)), | |
| SC.onDecision((d) => { |