Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / pkgs-lib.nix
Created February 1, 2025 11:04
nix pkgs lib / published by https://github.com/dacr/code-examples-manager #c192c63e-1440-457b-bab5-e5c4d41e409c/eb090a38e18231064dcc67a2ca00cb2855bcfb5b
## summary : nix pkgs lib
## keywords : nix, pkgs, lib
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : c192c63e-1440-457b-bab5-e5c4d41e409c
## created-on : 2025-02-01T11:11:09+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file
@dacr
dacr / shell-env.nix
Created February 1, 2025 11:04
nix shell environment / published by https://github.com/dacr/code-examples-manager #587bd6c9-638a-4900-8b6e-bbb3fdf7104c/d76a123de15265f6ffddcc85c21906135503dbab
## summary : nix shell environment
## keywords : nix, shell
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : 587bd6c9-638a-4900-8b6e-bbb3fdf7104c
## created-on : 2025-02-01T11:42:30+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix-shell $file
@dacr
dacr / hello-world.nix
Created February 1, 2025 11:04
nix hello world / published by https://github.com/dacr/code-examples-manager #9bb902b8-e7ba-458c-addb-8c4713c5ceaf/abeadff71005714a9660b50a8d0a856cb56ffac9
## summary : nix hello world
## keywords : nix, hello-world
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : 9bb902b8-e7ba-458c-addb-8c4713c5ceaf
## created-on : 2025-02-01T10:37:21+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file
@dacr
dacr / paths.nix
Created February 1, 2025 11:04
nix paths / published by https://github.com/dacr/code-examples-manager #b89e7b9c-fbc6-4fb1-a50d-f5cd274e3346/7c9fe61f8d70c3d30ddf2d942fb5b36ee62cace7
## summary : nix paths
## keywords : nix, paths
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : b89e7b9c-fbc6-4fb1-a50d-f5cd274e3346
## created-on : 2025-02-01T11:19:18+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file
@dacr
dacr / fetchers.nix
Created February 1, 2025 11:04
nix fetchers / published by https://github.com/dacr/code-examples-manager #09010820-30f0-4423-86f8-6daa7c06e4dc/587e82c7e4906d7ee031311a937d4fab246848a2
## summary : nix fetchers
## keywords : nix, fetchers
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : 09010820-30f0-4423-86f8-6daa7c06e4dc
## created-on : 2025-02-01T11:48:47+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file
@dacr
dacr / data-types.nix
Created February 1, 2025 11:04
nix data types / published by https://github.com/dacr/code-examples-manager #7e8ab042-cffa-4d78-bf37-21fc5bc024d6/99277c1e7ab0c0cafc426e32760098aa71ee1951
## summary : nix data types
## keywords : nix, data-types
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : 7e8ab042-cffa-4d78-bf37-21fc5bc024d6
## created-on : 2025-02-01T10:49:21+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file
@dacr
dacr / hello-derivations.nix
Created February 1, 2025 11:04
nix derivations hello-world / published by https://github.com/dacr/code-examples-manager #1068db41-e5a5-4093-b7b6-1e12eb852ce4/3b954f653997ae20ff1045769150058c7e40919a
## summary : nix derivations hello-world
## keywords : nix, derrivations, hello-world
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : 1068db41-e5a5-4093-b7b6-1e12eb852ce4
## created-on : 2025-02-01T11:33:24+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file
@dacr
dacr / json-jsoniter.sc
Created January 18, 2025 08:31
jsoniter scala json API cookbook as unit test cases. / published by https://github.com/dacr/code-examples-manager #069fba65-a07f-44b3-9a78-451082a452ab/41240ea553c60c9cdaa22b3e193637f3bface6b6
// summary : jsoniter scala json API cookbook as unit test cases.
// keywords : scala, scalatest, upickle, json, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 069fba65-a07f-44b3-9a78-451082a452ab
// created-on : 2025-01-14T16:23:47+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / nixos.md
Created January 12, 2025 23:19
nixos cheat sheet / published by https://github.com/dacr/code-examples-manager #9e9f9a93-ca32-46a9-bad3-6f6d2977ca8f/6e3a40989446c92a1fd394cd8906dc1d62259468
@dacr
dacr / chronos-demo.sc
Last active February 5, 2025 20:32
Chronos API usage demo / published by https://github.com/dacr/code-examples-manager #c346b6fb-fea9-4627-80b7-9e180c6d3032/92683983f0c10a14aee66c316d68a27886d84346
// summary : Chronos API usage demo
// keywords : scala,chronos, zio, tapir, http, http-server, demo
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : c346b6fb-fea9-4627-80b7-9e180c6d3032
// created-on : 2025-01-11T00:25:49+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// test-with : curl http://127.0.0.1:8080/chronos