Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / algo-load-balancing-simple.sc
Last active February 11, 2024 21:14
simple load balancing algorithm / published by https://github.com/dacr/code-examples-manager #812a93f3-e957-4dfc-b9f5-ea8825503faa/bb610ad2b2af27c05bdb1b259a319d58ed3f0e94
// summary : simple load balancing algorithm
// keywords : scala, load-balancing, @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 : 812a93f3-e957-4dfc-b9f5-ea8825503faa
// created-on : 2024-02-06T23:51:44+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / djl-gpt2-pytorch.sc
Created February 3, 2024 13:36
playing with GPT2 / published by https://github.com/dacr/code-examples-manager #296ca1e1-ede9-4d57-9f1a-6f0f14fb2fbc/52c1579df87fc107a681f971fc75f662427733a6
// summary : playing with GPT2
// keywords : djl, machine-learning, gpt, ai, @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 : 296ca1e1-ede9-4d57-9f1a-6f0f14fb2fbc
// created-on : 2024-02-03T08:18:12+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / example.jpg
Created February 3, 2024 13:36
using opencv / published by https://github.com/dacr/code-examples-manager #9274e189-9eb6-4b9b-ab1a-b458d62697e7/4f207042dd0b1c77fbab2feb14f1a27176163b6
����JFIF;;��C

   ��C   ��S �!�� ���� 㬼�`���m-��sT����Q�L�� �Z hf��"ikASkP�L&��C�I��(��y�gR�pjI*�$M�5 ��y{�[ ���r$ n*qΛ�tPY�q���� ����Y���S�.ѯ3T^} {*��J֊�ٮ��>�caZ\T��;I`E�N��� 4���'V���$�.���{�UD=���L�є��y��]ƭ�Nj��LY�jyoMzu�4��= ��q��*��ɇ���ͳ�hut9RN΍]���޷6��*������[�H�V�~���.���MG;bA��Av��.�q[�ˬ�_�Y�=l70 Ƹ�2� p�,Q�)����&�Ql1���]�3r-Gl�!��J��"��'��$=��͊[ �5Ϧ�5#a�u���J�ғ���+1��1�_��3�9*4jF&��.D�&KP`9 �j�_�6�AzkFYSF��͢�Խ#0 ��w�x֍��!�s��ɨ�L�\�fQ$�+Y�'��Y��^@E�\�>��s
���/h�M� ��-�f/ 姝����5J�7��o���Nw������n���)).8��.�9�̎�Q����`�՚���,z��N�=�@��a�n��Vr),y޵Ag�t��jJ䟤�_��\����^l��T���y�sW��\�+��$W��|�V�|ͫ /a��s��K�:��g��C����?A�]0L�.�����͹&۰j/z�iɸ�.VX�G{�fy���ݨNT5[� sCq�̅%�,�zNl�-�%�+BF5��g1�\}Ei��Ӗ���kH[J��T!ͨˍ�����-&=X������=p�ۉ�Ku1Ƙk
@dacr
dacr / djl-bert-question-answer.sc
Created January 29, 2024 11:07
bert question answer using DJL / published by https://github.com/dacr/code-examples-manager #8d02579b-7065-47b1-9d1a-045ed6bd9c05/9ccacc46529df169660889fdd29d48110e74be76
// summary : bert question answer using DJL
// keywords : djl, machine-learning, tutorial, ai, @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 : 8d02579b-7065-47b1-9d1a-045ed6bd9c05
// created-on : 2024-01-29T11:58:43+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / nix-shell-scalafx.nix
Created January 29, 2024 09:47
nix-shell environment for javafx scala-fx / published by https://github.com/dacr/code-examples-manager #36e58dc5-7408-43dc-9514-7d5ebead8218/17e71367738abe9b30eda3112c47e43f0eaaf323
## summary : nix-shell environment for javafx scala-fx
## keywords : nix, djl, nix-shell, javafx, nix
## 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 : 36e58dc5-7408-43dc-9514-7d5ebead8218
## created-on : 2024-01-29T10:45:57+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix-shell $file
@dacr
dacr / djl-image-classification-models-compare.sc
Last active January 29, 2024 09:47
image classification compare models / published by https://github.com/dacr/code-examples-manager #f1c02983-8800-4c08-812e-14b732be895d/ba35a5e64fe7c54eecb279958b76e0db310484e1
// summary : image classification compare models
// keywords : djl, machine-learning, tutorial, detection, ai, @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 : f1c02983-8800-4c08-812e-14b732be895d
// created-on : 2024-01-28T13:24:06+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / djl-hugging-face-sentence-positiveness.sc
Last active January 29, 2024 11:07
sentiment analysis using DJL / published by https://github.com/dacr/code-examples-manager #65caa624-232d-483d-83d2-0d4ea0067540/99eda85629f074ad954edb56d281dded3cf70db3
// summary : sentiment analysis using DJL
// keywords : djl, machine-learning, tutorial, sentiment, ai, @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 : 65caa624-232d-483d-83d2-0d4ea0067540
// created-on : 2024-01-28T16:16:23+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / djl-object-detection-models-compare.sc
Last active January 29, 2024 09:47
Things (objects, people, animals) detection using DJL - compare models efficiency / published by https://github.com/dacr/code-examples-manager #bd813b80-9e47-489d-9a1d-86c5fb5c828e/70d3af45e506dc25d11d9bbd87ba62bc80a7a419
// summary : Things (objects, people, animals) detection using DJL - compare models efficiency
// keywords : djl, machine-learning, tutorial, detection, ai, @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 : bd813b80-9e47-489d-9a1d-86c5fb5c828e
// created-on : 2024-01-27T14:36:36+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / nix-shell-cuda.nix
Last active February 18, 2024 18:00
nix-shell environment for CUDA and DeepJavaLibrary / published by https://github.com/dacr/code-examples-manager #d84d6a0d-e5d2-4a42-aed4-d785231ef7fe/56c95a483944ae80465393759ed18997eb04750b
## summary : nix-shell environment for CUDA and DeepJavaLibrary
## keywords : nix, djl, 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 : d84d6a0d-e5d2-4a42-aed4-d785231ef7fe
## created-on : 2024-01-27T15:49:43+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : nix-shell $file
@dacr
dacr / tapir-zio-hello-sealed-traits-pickler.sc
Created January 28, 2024 10:08
http server random hello world using sealed traits or union types - experiments / published by https://github.com/dacr/code-examples-manager #5a1b725d-853a-45c6-9d9d-612f67174552/2a47363adfab9cd11620c72118d3518bd40a11ee
// summary : http server random hello world using sealed traits or union types - experiments
// 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 : 5a1b725d-853a-45c6-9d9d-612f67174552
// created-on : 2024-01-24T09:46:26+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