Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / canon5d-mov-to-mp4.sh
Created May 11, 2025 11:26
Converts CANON 5D mark IV 4K mov files in the current directory to MP4 / published by https://github.com/dacr/code-examples-manager #2da6b78e-ae05-4460-853a-e4abf0e245dd/445232d64e8fb34e104dbc9037a8ad1ea9e49d4e
## summary : Converts CANON 5D mark IV 4K mov files in the current directory to MP4
## keywords : bash, ffmpeg, canon, 5DMarkIV, yuvj422p
## 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 : 2da6b78e-ae05-4460-853a-e4abf0e245dd
## created-on : 2025-05-11T10:08:56+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : sh $file
@dacr
dacr / jing-repl.sh
Created May 9, 2025 15:39
JING enabled scala-cli REPL / published by https://github.com/dacr/code-examples-manager #eb66e944-968e-49d0-94fe-315110a1b9cd/9efeba609b3c8d6cef58b9e9cc44361e08e7cb52
#!/usr/bin/env bash
## summary : JING enabled scala-cli REPL
## keywords : bash, jing, repl, scala-cli
## 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 : eb66e944-968e-49d0-94fe-315110a1b9cd
## created-on : 2025-05-06T15:52:24+02:00
## managed-by : https://github.com/dacr/code-examples-manager
@dacr
dacr / x-api-posts-list.sc
Created May 3, 2025 09:32
X API tweets list / published by https://github.com/dacr/code-examples-manager #47b77580-a424-456d-a453-c57caf17ecd1/a139c556347e02d1c5b0fa351a2aa0a635b0fdfa
// summary : X API tweets list
// keywords : scala, zio, sttp, x-api
// 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 : 47b77580-a424-456d-a453-c57caf17ecd1
// created-on : 2025-04-07T23:28:49+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / catsparse-hello-1.sc
Created March 28, 2025 09:02
cats-parse graph query language experiment - hello world 1 / published by https://github.com/dacr/code-examples-manager #0d961a8d-0863-4c3f-92d5-793e6f86ff7a/57b00bd8f6d9d8667bebf43fe54091f3cdda8d7d
// summary : cats-parse graph query language experiment - hello world 1
// keywords : scala, typelevel, cats-parse, hello-world, @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 : 0d961a8d-0863-4c3f-92d5-793e6f86ff7a
// created-on : 2025-03-13T14:02:18+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / closures.go
Created March 28, 2025 09:02
go closures / published by https://github.com/dacr/code-examples-manager #0fe71bda-9959-438c-adf7-4b53c50fea24/4519afe9647f8a6a7ee3ce70c2ee3c12ae353208
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go closures
// keywords : go, closures, @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 : 0fe71bda-9959-438c-adf7-4b53c50fea24
// created-on : 2025-03-27T10:08:08+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / generics.go
Created March 28, 2025 09:02
go generics / published by https://github.com/dacr/code-examples-manager #34fb816b-0528-47fe-91b5-0173ffa670a5/329135f1b6b086e920b59ac89cd1998a234afcf4
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go generics
// keywords : go, generics, @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 : 34fb816b-0528-47fe-91b5-0173ffa670a5
// created-on : 2025-03-27T09:36:13+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / concurrency-singleton.go
Created March 28, 2025 09:02
go routines singleton / published by https://github.com/dacr/code-examples-manager #bf57f6e8-ddad-427b-99bd-e5027c56e9db/a88dba1529163054bf2e0c4890f2de7a207e1246
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go routines singleton
// keywords : go, goroutines, singleton, @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 : bf57f6e8-ddad-427b-99bd-e5027c56e9db
// created-on : 2025-03-27T14:28:34+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / defer-trap.go
Created March 28, 2025 09:02
go defer trap / published by https://github.com/dacr/code-examples-manager #613fc74b-18b9-4df3-a193-a8752921526c/9b1ace202d31481f00aa83be33a1bef5bc1c9369
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go defer trap
// keywords : go, defer, @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 : 613fc74b-18b9-4df3-a193-a8752921526c
// created-on : 2025-03-27T10:06:35+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / concurrency-goroutines-atomics.go
Created March 28, 2025 09:02
go routines atomics / published by https://github.com/dacr/code-examples-manager #21f820ec-141e-4ca2-808d-3dfde9948b0c/52e1141bb0c8bdd599f992fcd4d74e6a0456b363
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go routines atomics
// keywords : go, goroutines, atomics, @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 : 21f820ec-141e-4ca2-808d-3dfde9948b0c
// created-on : 2025-03-27T15:36:24+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / list.nix
Created March 28, 2025 09:02
nix list / published by https://github.com/dacr/code-examples-manager #729edcf0-c5d4-41cd-a977-541f4399952f/8bf8bc3870a4c915635976486c4e3cdd8a698a02
## summary : nix list
## keywords : nix, list
## 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 : 729edcf0-c5d4-41cd-a977-541f4399952f
## created-on : 2025-02-07T17:36:39+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix eval --file $file
#### run-with : nix-instantiate --eval $file