Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / tapir-zio-hello-sealed-traits.sc
Created January 28, 2024 10:08
http server random hello world using a sealed trait data structure / published by https://github.com/dacr/code-examples-manager #e9f0b49b-8116-417e-a68a-fc5dd73121df/a85c7d30c49e66df7648aadfb816948f559a56c9
// summary : http server random hello world using a sealed trait data structure
// keywords : scala, zio, tapir, http, zhttp, @testable, @exclusive
// 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 : e9f0b49b-8116-417e-a68a-fc5dd73121df
// created-on : 2024-01-24T08:42:05+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// test-with : curl -L http://127.0.0.1:8080/hello
@dacr
dacr / 1.jpg
Last active January 29, 2024 09:50
scalafx from zio effect system / published by https://github.com/dacr/code-examples-manager #723255e0-66a9-4e7b-94af-c0e8540ab53c/c7d604394d01fa2e28a930af5d01cf4e5de6f0b8
����JFIF,,���ExifII*bj(1 r2�i��,,GIMP 2.10.342023:08:13 14:49:51��� �http://ns.adobe.com/xap/1.0/<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:GIMP="http://www.gimp.org/xmp/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmpMM:DocumentID="gimp:docid:gimp:9e79d5d1-1e22-4cf5-b275-243a53066d26" xmpMM:InstanceID="xmp.iid:35b82595-b60e-4c7b-9e15-336b466457df" xmpMM:OriginalDocumentID="xmp.did:6783601a-acf9-4595-8886-e1fc40e6c52a" dc:Format="image/jpeg" GIMP:API="2.0" GIMP:Platform="Linux" GIMP:TimeStamp="1691930996630716" GIMP:Version="2.10.34" xmp:CreatorTool="GIMP
@dacr
dacr / ui-scalafx-canvas-doodle-test.scala
Last active January 29, 2024 09:50
scalafx canvas example / published by https://github.com/dacr/code-examples-manager #148aaae2-1a56-44b4-b56a-9b1f1a018a80/b6068302b77e2aa8505eb814499292390e851ebc
// summary : scalafx canvas example
// keywords : scala, user-interface, javafx, scalafx, canvas
// 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 : 148aaae2-1a56-44b4-b56a-9b1f1a018a80
// created-on : 2024-01-07T21:20:32+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / ui-scalafx-hello-2.scala
Last active January 29, 2024 09:50
scalafx hello world example again / published by https://github.com/dacr/code-examples-manager #8ac3a4ce-b859-405a-be6b-e19fd86e6bdc/75004b0d8741f5b65f34457b8e0790c6831e4409
// summary : scalafx hello world example again
// keywords : scala, user-interface, javafx, scalafx, helloworld
// 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 : 8ac3a4ce-b859-405a-be6b-e19fd86e6bdc
// created-on : 2024-01-07T21:16:09+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / ui-scalafx-hello-3.scala
Last active January 29, 2024 09:50
scalafx hello world with reflection example / published by https://github.com/dacr/code-examples-manager #ffda5b05-7733-415b-a7d2-640ea46629ae/c9b2844091c6a18422547fa3134c22e8e305ef39
// summary : scalafx hello world with reflection example
// keywords : scala, user-interface, javafx, scalafx, helloworld
// 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 : ffda5b05-7733-415b-a7d2-640ea46629ae
// created-on : 2024-01-07T16:13:37+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / com-lihaoyi-utest.scala
Created January 6, 2024 16:23
com-lihaoyi utest basic usage examples / published by https://github.com/dacr/code-examples-manager #b49ceaa6-9a2a-4d83-9b5d-9e563a576fc4/a1e5ba32fb8315e84bc3472bc0082f4e9ffd738
// summary : com-lihaoyi utest basic usage examples
// keywords : scala, lihaoyi, utest, @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 : b49ceaa6-9a2a-4d83-9b5d-9e563a576fc4
// created-on : 2024-01-06T16:54:05+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / com-lihaoyi-mainargs.sc
Created January 6, 2024 16:23
com-lihaoyi mainargs basic usage examples / published by https://github.com/dacr/code-examples-manager #01b15efe-23c8-4e73-85b1-66c857979694/a37b8ad028633871501827a661ea43dfb9f36ad8
// summary : com-lihaoyi mainargs basic usage examples
// keywords : scala, lihaoyi, mainargs, @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 : 01b15efe-23c8-4e73-85b1-66c857979694
// created-on : 2024-01-06T16:55:30+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / com-lihaoyi-fastparse.sc
Created January 6, 2024 16:23
com-lihaoyi fastparse basic usage examples / published by https://github.com/dacr/code-examples-manager #55d6e8db-aa22-47af-b8d8-dcffaf9cd257/95009d432c23354082c1d0c55767ba733558a118
// summary : com-lihaoyi fastparse basic usage examples
// keywords : scala, lihaoyi, fastparse, @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 : 55d6e8db-aa22-47af-b8d8-dcffaf9cd257
// created-on : 2024-01-06T16:30:18+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / zio-learning-zhttp-server-streaming-1.sc
Created January 6, 2024 11:36
ZIO learning - zhttp - simple streaming / published by https://github.com/dacr/code-examples-manager #1dff6e7a-dd42-44c1-b04f-abb4c99cecae/2a952e7aa12e37e7de11a700b2872a9e9c0a22d5
// summary : ZIO learning - zhttp - simple streaming
// keywords : scala, zio, learning, pure-functional, http-server, zhttp, streams, @testable, @exclusive
// 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 : 1dff6e7a-dd42-44c1-b04f-abb4c99cecae
// created-on : 2024-01-05T18:37:43+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/stream
@dacr
dacr / com-lihaoyi-fansi.sc
Created January 6, 2024 11:36
com-lihaoyi fansi basic usage examples / published by https://github.com/dacr/code-examples-manager #a6dcdc25-6a11-4848-a03f-f119e8897b33/95fbbe85fffd7a9a0d1a2077767a852fbbb452cd
// summary : com-lihaoyi fansi basic usage examples
// keywords : scala, lihaoyi, fansi, @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 : a6dcdc25-6a11-4848-a03f-f119e8897b33
// created-on : 2024-01-06T12:16:50+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file