├── .gitattributes ├── Programming Languages ├── README.MD ├── Java │ ├── .gitignore │ ├── Core Principles & Structure │ │ ├── README.MD │ │ ├── 1_basic │ │ │ └── README.MD │ │ ├── 3_advanced │ │ │ └── README.MD │ │ ├── 2_intermediate │ │ │ └── README.MD │ │ └── old │ │ │ └── README.MD │ ├── Recipes │ │ ├── threading │ │ │ └── readme.md │ │ ├── maven │ │ │ ├── json_object.xml │ │ │ ├── junit_dependency.xml │ │ │ ├── jackson_xml │ │ │ ├── jma.xml │ │ │ ├── live_reloader-thymeleaft.xml │ │ │ ├── junit5_dependency.xml │ │ │ └── rest-assured.xml │ │ └── databases │ │ │ └── mysql │ │ │ └── dependency.xml │ ├── libraries │ │ └── libGDX │ │ │ └── libGDX.md │ └── small_apps │ │ ├── wave_app │ │ └── src │ │ │ ├── README.MD │ │ │ └── com │ │ │ └── waves │ │ │ └── Arguments.java │ │ ├── README.MD │ │ ├── rawConsoleInput │ │ └── readme.md │ │ └── javafx │ │ └── setBorderBox.java ├── Python │ ├── Basics │ │ ├── Part -1 - Functional │ │ │ ├── README.MD │ │ │ ├── 08 - Modules, Packages │ │ │ │ ├── 04 - structuring_imports_package │ │ │ │ │ └── common │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── models │ │ │ │ │ │ ├── users │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── user.py │ │ │ │ │ │ │ └── __pycache__ │ │ │ │ │ │ │ │ ├── user.cpython-38.pyc │ │ │ │ │ │ │ │ └── __init__.cpython-38.pyc │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── posts │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── post.py │ │ │ │ │ │ │ ├── posts.py │ │ │ │ │ │ │ └── __pycache__ │ │ │ │ │ │ │ │ ├── post.cpython-38.pyc │ │ │ │ │ │ │ │ ├── posts.cpython-38.pyc │ │ │ │ │ │ │ │ └── __init__.cpython-38.pyc │ │ │ │ │ │ └── __pycache__ │ │ │ │ │ │ │ └── __init__.cpython-38.pyc │ │ │ │ │ │ ├── helpers │ │ │ │ │ │ ├── calculator.py │ │ │ │ │ │ ├── __pycache__ │ │ │ │ │ │ │ ├── __init__.cpython-38.pyc │ │ │ │ │ │ │ └── calculator.cpython-38.pyc │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── validators │ │ │ │ │ │ ├── date.py │ │ │ │ │ │ ├── json.py │ │ │ │ │ │ ├── boolean.py │ │ │ │ │ │ ├── __pycache__ │ │ │ │ │ │ │ ├── date.cpython-38.pyc │ │ │ │ │ │ │ ├── json.cpython-38.pyc │ │ │ │ │ │ │ ├── boolean.cpython-38.pyc │ │ │ │ │ │ │ ├── numeric.cpython-38.pyc │ │ │ │ │ │ │ └── __init__.cpython-38.pyc │ │ │ │ │ │ └── numeric.py │ │ │ │ │ │ └── __pycache__ │ │ │ │ │ │ └── __init__.cpython-38.pyc │ │ │ │ ├── 03 - Using__main__ │ │ │ │ │ ├── __main__.py │ │ │ │ │ ├── module1.py │ │ │ │ │ └── __pycache__ │ │ │ │ │ │ ├── timing.cpython-38.pyc │ │ │ │ │ │ └── module1.cpython-38.pyc │ │ │ │ ├── 01 - module_simple │ │ │ │ │ └── module1_source.py │ │ │ │ ├── 02 - module_simple2 │ │ │ │ │ ├── module1_source.py │ │ │ │ │ ├── module2.py │ │ │ │ │ ├── __pycache__ │ │ │ │ │ │ ├── importer.cpython-38.pyc │ │ │ │ │ │ └── module2.cpython-38.pyc │ │ │ │ │ └── main.py │ │ │ │ └── 05 - zipped_package │ │ │ │ │ └── common.zip │ │ │ ├── 09 - command line args │ │ │ │ ├── 02_example.py │ │ │ │ └── 03_example.py │ │ │ ├── 03 - Function Parameters │ │ │ │ ├── rec1.png │ │ │ │ ├── list.4.gif │ │ │ │ ├── recu3.png │ │ │ │ ├── rec_stack.webp │ │ │ │ ├── python-factorial-function.png │ │ │ │ ├── 08example.py │ │ │ │ ├── 01_rec_calc_n.py │ │ │ │ └── unpackig_iterables.py │ │ │ ├── 04 - First-Class-Functions │ │ │ │ ├── formula.gif │ │ │ │ ├── distance.gif │ │ │ │ └── formula2.gif │ │ │ ├── 07 - Tuples as Data Records │ │ │ │ └── 07_NT_docstring.py │ │ │ └── 06 - Decorators │ │ │ │ └── set_unit.py │ │ ├── Part -2 - Iteration & Generators │ │ │ ├── 04 - Iteration Tools │ │ │ │ ├── 06_accumulate.py │ │ │ │ ├── car-brands.txt │ │ │ │ ├── 05_starmap.py │ │ │ │ ├── 09_lazy_ctx.py │ │ │ │ └── Selecting -Filtering │ │ │ │ │ └── 03_dropwhile.py │ │ │ ├── 05 - Context Managers │ │ │ │ └── test.txt │ │ │ ├── 02 - Iterables & Iterators │ │ │ │ ├── 11_lazy_iter_csv.py │ │ │ │ └── Project 2 │ │ │ │ │ ├── poly-iter-lazy │ │ │ │ │ └── __pycache__ │ │ │ │ │ │ └── poly_lazy_iter.cpython-38.pyc │ │ │ │ │ └── README.MD │ │ │ ├── 06 - Generator Based Coroutines │ │ │ │ └── README.MD │ │ │ ├── 01 - Sequences │ │ │ │ └── 02_slice.py │ │ │ └── 03_Generators │ │ │ │ └── simple_generator.py │ │ ├── Part -3- Hash Maps │ │ │ ├── 05- Specialized Dictionaries │ │ │ │ ├── json_dicts │ │ │ │ │ └── jsons │ │ │ │ │ │ └── prod.json │ │ │ │ └── README.MD │ │ │ └── README.MD │ │ ├── README.MD │ │ └── Part -4- OOP │ │ │ ├── 01 - Classes │ │ │ └── README.MD │ │ │ └── README.MD │ ├── Standard Libraries │ │ ├── TKinter │ │ │ ├── recipes │ │ │ │ ├── app │ │ │ │ │ └── src │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ └── main.py │ │ │ │ ├── assets │ │ │ │ │ ├── help.txt │ │ │ │ │ ├── python.png │ │ │ │ │ └── download.png │ │ │ │ ├── multithreading │ │ │ │ │ └── assets │ │ │ │ │ │ └── 640x480.jpg │ │ │ │ ├── inputs │ │ │ │ │ └── 1_password.py │ │ │ │ └── cursor │ │ │ │ │ └── 1_change_cursor_on_motion.py │ │ │ ├── 1_hello_world.py │ │ │ ├── tutorial │ │ │ │ ├── 1_hello_world │ │ │ │ │ ├── 1_hello_world.py │ │ │ │ │ ├── 5_hello_world.py │ │ │ │ │ └── 2_hello_world.py │ │ │ │ ├── window │ │ │ │ │ ├── python.ico │ │ │ │ │ └── simple.py │ │ │ │ └── 2_widgets │ │ │ │ │ └── python.png │ │ │ └── __pycache__ │ │ │ │ └── tk_imports.cpython-311.pyc │ │ ├── bisect │ │ │ └── bisect_recipe.py │ │ ├── urllib │ │ │ └── urlopen.py │ │ ├── json │ │ │ └── JSONEncoder_custom.py │ │ ├── Turtle │ │ │ └── README.MD │ │ ├── README.MD │ │ └── Unittest │ │ │ └── 01_runner.py │ ├── External Libraries │ │ ├── Flask │ │ │ ├── Flask_website_examples │ │ │ │ ├── 00 To-Do WebApp │ │ │ │ │ ├── to_do_app │ │ │ │ │ │ ├── tag │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── core │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── reminder │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── static │ │ │ │ │ │ │ └── style │ │ │ │ │ │ │ │ └── main.css │ │ │ │ │ │ └── data.sqlite │ │ │ │ │ ├── app.py │ │ │ │ │ └── requirements.txt │ │ │ │ ├── 06 Social WebSite │ │ │ │ │ ├── migrations │ │ │ │ │ │ └── README │ │ │ │ │ ├── templates │ │ │ │ │ │ ├── blank.html │ │ │ │ │ │ ├── error_pages │ │ │ │ │ │ │ ├── 403.html │ │ │ │ │ │ │ ├── 404.html │ │ │ │ │ │ │ └── 500.html │ │ │ │ │ │ └── macro │ │ │ │ │ │ │ └── macro.html │ │ │ │ │ ├── database.db │ │ │ │ │ ├── images │ │ │ │ │ │ ├── cat.jpg │ │ │ │ │ │ ├── cat_1.jpg │ │ │ │ │ │ ├── cat_2.jpg │ │ │ │ │ │ ├── cat_3.jpg │ │ │ │ │ │ ├── luigi.png │ │ │ │ │ │ ├── mario.png │ │ │ │ │ │ ├── coding_1.jpg │ │ │ │ │ │ ├── luigi_1.png │ │ │ │ │ │ ├── luigi_2.png │ │ │ │ │ │ ├── luigi_3.png │ │ │ │ │ │ ├── luigi_4.png │ │ │ │ │ │ ├── luigi_5.png │ │ │ │ │ │ ├── luigi_6.png │ │ │ │ │ │ ├── matrix_1.jpg │ │ │ │ │ │ ├── space_1.jpg │ │ │ │ │ │ ├── Vampire-Cat.png │ │ │ │ │ │ ├── something_great.jpg │ │ │ │ │ │ ├── rabbit-1903016_1920.jpg │ │ │ │ │ │ ├── something_great_1.jpg │ │ │ │ │ │ ├── ireland-1985088_1920.jpg │ │ │ │ │ │ ├── hedgehog-child-1759027_1920.jpg │ │ │ │ │ │ └── cat-pet-animal-domestic-104827.jpeg │ │ │ │ │ └── static │ │ │ │ │ │ ├── img │ │ │ │ │ │ └── anonymous.png │ │ │ │ │ │ ├── css │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ └── brick-wall.png │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ └── Ubuntu-regular │ │ │ │ │ │ │ ├── Ubuntu-regular.eot │ │ │ │ │ │ │ ├── Ubuntu-regular.ttf │ │ │ │ │ │ │ ├── Ubuntu-regular.woff │ │ │ │ │ │ │ └── Ubuntu-regular.woff2 │ │ │ │ │ │ └── bs │ │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── 08 Forum WebSite │ │ │ │ │ ├── migrations │ │ │ │ │ │ └── README │ │ │ │ │ ├── templates │ │ │ │ │ │ └── security │ │ │ │ │ │ │ └── base.html │ │ │ │ │ ├── static │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ ├── editor.css │ │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ │ └── Ubuntu-regular │ │ │ │ │ │ │ │ ├── Ubuntu-regular.eot │ │ │ │ │ │ │ │ ├── Ubuntu-regular.ttf │ │ │ │ │ │ │ │ ├── Ubuntu-regular.woff │ │ │ │ │ │ │ │ └── Ubuntu-regular.woff2 │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ └── anonymous.png │ │ │ │ │ │ └── bs │ │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ └── database.db │ │ │ │ ├── 07 WebStore -Clothing │ │ │ │ │ ├── migrations │ │ │ │ │ │ └── README │ │ │ │ │ ├── static │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ ├── editor.css │ │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ │ └── Ubuntu-regular │ │ │ │ │ │ │ │ ├── Ubuntu-regular.eot │ │ │ │ │ │ │ │ ├── Ubuntu-regular.ttf │ │ │ │ │ │ │ │ ├── Ubuntu-regular.woff │ │ │ │ │ │ │ │ └── Ubuntu-regular.woff2 │ │ │ │ │ │ ├── imgs │ │ │ │ │ │ │ ├── 1.jpg │ │ │ │ │ │ │ ├── 2.jpg │ │ │ │ │ │ │ ├── blouse.jpg │ │ │ │ │ │ │ ├── printed-dress.jpg │ │ │ │ │ │ │ ├── printed-dress_2.jpg │ │ │ │ │ │ │ ├── printed-dress_full.jpg │ │ │ │ │ │ │ ├── printed-summer-dress.jpg │ │ │ │ │ │ │ ├── printed-summer-dress_2.jpg │ │ │ │ │ │ │ └── faded-short-sleeves-tshirt.jpg │ │ │ │ │ │ └── bs │ │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ ├── database.db │ │ │ │ │ ├── requirements.txt │ │ │ │ │ ├── images │ │ │ │ │ │ ├── blouse.jpg │ │ │ │ │ │ ├── printed-dress.jpg │ │ │ │ │ │ ├── printed-dress_2.jpg │ │ │ │ │ │ ├── printed-summer-dress.jpg │ │ │ │ │ │ ├── printed-summer-dress_2.jpg │ │ │ │ │ │ └── faded-short-sleeves-tshirt.jpg │ │ │ │ │ └── templates │ │ │ │ │ │ └── macro │ │ │ │ │ │ └── macro.html │ │ │ │ ├── 01 Request │ │ │ │ │ ├── static │ │ │ │ │ │ └── style │ │ │ │ │ │ │ └── main.css │ │ │ │ │ ├── templates │ │ │ │ │ │ └── macros │ │ │ │ │ │ │ └── macro.html │ │ │ │ │ └── requirements.txt │ │ │ │ ├── 04 Flaskr │ │ │ │ │ ├── app.py │ │ │ │ │ └── instance │ │ │ │ │ │ └── flaskr.sqlite │ │ │ │ ├── 09 Weather App │ │ │ │ │ └── data.sqlite │ │ │ │ ├── 02 Food-Tracker │ │ │ │ │ ├── requirements.txt │ │ │ │ │ └── static │ │ │ │ │ │ └── theme.css │ │ │ │ ├── 03 Uploads │ │ │ │ │ └── B Version │ │ │ │ │ │ └── requirements.txt │ │ │ │ └── 05 Question - Answer App │ │ │ │ │ ├── templates │ │ │ │ │ └── error_pages │ │ │ │ │ │ └── 404.html │ │ │ │ │ ├── app_func.py │ │ │ │ │ └── static │ │ │ │ │ └── theme.css │ │ │ ├── Flask-Extensions │ │ │ │ ├── Flask-Admin │ │ │ │ │ ├── Shop │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ ├── other.html │ │ │ │ │ │ │ ├── custom_edit.html │ │ │ │ │ │ │ ├── custom_create.html │ │ │ │ │ │ │ ├── custom_list.html │ │ │ │ │ │ │ └── standalone_.html │ │ │ │ │ │ └── data.sqlite │ │ │ │ │ ├── examples_01 │ │ │ │ │ │ ├── my_version │ │ │ │ │ │ │ └── flask_admin │ │ │ │ │ │ │ │ └── __init__.py │ │ │ │ │ │ ├── forms-files-images │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ ├── create_user.html │ │ │ │ │ │ │ │ ├── edit_user.html │ │ │ │ │ │ │ │ └── macros.html │ │ │ │ │ │ │ ├── test.py │ │ │ │ │ │ │ ├── data.sqlite │ │ │ │ │ │ │ ├── files │ │ │ │ │ │ │ │ ├── coding_2.jpg │ │ │ │ │ │ │ │ ├── matrix_1.jpg │ │ │ │ │ │ │ │ ├── fireworks.jpg │ │ │ │ │ │ │ │ ├── coding_2_thumb.jpg │ │ │ │ │ │ │ │ ├── fireworks_thumb.jpg │ │ │ │ │ │ │ │ ├── matrix_1_thumb.jpg │ │ │ │ │ │ │ │ ├── hedgehog-child-1759027_1920.jpg │ │ │ │ │ │ │ │ └── hedgehog-child-1759027_1920_thumb.jpg │ │ │ │ │ │ │ └── templates_2 │ │ │ │ │ │ │ │ └── macros.html │ │ │ │ │ │ ├── multiple-admin-instances │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ ├── first.html │ │ │ │ │ │ │ │ └── second.html │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ └── README.MD │ │ │ │ │ │ ├── simple_01 │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ ├── admin │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── standalone_.html │ │ │ │ │ │ │ │ ├── custom_edit.html │ │ │ │ │ │ │ │ ├── custom_create.html │ │ │ │ │ │ │ │ └── custom_list.html │ │ │ │ │ │ │ ├── test.py │ │ │ │ │ │ │ └── data.sqlite │ │ │ │ │ │ ├── simple │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ ├── myadmin.html │ │ │ │ │ │ │ │ ├── test.html │ │ │ │ │ │ │ │ └── anotheradmin.html │ │ │ │ │ │ │ └── requirements.txt │ │ │ │ │ │ ├── flask_admin_ │ │ │ │ │ │ │ └── babel.py │ │ │ │ │ │ ├── bootstrap4 │ │ │ │ │ │ │ └── data.sqlite │ │ │ │ │ │ ├── sqla │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ ├── admin │ │ │ │ │ │ │ │ ├── database.sqlite │ │ │ │ │ │ │ │ ├── static │ │ │ │ │ │ │ │ │ └── favicon.ico │ │ │ │ │ │ │ │ └── config.py │ │ │ │ │ │ │ └── run_server.py │ │ │ │ │ │ ├── custom-layout │ │ │ │ │ │ │ └── data.sqlite │ │ │ │ │ │ ├── method_view │ │ │ │ │ │ │ ├── requirements.txt │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ └── test.html │ │ │ │ │ │ ├── auth-flask-login │ │ │ │ │ │ │ ├── database.sqlite │ │ │ │ │ │ │ └── requirements.txt │ │ │ │ │ │ └── sqla-custom-inline-forms │ │ │ │ │ │ │ ├── data.sqlite │ │ │ │ │ │ │ ├── static │ │ │ │ │ │ │ ├── mario.png │ │ │ │ │ │ │ └── 7b1468ff-019a-44d1-b4bb-729e5a252899.jpg │ │ │ │ │ │ │ └── README.MD │ │ │ │ │ └── README.MD │ │ │ │ └── Defaults │ │ │ │ │ ├── Jinja2 │ │ │ │ │ └── README.MD │ │ │ │ │ └── README.MD │ │ │ ├── .gitignore │ │ │ ├── Flask Main │ │ │ │ └── Patter for Flask │ │ │ │ │ ├── API_error.py │ │ │ │ │ └── SPA_API.py │ │ │ └── Flask_Fast-Food │ │ │ │ └── Config │ │ │ │ └── README.MD │ │ ├── MyMuPDF │ │ │ └── sample │ │ │ │ └── Calendar.pdf │ │ ├── Odoo │ │ │ └── README.MD │ │ ├── Kivy │ │ │ └── Front-end │ │ │ │ ├── README.MD │ │ │ │ ├── ActionBar │ │ │ │ └── README.MD │ │ │ │ └── ActionButton │ │ │ │ └── README.MD │ │ ├── Requests │ │ │ └── simple.py │ │ ├── Serpy │ │ │ └── README.MD │ │ └── PyTest │ │ │ └── README.MD │ ├── lambdas.py │ ├── ref_counter.py │ ├── WebScraping │ │ └── Pic-Downloader │ │ │ └── requirements.txt │ ├── Utils │ │ └── import.py │ ├── simple_generator.py │ ├── Socket │ │ ├── realPythonTutorial │ │ │ └── README.MD │ │ ├── chat │ │ │ └── simple_tcp_chat_01 │ │ │ │ └── README.MD │ │ └── commands.bash │ ├── permutation.py │ ├── dict_comprehension_efficient.py │ └── MultiProcessing-Threading │ │ ├── Queue │ │ └── README.MD │ │ └── Threading │ │ └── examples │ │ └── script_1.py ├── PHP │ ├── Recipes │ │ ├── README.MD │ │ ├── encoding_php.php │ │ ├── Email │ │ │ ├── README.MD │ │ │ └── validate_email_addr.php │ │ ├── Datetime │ │ │ └── datetime_for_mysql.php │ │ ├── auto_loader_require.php │ │ ├── regex │ │ │ └── simple_routing_match.php │ │ └── database │ │ │ ├── database_operation.php │ │ │ └── query_loop.php │ ├── Lumen │ │ └── README.MD │ ├── Core Principles & Structure │ │ ├── README.MD │ │ └── echo.php │ ├── php_eol.php │ ├── Wordpress │ │ └── commands.bash │ └── .htaccess ├── C │ ├── fundamentals │ │ ├── roadmap │ │ │ ├── 3_advanced │ │ │ │ └── 6_data_structures │ │ │ │ │ └── main.c │ │ │ ├── 2_intermediate │ │ │ │ ├── 4_io_streams │ │ │ │ │ ├── fgetc.txt │ │ │ │ │ └── 2_file_handling.txt │ │ │ │ ├── 5_variables_2 │ │ │ │ │ ├── source1.c │ │ │ │ │ └── source2.c │ │ │ │ ├── 2_functions_2 │ │ │ │ │ └── recursion │ │ │ │ └── 3_scopes │ │ │ │ │ └── readme.md │ │ │ └── 1_basic │ │ │ │ ├── 0_install │ │ │ │ └── readme.md │ │ │ │ └── 6_functions │ │ │ │ └── readme.md │ │ └── old │ │ │ └── Data Structure │ │ │ ├── Buffers │ │ │ └── README.MD │ │ │ ├── README.MD │ │ │ └── Queue │ │ │ └── README.MD │ ├── Recipes │ │ ├── c_version │ │ │ ├── c.out │ │ │ └── compile_c_versions.bash │ │ ├── print_functions │ │ │ ├── p1 │ │ │ └── p2 │ │ ├── algorithms │ │ │ └── fibonacci │ │ ├── hello_world │ │ │ ├── 01._hello_world │ │ │ │ └── main.c │ │ │ ├── reverse_string │ │ │ │ └── main.c │ │ │ └── compile.bash │ │ ├── nomain.c │ │ ├── Basics-SimpleTricks │ │ │ └── Tricks │ │ │ │ └── reverseSentence.c │ │ └── find_littleEndian_bigEndian.c │ ├── External-Libraries │ │ └── README.MD │ └── .vscode │ │ ├── settings.json │ │ └── c_cpp_properties.json ├── GO │ ├── fundamentals │ │ ├── go_build_module │ │ │ ├── greetings │ │ │ │ └── go.mod │ │ │ └── hello │ │ │ │ ├── hello │ │ │ │ └── go.mod │ │ ├── any_types.go │ │ ├── arrays │ │ │ ├── arrays.go │ │ │ └── sort_array_num.go │ │ ├── goroutines │ │ │ ├── channels │ │ │ │ ├── buffered_channels.go │ │ │ │ ├── range_close_channels.go │ │ │ │ └── sample.go │ │ │ └── sample.go │ │ ├── slices │ │ │ ├── README.MD │ │ │ └── make_slice.go │ │ ├── interfaces │ │ │ ├── interface_empty.go │ │ │ ├── assertions.go │ │ │ ├── interface_implicit.go │ │ │ └── assertions_switch.go │ │ ├── maps │ │ │ └── README.MD │ │ ├── methods │ │ │ ├── method_on_any_type.go │ │ │ ├── methods.go │ │ │ └── pointer_receivers.go │ │ ├── i │ │ │ └── o │ │ │ │ └── readers.go │ │ ├── closures.go │ │ └── function_values.go │ └── recipes │ │ ├── set_max_proc.go │ │ ├── readme_sample.txt │ │ ├── print_all_env_vars.go │ │ ├── gb_const_iota.go │ │ ├── to_string.go │ │ └── write_to_files.go ├── JavaScript │ ├── Node │ │ ├── commands.bash │ │ ├── Core Principles & Structure │ │ │ └── createErrors.js │ │ └── Recipes │ │ │ ├── cleanURL.js │ │ │ ├── checkIfModuleIsInstalled.js │ │ │ ├── express │ │ │ ├── esj_SwitchStatement.ejs │ │ │ ├── README.MD │ │ │ ├── simpleRouterMiddlewareBoilerplate.js │ │ │ └── urlencoded_json_middleware.js │ │ │ └── Web │ │ │ └── simple_HTTP_Server.js │ ├── Ready-Code-Blocks │ │ ├── README.MD │ │ └── Web-Page-Mirror │ │ │ └── js │ │ │ └── app.js │ ├── Frameworks-Libraries │ │ └── Vue │ │ │ ├── assets_default │ │ │ └── logo.svg │ │ │ ├── icons │ │ │ └── IconSupport.vue │ │ │ └── .eslintrc.cjs │ └── Tutorial │ │ └── Basics - Syntax │ │ ├── 01function.js │ │ ├── 07_lastItemArray.js │ │ └── 04_random_nums.js ├── C++ │ ├── first_project │ │ ├── cards │ │ │ ├── cards │ │ │ └── Cardgame.h │ │ ├── hello_world │ │ ├── version │ │ │ ├── version │ │ │ └── version.cpp │ │ ├── c_plus_plus_vscode │ │ │ └── helloworld │ │ ├── calculators │ │ │ ├── calculator_01 │ │ │ │ ├── Calculator.h │ │ │ │ ├── calculator │ │ │ │ └── README.MD │ │ │ ├── calculator_02 │ │ │ │ ├── calculator │ │ │ │ └── README.MD │ │ │ └── calculator_03 │ │ │ │ └── README.MD │ │ ├── make_debugger_stop │ │ │ ├── seg_fault │ │ │ └── seg_fault.cpp │ │ ├── misc │ │ │ └── function_name.cpp │ │ └── hello_world.cpp │ ├── Core Principles & Structure │ │ ├── exceptions │ │ │ ├── app │ │ │ └── README.MD │ │ ├── misc │ │ │ ├── static_var │ │ │ └── static_in_class │ │ └── range_based_for_loop │ ├── .vscode │ │ ├── settings.json │ │ └── c_cpp_properties.json │ └── recipes │ │ └── version.cpp └── StarLark │ └── README.MD ├── Game Development ├── javascript │ ├── .gitignore │ ├── threejs │ │ ├── package.json │ │ ├── .DS_Store │ │ └── recipes │ │ │ └── resizeRenderer.js │ └── recipes │ │ ├── random_numbers.js │ │ ├── fill_all_canvas_background.js │ │ ├── font │ │ └── simple.js │ │ ├── draws_and_shapes │ │ ├── simple_rect.js │ │ ├── square.js │ │ ├── grid.js │ │ ├── path_2d │ │ │ └── path_2d_simple.js │ │ └── smile.js │ │ ├── random_rgb.js │ │ ├── check_browser_support.js │ │ ├── index.html │ │ ├── styles_color │ │ ├── lineWidth.js │ │ ├── dots_multi_color.js │ │ └── multi_color.js │ │ ├── controls │ │ └── mouse_element_position.js │ │ └── start_up_scripts │ │ ├── main.css │ │ ├── start_up_repo_01 │ │ └── public │ │ │ ├── static │ │ │ ├── js │ │ │ │ └── src │ │ │ │ │ └── paintings.js │ │ │ └── css │ │ │ │ └── main.css │ │ │ └── index.html │ │ └── index.html ├── java │ ├── libGDX │ │ ├── assets │ │ │ ├── default.png │ │ │ └── uiskin.png │ │ ├── lib_gdx_commands.bash │ │ └── recipes │ │ │ └── TextureID.java │ └── Java Game Development.md └── python │ └── pygame │ └── recipes │ └── draw_chess_board.py ├── Software Development ├── Front-End │ ├── DOM │ │ └── create_nodes │ ├── XML │ │ ├── DTD │ │ │ ├── README.MD │ │ │ └── Sample │ │ │ │ ├── sample.dtd │ │ │ │ └── sample.xml │ │ ├── xslt │ │ │ └── cdcatalog.xml │ │ └── XML-Schema │ │ │ ├── reference_to_schema.xml │ │ │ └── sample_01.xml │ ├── HTML │ │ └── text_area_code.html │ ├── CSS │ │ ├── word-wrap.css │ │ ├── remove_all_style_from_button.css │ │ └── loadingSpinnerCSS │ │ │ └── loadinSpinnerCSS.html │ ├── Ready-Design │ │ ├── Web Components │ │ │ ├── Parallax │ │ │ │ ├── parallax_collections │ │ │ │ │ └── parallax │ │ │ │ │ │ └── .vscode │ │ │ │ │ │ └── settings.json │ │ │ │ └── parallax_simple_01_css │ │ │ │ │ └── img │ │ │ │ │ ├── image1.jpg │ │ │ │ │ ├── image2.jpg │ │ │ │ │ └── image3.jpg │ │ │ └── README.MD │ │ └── SVG │ │ │ └── README.MD │ ├── AJAX │ │ └── simple_httprequest.js │ └── figma_docs.md ├── MobileDev │ ├── Android │ │ ├── utils │ │ │ └── README.MD │ │ └── Play-Console-Guides │ │ │ └── README.MD │ └── ReactNative │ │ ├── utils │ │ └── README.MD │ │ └── .vscode │ │ └── launch.json ├── Back-End │ └── Databases │ │ ├── SQLite │ │ ├── Example │ │ │ ├── delete.sql │ │ │ └── update.sql │ │ ├── Python-APIs │ │ │ ├── 05_delete_data.py │ │ │ └── 04_update_data.py │ │ ├── img │ │ │ ├── inner-join.png │ │ │ ├── left-join.png │ │ │ └── full-outer-join.png │ │ └── Select │ │ │ └── limit.sql │ │ ├── MySQL │ │ ├── 05_delete_data.py │ │ ├── 04_update_data.py │ │ └── Recipes │ │ │ └── verbose_output │ │ │ └── insert_sample.sql │ │ ├── PostgreSQL │ │ ├── Python-API │ │ │ ├── 05_delete_data.py │ │ │ └── 04_update_data.py │ │ └── Select │ │ │ └── views.sql │ │ └── SQLAlchemy │ │ ├── query.py │ │ └── README.MD └── DevOps │ └── commands.bash ├── Software Architecture ├── Design Principles │ ├── OO_Design.md │ ├── SOA.md │ ├── Monolith_architecture.md │ ├── Enterprise_integration.md │ └── microservice_architecture.md └── System Design │ ├── system-design-steps.png │ └── designs │ ├── uber │ ├── uber-design-1.png │ ├── uber-design-2.png │ └── uber-design-3.png │ └── ticket_master │ └── design-ticket-master.png ├── .gitignore ├── Container & Orchestrations ├── Kubernetes │ ├── tutorial │ │ ├── liveness_readiness │ │ │ ├── requirement.txt │ │ │ ├── Dockerfile │ │ │ ├── service.yaml │ │ │ ├── original │ │ │ │ └── service.yaml │ │ │ └── app.py │ │ └── examples │ │ │ └── pods │ │ │ ├── pod_nginx.yaml │ │ │ └── pod_accessible.yaml │ └── NOTES.MD └── Docker │ ├── entrypoint.sh │ └── recipes │ └── docker_run_recipes.bash ├── Mathematics ├── Polygon │ ├── stc.png │ ├── stc_2.png │ ├── poly_seq_2 │ │ └── __pycache__ │ │ │ └── poly_seq_2.cpython-38.pyc │ └── poly-iter-lazy │ │ └── __pycache__ │ │ └── poly_lazy_iter.cpython-38.pyc ├── matrix_diagonal.py └── series_expansion.py ├── Machine Lerning & AI ├── image.png ├── image-1.png ├── image-2.png ├── image-3.png ├── image-4.png ├── image-5.png ├── cot_monitoring.pdf ├── course_notes │ ├── image-1.png │ ├── image-2.png │ ├── image-3.png │ └── image.png └── keywords.md ├── Makefile ├── Odoo └── module_base │ ├── models │ └── __init__.py │ └── __init__.py ├── Linux └── README.MD ├── IDE - TextEditors ├── Vim_Family │ └── vimrc_examples │ │ └── .vimrc_reverse_tab └── VsCode │ └── .vscode │ └── settings.json ├── Utils ├── pull_request_1.md ├── readme_sample.txt └── readme_pictures.md ├── Algorithms ├── Depth-first │ └── depth_first_list.py └── Breadth-first │ └── breadth_first_list.py ├── .vscode └── c_cpp_properties.json ├── SDLC & Business Models └── SDLC.MD └── Testing └── README.MD /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /Programming Languages/README.MD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Game Development/javascript/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_STORE -------------------------------------------------------------------------------- /Programming Languages/Java/.gitignore: -------------------------------------------------------------------------------- 1 | *.class -------------------------------------------------------------------------------- /Software Development/Front-End/DOM/create_nodes: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Software Development/Front-End/XML/DTD/README.MD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Software Architecture/Design Principles/OO_Design.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Java/Core Principles & Structure/README.MD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/README.MD: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/README.MD: -------------------------------------------------------------------------------- 1 | PHP Recipes 2 | =========== -------------------------------------------------------------------------------- /Software Architecture/Design Principles/SOA.md: -------------------------------------------------------------------------------- 1 | SOA 2 | ==== 3 | 4 | -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/3_advanced/6_data_structures/main.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/app/src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/app/src/main.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .DS_Store 3 | 4 | # C compiled files 5 | main 6 | *.o 7 | 8 | 9 | -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/liveness_readiness/requirement.txt: -------------------------------------------------------------------------------- 1 | flask 2 | -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/assets/help.txt: -------------------------------------------------------------------------------- 1 | Some Help here -------------------------------------------------------------------------------- /Programming Languages/PHP/Lumen/README.MD: -------------------------------------------------------------------------------- 1 | Lumen 2 | ======================= 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Software Development/MobileDev/Android/utils/README.MD: -------------------------------------------------------------------------------- 1 | Android 2 | ================== 3 | 4 | 5 | -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/2_intermediate/4_io_streams/fgetc.txt: -------------------------------------------------------------------------------- 1 | Line one. 2 | Line two. -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/06_accumulate.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Container & Orchestrations/Docker/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -euo pipefail 3 | 4 | exec "$@" 5 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/encoding_php.php: -------------------------------------------------------------------------------- 1 | Hola -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/00 To-Do WebApp/to_do_app/static/style/main.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Software Architecture/Design Principles/Monolith_architecture.md: -------------------------------------------------------------------------------- 1 | Monolith Architecture 2 | ===================== 3 | 4 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/commands.bash: -------------------------------------------------------------------------------- 1 | # serve current index.html 2 | npm install serve@14.2.1 --save-dev 3 | npx serve -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/my_version/flask_admin/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Software Architecture/Design Principles/Enterprise_integration.md: -------------------------------------------------------------------------------- 1 | Enterprise Integrations 2 | ======================= 3 | 4 | -------------------------------------------------------------------------------- /Programming Languages/Java/Core Principles & Structure/2_intermediate/README.MD: -------------------------------------------------------------------------------- 1 | Java - Roadmap - Intermediate 2 | ====================== -------------------------------------------------------------------------------- /Container & Orchestrations/Docker/recipes/docker_run_recipes.bash: -------------------------------------------------------------------------------- 1 | 2 | 3 | docker run docker/welcome-to-docker --name=welcome-to-docker -P 8088 -------------------------------------------------------------------------------- /Machine Lerning & AI/cot_monitoring.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Machine Lerning & AI/cot_monitoring.pdf -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/1_hello_world.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | 3 | 4 | root = tk.Tk() 5 | root.mainloop() -------------------------------------------------------------------------------- /Software Development/Front-End/HTML/text_area_code.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Game Development/javascript/threejs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module", 3 | "dependencies": { 4 | "three": "^0.146.0" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/Email/README.MD: -------------------------------------------------------------------------------- 1 | PHP - Email 2 | ============ 3 | 4 | 5 | - [PHPMailer](https://github.com/PHPMailer/PHPMailer) -------------------------------------------------------------------------------- /Programming Languages/Python/lambdas.py: -------------------------------------------------------------------------------- 1 | lower = (lambda x, y: x if x < y else y) 2 | lower('bb', 'aa') 3 | # 'aa' 4 | lower('aa', 'bb') 5 | # 'aa' -------------------------------------------------------------------------------- /Software Development/Front-End/CSS/word-wrap.css: -------------------------------------------------------------------------------- 1 | div.a { 2 | word-wrap: normal; 3 | } 4 | 5 | div.b { 6 | word-wrap: break-word; 7 | } -------------------------------------------------------------------------------- /Game Development/javascript/recipes/random_numbers.js: -------------------------------------------------------------------------------- 1 | function random(min, max) { 2 | return Math.floor(Math.random() * (max - min + 1)) + min; 3 | } -------------------------------------------------------------------------------- /Game Development/javascript/threejs/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Game Development/javascript/threejs/.DS_Store -------------------------------------------------------------------------------- /Machine Lerning & AI/course_notes/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Machine Lerning & AI/course_notes/image-1.png -------------------------------------------------------------------------------- /Machine Lerning & AI/course_notes/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Machine Lerning & AI/course_notes/image-2.png -------------------------------------------------------------------------------- /Machine Lerning & AI/course_notes/image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Machine Lerning & AI/course_notes/image-3.png -------------------------------------------------------------------------------- /Machine Lerning & AI/course_notes/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Machine Lerning & AI/course_notes/image.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/templates/security/base.html: -------------------------------------------------------------------------------- 1 | {% extends "login_base.html" %} -------------------------------------------------------------------------------- /Programming Languages/Python/ref_counter.py: -------------------------------------------------------------------------------- 1 | import ctypes 2 | 3 | 4 | def ref_count(address): 5 | return ctypes.c_long.from_address(address).value -------------------------------------------------------------------------------- /Game Development/java/libGDX/assets/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Game Development/java/libGDX/assets/default.png -------------------------------------------------------------------------------- /Game Development/java/libGDX/assets/uiskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Game Development/java/libGDX/assets/uiskin.png -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/c_version/c.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C/Recipes/c_version/c.out -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | 2 | sync: 3 | git pull; git status; git add .; git commit -a -m "Sync changes"; git push; printf "\n\n🔎 Checking Sync Status.... 🪄\n"; git status; 4 | -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/print_functions/p1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C/Recipes/print_functions/p1 -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/print_functions/p2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C/Recipes/print_functions/p2 -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/threading/readme.md: -------------------------------------------------------------------------------- 1 | 2 | * https://github.com/eugenp/tutorials/tree/master/core-java-modules/core-java-concurrency-collections -------------------------------------------------------------------------------- /Odoo/module_base/models/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # © (https://www.federicobau.dev). 3 | # License OPL-1 or later. 4 | # @Author: federicobau.dev -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/cards/cards: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/cards/cards -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/hello_world: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/hello_world -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/algorithms/fibonacci: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C/Recipes/algorithms/fibonacci -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/1_basic/0_install/readme.md: -------------------------------------------------------------------------------- 1 | C - Install 2 | ----------- 3 | 4 | 5 | ### **SEE [install_c.md](../../../../install_c.md)** -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/tutorial/1_hello_world/1_hello_world.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | 3 | 4 | root = tk.Tk() 5 | root.mainloop() -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/MySQL/05_delete_data.py: -------------------------------------------------------------------------------- 1 | delete_comment = "DELETE FROM comments WHERE id = 2" 2 | execute_query(connection, delete_comment) 3 | -------------------------------------------------------------------------------- /Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_collections/parallax/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5501 3 | } -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/version/version: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/version/version -------------------------------------------------------------------------------- /Programming Languages/GO/recipes/set_max_proc.go: -------------------------------------------------------------------------------- 1 | import "runtime" 2 | 3 | func main() { 4 | runtime.GOMAXPROCS(runtime.NumCPU()) // use all CPU cores 5 | } 6 | -------------------------------------------------------------------------------- /Programming Languages/Java/libraries/libGDX/libGDX.md: -------------------------------------------------------------------------------- 1 | Java -- libGDX 2 | ============== 3 | 4 | * [libgdx](../../../../Game%20Development/java/libGDX/libGDX.md) 5 | -------------------------------------------------------------------------------- /Linux/README.MD: -------------------------------------------------------------------------------- 1 | # Linux 2 | ======================= 3 | 4 | 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/NOTES.MD: -------------------------------------------------------------------------------- 1 | * Check how to run kubectl with a ` --watch` command. 2 | 3 | ``` 4 | Client Version: v1.23.3 5 | Server Version: v1.25.6+k3s1 6 | ``` -------------------------------------------------------------------------------- /Odoo/module_base/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # © (https://www.federicobau.dev). 3 | # License OPL-1 or later. 4 | # @Author: federicobau.dev 5 | from . import models -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Core Principles & Structure/createErrors.js: -------------------------------------------------------------------------------- 1 | class NotEnoughCoffeeError extends Error { 2 | //... 3 | } 4 | throw new NotEnoughCoffeeError() 5 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/Datetime/datetime_for_mysql.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello World\n"); 6 | 7 | return 0; 8 | } -------------------------------------------------------------------------------- /Software Architecture/System Design/designs/uber/uber-design-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Architecture/System Design/designs/uber/uber-design-1.png -------------------------------------------------------------------------------- /Software Architecture/System Design/designs/uber/uber-design-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Architecture/System Design/designs/uber/uber-design-2.png -------------------------------------------------------------------------------- /Software Architecture/System Design/designs/uber/uber-design-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Architecture/System Design/designs/uber/uber-design-3.png -------------------------------------------------------------------------------- /Software Development/DevOps/commands.bash: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### Pods 4 | 5 | 6 | ```bash 7 | ## Curl pod 8 | kubectl run curl-pod --it --rm --image=curlimages/curl --command -- sh 9 | ``` 10 | -------------------------------------------------------------------------------- /Mathematics/Polygon/poly_seq_2/__pycache__/poly_seq_2.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Mathematics/Polygon/poly_seq_2/__pycache__/poly_seq_2.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/C++/Core Principles & Structure/exceptions/app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/Core Principles & Structure/exceptions/app -------------------------------------------------------------------------------- /Programming Languages/C++/Core Principles & Structure/misc/static_var: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/Core Principles & Structure/misc/static_var -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/c_plus_plus_vscode/helloworld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/c_plus_plus_vscode/helloworld -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/calculators/calculator_01/Calculator.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Calculator 4 | { 5 | public: 6 | double Calculate(double x, char oper, double y); 7 | }; -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/make_debugger_stop/seg_fault: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/make_debugger_stop/seg_fault -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/SQLite/img/full-outer-join.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Development/Back-End/Databases/SQLite/img/full-outer-join.png -------------------------------------------------------------------------------- /Game Development/javascript/recipes/fill_all_canvas_background.js: -------------------------------------------------------------------------------- 1 | const canvas = document.getElementById("screen"); 2 | const ctx = canvas.getContext("2d"); 3 | ctx.fillRect(0, 0, canvas.width, canvas.height); -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/2_intermediate/5_variables_2/source1.c: -------------------------------------------------------------------------------- 1 | // https://learn.microsoft.com/en-us/cpp/c-language/extern-storage-class-specifier?view=msvc-170#example 2 | 3 | int i = 1; -------------------------------------------------------------------------------- /Programming Languages/Java/small_apps/wave_app/src/README.MD: -------------------------------------------------------------------------------- 1 | Installation 2 | ------------ 3 | 4 | 5 | ```bash 6 | # Compile 7 | javac com/waves/*.java 8 | # Run 9 | java com.waves.App 10 | ``` -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/auto_loader_require.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Python/WebScraping/Pic-Downloader/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/WebScraping/Pic-Downloader/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/C++/Core Principles & Structure/misc/static_in_class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/Core Principles & Structure/misc/static_in_class -------------------------------------------------------------------------------- /Programming Languages/C++/Core Principles & Structure/range_based_for_loop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/Core Principles & Structure/range_based_for_loop -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/json_object.xml: -------------------------------------------------------------------------------- 1 | 2 | org.json 3 | json 4 | 20090211 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/junit_dependency.xml: -------------------------------------------------------------------------------- 1 | 2 | junit 3 | junit 4 | 4.12 5 | test 6 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/03 - Using__main__/__main__.py: -------------------------------------------------------------------------------- 1 | print(f'Loading __main__ : __name__ = {__name__}') 2 | # >>> Loading __main__ : __name__ = __main__ -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/__init__.py: -------------------------------------------------------------------------------- 1 | # users 2 | 3 | from .user import * 4 | 5 | __all__ = user.__all__ -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/00 To-Do WebApp/app.py: -------------------------------------------------------------------------------- 1 | from to_do_app import app 2 | 3 | if __name__ == '__main__': 4 | app.run(port=5000, debug=True) 5 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/MyMuPDF/sample/Calendar.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/MyMuPDF/sample/Calendar.pdf -------------------------------------------------------------------------------- /Game Development/javascript/recipes/font/simple.js: -------------------------------------------------------------------------------- 1 | ctx.font = '48px serif'; 2 | ctx.fillText('Hello world', 10, 50); 3 | 4 | 5 | // Stoke 6 | ctx.font = '48px serif'; 7 | ctx.strokeText('Hello world', 10, 50); -------------------------------------------------------------------------------- /Mathematics/Polygon/poly-iter-lazy/__pycache__/poly_lazy_iter.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Mathematics/Polygon/poly-iter-lazy/__pycache__/poly_lazy_iter.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/calculators/calculator_01/calculator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/calculators/calculator_01/calculator -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/calculators/calculator_02/calculator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C++/first_project/calculators/calculator_02/calculator -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/calculators/calculator_03/README.MD: -------------------------------------------------------------------------------- 1 | Calculator 03 2 | ============= 3 | 4 | 5 | Credit 6 | ------ 7 | 8 | 9 | * [microsoft/calculator](https://github.com/microsoft/calculator) -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/databases/mysql/dependency.xml: -------------------------------------------------------------------------------- 1 | 2 | mysql 3 | mysql-connector-java 4 | 8.0.19 5 | -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/jackson_xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.fasterxml.jackson.core 4 | jackson-databind 5 | 2.6.3 6 | -------------------------------------------------------------------------------- /Game Development/java/Java Game Development.md: -------------------------------------------------------------------------------- 1 | Java Game Development 2 | ===================== 3 | 4 | * [github.com/Koubae/java-libGDX](https://github.com/Koubae/java-libGDX) 5 | * [libGDX](./libGDX/libGDX.md) 6 | -------------------------------------------------------------------------------- /Programming Languages/C++/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "ostream": "cpp", 4 | "*.tcc": "cpp", 5 | "numeric": "cpp", 6 | "memory_resource": "cpp" 7 | } 8 | } -------------------------------------------------------------------------------- /Programming Languages/GO/recipes/readme_sample.txt: -------------------------------------------------------------------------------- 1 | Go Recipes 🚀 2 | ======================= 3 | 4 | 5 | 6 | 7 | 8 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/01 - module_simple/module1_source.py: -------------------------------------------------------------------------------- 1 | # Module 1 2 | 3 | print('Running Module1.py') 4 | 5 | def hello(): 6 | print('Module 1 says Hello') -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/assets/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Standard Libraries/TKinter/recipes/assets/python.png -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/tutorial/window/python.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Standard Libraries/TKinter/tutorial/window/python.ico -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/tutorial/window/simple.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | 3 | 4 | root = tk.Tk() 5 | root.title('Tkinter Window Demo') 6 | root.geometry('600x400+50+50') 7 | 8 | root.mainloop() -------------------------------------------------------------------------------- /Programming Languages/StarLark/README.MD: -------------------------------------------------------------------------------- 1 | StarLark 2 | ======================= 3 | 4 | 5 | * [Starlark Language](https://bazel.build/rules/language) 6 | * [/bazelbuild/starlark - Github](https://github.com/bazelbuild/starlark) -------------------------------------------------------------------------------- /Software Architecture/System Design/designs/ticket_master/design-ticket-master.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Architecture/System Design/designs/ticket_master/design-ticket-master.png -------------------------------------------------------------------------------- /Software Development/Front-End/Ready-Design/Web Components/README.MD: -------------------------------------------------------------------------------- 1 | Backgrounds 2 | ======================= 3 | 4 | 5 | 6 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Game Development/javascript/recipes/draws_and_shapes/simple_rect.js: -------------------------------------------------------------------------------- 1 | const canvas = document.getElementById("screen"); 2 | const ctx = canvas.getContext("2d"); 3 | 4 | ctx.fillStyle = "green"; 5 | ctx.fillRect(10, 10, 150, 100); 6 | -------------------------------------------------------------------------------- /Programming Languages/C/External-Libraries/README.MD: -------------------------------------------------------------------------------- 1 | External Library 2 | ======================= 3 | 4 | 5 | 6 | 7 | 8 | 9 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/2_intermediate/2_functions_2/recursion: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C/fundamentals/roadmap/2_intermediate/2_functions_2/recursion -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/2_intermediate/5_variables_2/source2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int globalInt; 4 | 5 | void printSource2() 6 | { 7 | printf("source2.c, globalInt=%d\n ", globalInt); 8 | } -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/module1_source.py: -------------------------------------------------------------------------------- 1 | # module1.py 2 | 3 | print('Running module1.py') 4 | 5 | 6 | def hello(): 7 | print('module1 says Hello!') -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/templates/create_user.html: -------------------------------------------------------------------------------- 1 | 2 | {% extends 'admin/model/create.html' %} 3 | {% import 'macros.html' as rule_demo %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/templates/edit_user.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/model/edit.html' %} 2 | {% import 'macros.html' as rule_demo %} 3 | 4 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Odoo/README.MD: -------------------------------------------------------------------------------- 1 | Odoo CookBook 2 | ======================= 3 | 4 | 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/assets/download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Standard Libraries/TKinter/recipes/assets/download.png -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/tutorial/2_widgets/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Standard Libraries/TKinter/tutorial/2_widgets/python.png -------------------------------------------------------------------------------- /Programming Languages/Python/Utils/import.py: -------------------------------------------------------------------------------- 1 | import os,sys,inspect 2 | currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) 3 | parentdir = os.path.dirname(currentdir) 4 | sys.path.insert(0,parentdir) -------------------------------------------------------------------------------- /Software Development/MobileDev/Android/Play-Console-Guides/README.MD: -------------------------------------------------------------------------------- 1 | Play-Console-Guides 2 | =================== 3 | 4 | 5 | - [How to use Play Console](https://support.google.com/googleplay/android-developer/answer/6112435#zippy=) -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/go_build_module/hello/go.mod: -------------------------------------------------------------------------------- 1 | module example/hello 2 | 3 | go 1.17 4 | 5 | replace example.com/greetings => ../greetings 6 | 7 | require example.com/greetings v0.0.0-00010101000000-000000000000 8 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/09 - command line args/02_example.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | numbers = sys.argv[1:] 4 | 5 | print(sum(numbers)) 6 | 7 | # and call it as follows: 8 | # python example2.py 1 2 3 4 5 6 -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/editor.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: black; 3 | font-family: Ubuntu, georgia, verdana, serif, sans-serif; 4 | font-size: 16px; 5 | } -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/rec1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/rec1.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/multiple-admin-instances/templates/first.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 | First admin view. 4 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/templates/admin/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | 3 | {% block body %} 4 |

Hello world

5 | {% endblock %} 6 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/editor.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: black; 3 | font-family: Ubuntu, georgia, verdana, serif, sans-serif; 4 | font-size: 16px; 5 | } -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Kivy/Front-end/README.MD: -------------------------------------------------------------------------------- 1 | Kivy |Fron-end 2 | ======================= 3 | 4 | 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Game Development/java/libGDX/recipes/TextureID.java: -------------------------------------------------------------------------------- 1 | enum TextureID { 2 | PLAYER("textures/player.png"), 3 | ENEMY("textures/enemy.png"); 4 | 5 | final String path; 6 | TextureID(String path) { this.path = path; } 7 | } 8 | -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/calculators/calculator_02/README.MD: -------------------------------------------------------------------------------- 1 | Calculator 02 2 | ============= 3 | 4 | 5 | Credit 6 | ------ 7 | 8 | 9 | * [christopher-siewert/cpp-calculator(https://github.com/christopher-siewert/cpp-calculator) -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/old/Data Structure/Buffers/README.MD: -------------------------------------------------------------------------------- 1 | Buffers 2 | ======================= 3 | 4 | 5 | 6 | 7 | 8 | 9 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/2_intermediate/4_io_streams/2_file_handling.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/C/fundamentals/roadmap/2_intermediate/4_io_streams/2_file_handling.txt -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Recipes/checkIfModuleIsInstalled.js: -------------------------------------------------------------------------------- 1 | try { 2 | console.log(require.resolve("moment-timezone")); 3 | } catch(e) { 4 | console.error("moment-timezone is not found"); 5 | // process.exit(e.code); 6 | } -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/list.4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/list.4.gif -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/recu3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/recu3.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/multiple-admin-instances/templates/second.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 | Second admin view. 4 | {% endblock %} 5 | -------------------------------------------------------------------------------- /Software Development/Front-End/XML/DTD/Sample/sample.dtd: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | ]> -------------------------------------------------------------------------------- /Programming Languages/Java/Core Principles & Structure/old/README.MD: -------------------------------------------------------------------------------- 1 | Java | Core Principles & Structure 2 | ======================= 3 | 4 | 5 | ### Basics 6 | 7 | 8 | ### OOP 9 | 10 | 11 | 12 | 13 | 14 | ### Best Practices 15 | 16 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/formula.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/formula.gif -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple/templates/myadmin.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 | This is TEST subitem from the AnotherAdminView! 4 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple/templates/test.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 | This is TEST subitem from the AnotherAdminView! 4 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/__pycache__/tk_imports.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Standard Libraries/TKinter/__pycache__/tk_imports.cpython-311.pyc -------------------------------------------------------------------------------- /IDE - TextEditors/Vim_Family/vimrc_examples/.vimrc_reverse_tab: -------------------------------------------------------------------------------- 1 | "https://stackoverflow.com/questions/4766230/map-shift-tab-in-vim-to-inverse-tab-in-vim" 2 | 3 | " For command/normal mode 4 | nnoremap << 5 | " For insert mode 6 | inoremap -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/rec_stack.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/rec_stack.webp -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/distance.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/distance.gif -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/formula2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/formula2.gif -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/03 - Using__main__/module1.py: -------------------------------------------------------------------------------- 1 | # Module 1 2 | 3 | print(f'Loading Moduel1:__name__ = {__name__}') 4 | 5 | 6 | if __name__ == '__main__': 7 | print('modile was run...') 8 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/test.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path as op 3 | 4 | 5 | 6 | 7 | file_path = op.join(op.dirname(__file__), 'files') 8 | 9 | print(file_path) -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/multithreading/assets/640x480.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Standard Libraries/TKinter/recipes/multithreading/assets/640x480.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/bisect/bisect_recipe.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bisect DOCS: https://docs.python.org/3/library/bisect.html 3 | 4 | SortedCollection (Python recipe): https://code.activestate.com/recipes/577197-sortedcollection/ 5 | """ -------------------------------------------------------------------------------- /Game Development/javascript/recipes/random_rgb.js: -------------------------------------------------------------------------------- 1 | function random(min, max) { 2 | return Math.floor(Math.random() * (max - min + 1)) + min; 3 | } 4 | 5 | function randomRGB() { 6 | return `rgb(${random(0, 255)},${random(0, 255)},${random(0, 255)})`; 7 | } -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/old/Data Structure/README.MD: -------------------------------------------------------------------------------- 1 | Data Structures 2 | ======================= 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/any_types.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // List represents a singly-linked list that holds 4 | // values of any type. 5 | type List[T any] struct { 6 | next *List[T] 7 | val T 8 | } 9 | 10 | func main() { 11 | } 12 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/Shop/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/Shop/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/01 Request/templates/macros/macro.html: -------------------------------------------------------------------------------- 1 | 2 | {% macro flash()%} 3 | 4 | {% for msg in get_flashed_messages()%} 5 |

{{msg}}

6 | {% endfor%} 7 | 8 | {% endmacro %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Kivy/Front-end/ActionBar/README.MD: -------------------------------------------------------------------------------- 1 | Kivy |Fron-end | ActionBar 2 | ======================= 3 | 4 | 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/examples/pods/pod_nginx.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx 5 | spec: 6 | containers: 7 | - name: nginx 8 | image: nginx:1.14.2 9 | ports: 10 | - containerPort: 80 -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/__init__.py: -------------------------------------------------------------------------------- 1 | # models 2 | 3 | from .posts import * 4 | from .users import * 5 | 6 | __all__ = (posts.__all__ + 7 | users.__all__) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/flask_admin_/babel.py: -------------------------------------------------------------------------------- 1 | try: 2 | from flask_babelex import Domain 3 | except ImportError: 4 | def gettest(string, **variables): 5 | return string % variables -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/SQLite/Select/limit.sql: -------------------------------------------------------------------------------- 1 | --sqlite 2 | 3 | SELECT 4 | id, 5 | name 6 | FROM 7 | tracks 8 | LIMIT 10 OFFSET 10; 9 | 10 | 11 | SELECT 12 | id, 13 | name 14 | FROM 15 | tracks 16 | LIMIT 10, 10; -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/calculators/calculator_01/README.MD: -------------------------------------------------------------------------------- 1 | Calculator 01 2 | ============= 3 | 4 | 5 | Credit 6 | ------ 7 | 8 | * [Create a console calculator in C++](https://docs.microsoft.com/en-us/cpp/get-started/tutorial-console-cpp?view=msvc-170) -------------------------------------------------------------------------------- /Programming Languages/PHP/php_eol.php: -------------------------------------------------------------------------------- 1 | Here I'm going to display some data.

4 | 5 | 6 | 7 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/01 Request/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/01 Request/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/04 Flaskr/app.py: -------------------------------------------------------------------------------- 1 | from flaskr import create_app 2 | 3 | 4 | if __name__ == '__main__': 5 | my_app = lambda x: x() 6 | my_app(create_app).run(debug=True) 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/database.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/database.db -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/09 Weather App/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/09 Weather App/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Kivy/Front-end/ActionButton/README.MD: -------------------------------------------------------------------------------- 1 | Kivy |Fron-end | AcctionButton 2 | ======================= 3 | 4 | 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Software Development/Front-End/CSS/remove_all_style_from_button.css: -------------------------------------------------------------------------------- 1 | button, input[type="submit"], input[type="reset"] { 2 | background: none; 3 | color: inherit; 4 | border: none; 5 | padding: 0; 6 | font: inherit; 7 | cursor: pointer; 8 | outline: inherit; 9 | } -------------------------------------------------------------------------------- /Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_simple_01_css/img/image1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_simple_01_css/img/image1.jpg -------------------------------------------------------------------------------- /Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_simple_01_css/img/image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_simple_01_css/img/image2.jpg -------------------------------------------------------------------------------- /Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_simple_01_css/img/image3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Software Development/Front-End/Ready-Design/Web Components/Parallax/parallax_simple_01_css/img/image3.jpg -------------------------------------------------------------------------------- /Programming Languages/C++/Core Principles & Structure/exceptions/README.MD: -------------------------------------------------------------------------------- 1 | C++ Exceptions 2 | ============== 3 | 4 | * [Modern C++ best practices for exceptions and error handling](https://docs.microsoft.com/en-us/cpp/cpp/errors-and-exception-handling-modern-cpp?view=msvc-170) -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/module2.py: -------------------------------------------------------------------------------- 1 | # module2.py 2 | 3 | print('Running module2.py') 4 | import module1 5 | 6 | def hello(): 7 | print('module2 says Hello!\nand...') 8 | module1.hello() 9 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/post.py: -------------------------------------------------------------------------------- 1 | # post.py 2 | 3 | __all__ = ['Post'] 4 | 5 | 6 | class Post: 7 | pass 8 | 9 | 10 | def post_helper_1(): 11 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/user.py: -------------------------------------------------------------------------------- 1 | # user.py 2 | 3 | __all__ = ['User'] 4 | 5 | 6 | class User: 7 | pass 8 | 9 | 10 | def user_helper_1(): 11 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/05_starmap.py: -------------------------------------------------------------------------------- 1 | from itertools import starmap 2 | 3 | 4 | def add(x, y): 5 | return x + y 6 | 7 | print(list(starmap(add, [(0,0), (1,1), (2,2)]))) 8 | # [0, 2, 4] 9 | 10 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/database.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/database.db -------------------------------------------------------------------------------- /Game Development/javascript/recipes/draws_and_shapes/square.js: -------------------------------------------------------------------------------- 1 | function square() { 2 | ctx.beginPath(); 3 | ctx.moveTo(75, 50); 4 | ctx.lineTo(100, 75); 5 | ctx.lineTo(125, 50); 6 | ctx.lineTo(100, 25); 7 | ctx.fill(); 8 | } 9 | 10 | square(); 11 | -------------------------------------------------------------------------------- /Programming Languages/C/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "type_traits": "c", 4 | "stdint.h": "c", 5 | "stdbool.h": "c", 6 | "stdio.h": "c", 7 | "string.h": "c", 8 | "stdlib.h": "c" 9 | } 10 | } -------------------------------------------------------------------------------- /Programming Languages/Java/small_apps/wave_app/src/com/waves/Arguments.java: -------------------------------------------------------------------------------- 1 | package com.waves; 2 | 3 | public enum Arguments { 4 | MAX_VALUE, 5 | MV, 6 | 7 | MIN_VALUE, 8 | MIV, 9 | 10 | REVOLUTIONS, 11 | R, 12 | 13 | FACE, 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/helpers/calculator.py: -------------------------------------------------------------------------------- 1 | # calculator.py 2 | 3 | __all__ = ['Calc'] 4 | 5 | 6 | class Calc: 7 | pass 8 | 9 | 10 | def calc_helper_1(): 11 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/posts.py: -------------------------------------------------------------------------------- 1 | # posts.py 2 | 3 | __all__ = ['Posts'] 4 | 5 | 6 | class Posts: 7 | pass 8 | 9 | 10 | def posts_helper_1(): 11 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/05 - zipped_package/common.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/05 - zipped_package/common.zip -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/02 Food-Tracker/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/02 Food-Tracker/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/04 Flaskr/instance/flaskr.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/04 Flaskr/instance/flaskr.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/database.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/database.db -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/regex/simple_routing_match.php: -------------------------------------------------------------------------------- 1 | MicroBlog Edit View 5 |

Put stuff here

6 | {{ super() }} 7 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/test.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | import flask_admin as admin 3 | 4 | 5 | app = Flask(__name__) 6 | 7 | my_admin = admin.Admin(app) 8 | 9 | print(my_admin._set_admin_index_view) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat_1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat_2.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat_3.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/mario.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/mario.png -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/database/database_operation.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM users WHERE email = ?"); 5 | $stmt->bind_param("s", $email); 6 | $stmt->execute(); 7 | $user = $stmt->get_result()->fetch_assoc(); 8 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/database/query_loop.php: -------------------------------------------------------------------------------- 1 | $data = []; 2 | if (count($ids)) { 3 | $result = $connection->query("SELECT `x`, `y` FROM `values` WHERE `id` IN (" . implode(',', $ids)); 4 | while ($row = $result->fetch_row()) { 5 | $data[] = $row; 6 | } 7 | } -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/00 To-Do WebApp/to_do_app/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/00 To-Do WebApp/to_do_app/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/03 Uploads/B Version/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/03 Uploads/B Version/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/coding_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/coding_1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_1.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_2.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_3.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_4.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_5.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/luigi_6.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/matrix_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/matrix_1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/space_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/space_1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/requirements.txt -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/MySQL/04_update_data.py: -------------------------------------------------------------------------------- 1 | update_post_description = """ 2 | UPDATE 3 | posts 4 | SET 5 | description = "The weather has become pleasant now" 6 | WHERE 7 | id = 2 8 | """ 9 | 10 | execute_query(connection, update_post_description) 11 | -------------------------------------------------------------------------------- /Mathematics/matrix_diagonal.py: -------------------------------------------------------------------------------- 1 | M = [[1, 2, 3], 2 | [4, 5, 6], 3 | [7, 8, 9] 4 | ] 5 | 6 | 7 | N = [[2, 2, 2], 8 | [3, 3, 3], 9 | [4, 4, 4] 10 | ] 11 | 12 | left_right = [M[i][i] for i in range(len(M))] 13 | 14 | right_left = [M[i][len(M)-1-i] for i in range(len(M))] -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/make_debugger_stop/seg_fault.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main() 5 | { 6 | cout << "Hello World" << endl; 7 | 8 | int *pHeight = nullptr; 9 | cout << *pHeight << endl; 10 | 11 | return 0; 12 | } -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Ready-Code-Blocks/README.MD: -------------------------------------------------------------------------------- 1 | Ready-Code-Blocks 2 | ================= 3 | 4 | 5 | Complex of JavaScripts, CSS, HTML and more blocks / folders of code ready to use. 6 | 7 | Ultimately in a way or another they should achieve or demostrate a specific thing. 8 | 9 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/Shop/templates/custom_create.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/model/create.html' %} 2 | 3 | {% block body %} 4 |
5 | cUSTOM CREATE 6 |
7 | {{ super() }} 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/Shop/templates/custom_list.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/model/list.html' %} 2 | 3 | {% block body %} 4 |
5 | LIST CUSTOM VIEW 6 |
7 | {{ super() }} 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/bootstrap4/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/bootstrap4/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/Vampire-Cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/Vampire-Cat.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/templates/error_pages/403.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 | 4 | 7 | 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/templates/error_pages/404.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 | 4 | 7 | 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/templates/error_pages/500.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 | 4 | 7 | 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/blouse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/blouse.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/2.jpg -------------------------------------------------------------------------------- /Software Development/Front-End/XML/DTD/Sample/sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tove 6 | Jani 7 | Reminder 8 | Don't forget me this weekend! 9 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/09_lazy_ctx.py: -------------------------------------------------------------------------------- 1 | def read_data(): 2 | with open('nyc_parking_tickets_extract.csv') as f: 3 | return list(csv.reader(f, delimiter=',', quotechar='"')) 4 | 5 | for row in read_data(): 6 | print(row) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/custom-layout/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/custom-layout/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/05 Question - Answer App/templates/error_pages/404.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | 4 | {% block body %} 5 | 6 | 9 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/img/anonymous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/img/anonymous.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/img/anonymous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/img/anonymous.png -------------------------------------------------------------------------------- /Programming Languages/Python/simple_generator.py: -------------------------------------------------------------------------------- 1 | def counter(value:int) -> int: 2 | while True: 3 | value += 1 4 | yield value 5 | 6 | c = counter(0) 7 | print(next(c)) 8 | print(next(c)) 9 | print(next(c)) 10 | print(next(c)) 11 | print(next(c)) 12 | print(next(c)) 13 | -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/SQLite/Python-APIs/04_update_data.py: -------------------------------------------------------------------------------- 1 | update_post_description = """ 2 | UPDATE 3 | posts 4 | SET 5 | description = "The weather has become pleasant now" 6 | WHERE 7 | id = 2 8 | """ 9 | 10 | execute_query(connection, update_post_description) 11 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/arrays/arrays.go: -------------------------------------------------------------------------------- 1 | 2 | // Make dinamic Array 3 | // Credit https://stackoverflow.com/a/8539724/1390394 4 | // @docs: https://go.dev/blog/slices-intro 5 | // @docs: https://go.dev/doc/effective_go#for 6 | var slice = make([]int, elems) // or slice := make([]int, elems) -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/goroutines/channels/buffered_channels.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | ch := make(chan int, 3) 7 | ch <- 1 8 | //ch <- 2 9 | //ch <- 10 10 | fmt.Println(<-ch) 11 | //fmt.Println(<-ch) 12 | //fmt.Println(<-ch) 13 | } 14 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/templates/custom_edit.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/model/edit.html' %} 2 | 3 | {% block body %} 4 |

MicroBlog Edit View

5 |

Put stuff here

6 | {{ super() }} 7 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/admin/database.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/admin/database.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/something_great.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/something_great.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/blouse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/blouse.jpg -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/PostgreSQL/Python-API/04_update_data.py: -------------------------------------------------------------------------------- 1 | update_post_description = """ 2 | UPDATE 3 | posts 4 | SET 5 | description = "The weather has become pleasant now" 6 | WHERE 7 | id = 2 8 | """ 9 | 10 | execute_query(connection, update_post_description) 11 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/slices/README.MD: -------------------------------------------------------------------------------- 1 | slices 2 | ======================= 3 | 4 | 5 | * [Go Slices: usage and internals](https://go.dev/blog/slices-intro) 6 | 7 | 8 | 9 | 10 | 11 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/method_view/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/method_view/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/templates/custom_create.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/model/create.html' %} 2 | 3 | {% block body %} 4 |
5 | cUSTOM CREATE 6 |
7 | {{ super() }} 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple_01/templates/custom_list.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/model/list.html' %} 2 | 3 | {% block body %} 4 |
5 | LIST CUSTOM VIEW 6 |
7 | {{ super() }} 8 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/admin/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/admin/static/favicon.ico -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/rabbit-1903016_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/rabbit-1903016_1920.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/something_great_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/something_great_1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/img/brick-wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/img/brick-wall.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-dress.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-dress.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-dress_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-dress_2.jpg -------------------------------------------------------------------------------- /Software Architecture/Design Principles/microservice_architecture.md: -------------------------------------------------------------------------------- 1 | Microservice Architecture 2 | ========================= 3 | 4 | 5 | * [SAGA Pattern](https://microservices.io/patterns/data/saga.html) 6 | * [Transactional Outbox](https://microservices.io/patterns/data/transactional-outbox.html) 7 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/auth-flask-login/database.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/auth-flask-login/database.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/templates/macros.html: -------------------------------------------------------------------------------- 1 | 2 | {% macro wrap() %} 3 |
4 | {{ caller() }} 5 |
6 | {% endmacro %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/ireland-1985088_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/ireland-1985088_1920.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/urllib/urlopen.py: -------------------------------------------------------------------------------- 1 | from urllib.request import urlopen 2 | import json 3 | 4 | 5 | url = "https://jsonplaceholder.typicode.com/todos" 6 | read_response = urlopen(url) 7 | print(read_response) 8 | with urlopen(url) as f: 9 | for i in f: 10 | print(i) -------------------------------------------------------------------------------- /Utils/pull_request_1.md: -------------------------------------------------------------------------------- 1 | Known problems 2 | ============== 3 | 4 | * 5 | * 6 | * 7 | 8 | 9 | Added 10 | ====== 11 | 12 | * 13 | 14 | Fixed 15 | ====== 16 | 17 | * 18 | 19 | * 20 | 21 | * 22 | 23 | Removed 24 | ======= 25 | 26 | * 27 | 28 | * 29 | 30 | * 31 | -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/hello_world/reverse_string/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(int argc, char **argv) 5 | { 6 | char str[11] = "Hello world"; 7 | printf("str = %s \n", str); 8 | printf("str reversed = %s", strrev(str)); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/nomain.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Compile and run program without main() 3 | * 4 | * NOTE: Use command gcc -nostartfiles nomain.c 5 | * /*/ 6 | 7 | 8 | _Noreturn void nomain(void) 9 | { 10 | printf("Hello World\n"); 11 | printf("Successfully run without main...\n"); 12 | exit(0); 13 | } -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/jma.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | com.sun.jna 5 | jna 6 | 3.0.9 7 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Recipes/Email/validate_email_addr.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/08example.py: -------------------------------------------------------------------------------- 1 | def tri_recursion(k): 2 | if(k>0): 3 | result = k+tri_recursion(k-1) 4 | print(result) 5 | else: 6 | result = 0 7 | return result 8 | 9 | print("\n\nRecursion Example Results") 10 | tri_recursion(6) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/auth-flask-login/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/auth-flask-login/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-summer-dress.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-summer-dress.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-dress.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-dress.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-dress_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-dress_2.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/inputs/1_password.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | from tkinter import ttk 3 | 4 | root = tk.Tk() 5 | 6 | password = tk.StringVar() 7 | password_entry = ttk.Entry(root, textvariable=password, show="*") 8 | password_entry.pack() 9 | 10 | root.mainloop() -------------------------------------------------------------------------------- /Game Development/javascript/recipes/check_browser_support.js: -------------------------------------------------------------------------------- 1 | const canvas = document.getElementById('screen'); 2 | 3 | if (canvas.getContext) { 4 | const ctx = canvas.getContext('2d'); 5 | // drawing code here 6 | } else { 7 | // canvas-unsupported code here 8 | alert("Unsupported browser :/"); 9 | } 10 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/03 - Using__main__/__pycache__/timing.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/03 - Using__main__/__pycache__/timing.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -3- Hash Maps/05- Specialized Dictionaries/json_dicts/jsons/prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "input_root": "$DATA_INPUT_PATH", 4 | "output_root": "$DATA_OUTPUT_PATH" 5 | }, 6 | "database": { 7 | "user": "$PG_USER", 8 | "pwd": "$PG_PWD" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/coding_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/coding_2.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/matrix_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/matrix_1.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/templates_2/macros.html: -------------------------------------------------------------------------------- 1 | {% macro wrap() %} 2 |
3 | {{ caller() }} 4 |
5 | {% endmacro %} 6 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/simple/templates/anotheradmin.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 | Hello World from AnotherMyAdmin!
4 | Click me to go to test view 5 | {% endblock %} 6 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/data.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/data.sqlite -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-summer-dress_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/printed-summer-dress_2.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Requests/simple.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | url = "https://assets.breatheco.de/apis/fake/sample/random-status.php" 4 | 5 | for _ in range(10): 6 | response = requests.get(url) 7 | print("The response status is: "+str(response.status_code)) 8 | print(response.json()) -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/PostgreSQL/Select/views.sql: -------------------------------------------------------------------------------- 1 | -- ========================= < CREATE VIEW > ========================= -- 2 | 3 | CREATE VIEW myview AS 4 | SELECT city, temp_lo, temp_hi, prcp, date, location 5 | FROM weather, cities 6 | WHERE city = name; 7 | 8 | SELECT * FROM myview; -------------------------------------------------------------------------------- /Game Development/javascript/recipes/draws_and_shapes/grid.js: -------------------------------------------------------------------------------- 1 | for (x = 0; x <= w; x += 20) { 2 | for (y = 0; y <= h; y += 20) { 3 | ctx.moveTo(x, 0); 4 | ctx.lineTo(x, h); 5 | ctx.stroke(); 6 | ctx.moveTo(0, y); 7 | ctx.lineTo(w, y); 8 | ctx.stroke(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Game Development/javascript/recipes/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Canvas 2d 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/__pycache__/importer.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/__pycache__/importer.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/__pycache__/module2.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/__pycache__/module2.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/03 - Using__main__/__pycache__/module1.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/03 - Using__main__/__pycache__/module1.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/fireworks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/fireworks.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/hedgehog-child-1759027_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/hedgehog-child-1759027_1920.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-dress_full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-dress_full.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-summer-dress.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-summer-dress.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/templates/macro/macro.html: -------------------------------------------------------------------------------- 1 | {% macro flash() %} 2 | 3 | {% for msg in get_flashed_messages() %} 4 | 7 | {% endfor %} 8 | {% endmacro %} -------------------------------------------------------------------------------- /Mathematics/series_expansion.py: -------------------------------------------------------------------------------- 1 | import math 2 | from decorators import debug 3 | # https://en.wikipedia.org/wiki/E_(mathematical_constant) 4 | # Apply a decorator to a standard library function 5 | math.factorial = debug(math.factorial) 6 | 7 | def approximate_e(terms=18): 8 | return sum(1 / math.factorial(n) for n in range(terms)) -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/cards/Cardgame.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class CardGame 4 | { 5 | int players; 6 | static int totalPartecipants; 7 | 8 | 9 | public: 10 | CardGame(int players); 11 | ~CardGame(); 12 | 13 | static int getParticipants() { return totalPartecipants; } 14 | 15 | 16 | }; -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/live_reloader-thymeleaft.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.springframework.boot 5 | spring-boot-devtools 6 | true 7 | runtime 8 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/date.py: -------------------------------------------------------------------------------- 1 | # date.py 2 | 3 | __all__ = ['is_date'] 4 | 5 | 6 | def is_date(arg): 7 | pass 8 | 9 | 10 | def date_helper_1(): 11 | pass 12 | 13 | 14 | def date_helper_2(): 15 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/json.py: -------------------------------------------------------------------------------- 1 | # json.py 2 | 3 | __all__ = ['is_json'] 4 | 5 | 6 | def is_json(arg): 7 | pass 8 | 9 | 10 | def json_helper_1(): 11 | pass 12 | 13 | 14 | def json_helper_2(): 15 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/multiple-admin-instances/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/multiple-admin-instances/requirements.txt -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/static/mario.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/static/mario.png -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat-pet-animal-domestic-104827.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/images/cat-pet-animal-domestic-104827.jpeg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/faded-short-sleeves-tshirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/images/faded-short-sleeves-tshirt.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-summer-dress_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/printed-summer-dress_2.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/Socket/realPythonTutorial/README.MD: -------------------------------------------------------------------------------- 1 | Real Python Tutorial 2 | ================== 3 | 4 | _This source code was originally taken from [RealPython.com](https://realpython.com/)_ 5 | 6 | ### Credit 7 | 8 | Tutorial: **[Python Socket: Socket Programming | Real Python](https://realpython.com/python-sockets/)** -------------------------------------------------------------------------------- /Programming Languages/Python/permutation.py: -------------------------------------------------------------------------------- 1 | def permute(seq): 2 | if not seq: 3 | yield seq 4 | else: 5 | for i in range(len(seq)): 6 | rest = seq[:i] + seq[i+1:] 7 | for x in permute(rest): 8 | yield seq[i:i+1] + x 9 | 10 | print(list(permute('abc'))) 11 | 12 | -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/junit5_dependency.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.junit.jupiter 4 | junit-jupiter 5 | 5.10.0 6 | test 7 | 8 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/11_lazy_iter_csv.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | origins = set() 4 | with open('cars.csv') as f: 5 | next(f), next(f) 6 | for row in f: 7 | origin = row.strip('\n').split(';')[-1] 8 | origins.add(origin) 9 | print(origins) 10 | 11 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/coding_2_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/coding_2_thumb.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/fireworks_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/fireworks_thumb.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/matrix_1_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/matrix_1_thumb.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/method_view/templates/test.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 | This view {{ name }} was accessed using {{ request.method }} request. 4 | 5 |
6 | Return 7 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/templates/macro/macro.html: -------------------------------------------------------------------------------- 1 | {% macro flash()%} 2 | 3 | {% for msg in get_flashed_messages()%} 4 | 7 | {% endfor%} 8 | 9 | {% endmacro %} -------------------------------------------------------------------------------- /Utils/readme_sample.txt: -------------------------------------------------------------------------------- 1 | 2 | ======================= 3 | 4 | 5 | - []() 6 | ----------------------------------------------------------------------------------------------------- 7 | 8 | --------- 9 | 10 | 11 | 12 | 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Game Development/javascript/recipes/styles_color/lineWidth.js: -------------------------------------------------------------------------------- 1 | function lineWidth() { 2 | for (let i = 0; i < 10; i++) { 3 | ctx.lineWidth = 1 + i; 4 | ctx.beginPath(); 5 | ctx.moveTo(5 + i * 14, 5); 6 | ctx.lineTo(5 + i * 14, 140); 7 | ctx.stroke(); 8 | } 9 | } 10 | 11 | lineWidth(); 12 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/goroutines/sample.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "time" 6 | ) 7 | 8 | func say(s string) { 9 | for i := 0; i < 5; i++ { 10 | time.Sleep(100 * time.Millisecond) 11 | fmt.Println(s) 12 | } 13 | } 14 | 15 | func main() { 16 | go say("world") 17 | say("hello") 18 | } 19 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/faded-short-sleeves-tshirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/imgs/faded-short-sleeves-tshirt.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Software Development/MobileDev/ReactNative/utils/README.MD: -------------------------------------------------------------------------------- 1 | React Native Utils 2 | ================== 3 | 4 | * Start react : 5 | 6 | `` 7 | npx react-native start 8 | 9 | npx react-native run-android 10 | `` 11 | 12 | 13 | Open Android Dev menu (on the node terminal): 14 | 15 | `` 16 | $ adb shell input keyevent 82 17 | 18 | `` -------------------------------------------------------------------------------- /Algorithms/Depth-first/depth_first_list.py: -------------------------------------------------------------------------------- 1 | def sumtree(l): 2 | tot = 0 3 | item = list(l) 4 | while items: 5 | front = items.pop(0) 6 | if not isinstance(frot, list): 7 | tot += front 8 | else: 9 | item[:0] = front 10 | return tot 11 | 12 | # forming a last-in-first-out stack -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/liveness_readiness/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.8 2 | 3 | RUN mkdir /var/flaskapp 4 | WORKDIR /var/flaskapp 5 | 6 | COPY . . 7 | 8 | RUN apk update 9 | RUN apk add python3 10 | 11 | RUN pip3 install -r requirement.txt 12 | 13 | EXPOSE 5000 14 | 15 | CMD ["python3", "app.py"] 16 | 17 | -------------------------------------------------------------------------------- /Game Development/javascript/recipes/controls/mouse_element_position.js: -------------------------------------------------------------------------------- 1 | function mouseMoveHandler(e) { 2 | const relativeX = e.clientX - canvas.offsetLeft; 3 | if (relativeX > 0 && relativeX < canvas.width) { 4 | paddleX = relativeX - paddleWidth / 2; 5 | } 6 | } 7 | document.addEventListener("mousemove", mouseMoveHandler, false); -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/interfaces/interface_empty.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | var i interface{} 7 | describe(i) 8 | 9 | i = 42 10 | describe(i) 11 | 12 | i = "hello" 13 | describe(i) 14 | } 15 | 16 | func describe(i interface{}) { 17 | fmt.Printf("(%v, %T)\n", i, i) 18 | } 19 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/02 - module_simple2/main.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import importer 3 | 4 | # Using Own importer 5 | module1 = importer.import_('module1', 'module1_source.py', '.') 6 | print('sys says', sys.modules.get('module1', 'module 1 not found')) 7 | 8 | import module2 9 | module2.hello() -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/boolean.py: -------------------------------------------------------------------------------- 1 | # boolean.py 2 | 3 | __all__ = ['is_boolean'] 4 | 5 | 6 | def is_boolean(arg): 7 | pass 8 | 9 | 10 | def boolean_helper_1(): 11 | pass 12 | 13 | 14 | def boolean_helper_2(): 15 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/Shop/templates/standalone_.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/master.html' %} 2 | {% block body %} 3 |

Here I'm going to display some data.

4 | 5 |

z

6 | 7 | {% for item in check_list %} 8 |

{{item}}

9 | {% endfor %} 10 | {% endblock %} -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/bs/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.eot -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.ttf -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/bs/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.eot -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.ttf -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff -------------------------------------------------------------------------------- /Software Development/Front-End/CSS/loadingSpinnerCSS/loadinSpinnerCSS.html: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 |
9 |
-------------------------------------------------------------------------------- /Algorithms/Breadth-first/breadth_first_list.py: -------------------------------------------------------------------------------- 1 | def sumtree(l): 2 | tot = 0 3 | item = list(l) 4 | while items: 5 | front = items.pop(0) 6 | if not isinstance(frot, list): 7 | tot += front 8 | else: 9 | items.extends(front) 10 | return tot 11 | 12 | # forming a first-in-first-out queue -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/05 Question - Answer App/app_func.py: -------------------------------------------------------------------------------- 1 | from os import urandom 2 | 3 | 4 | # Log Out 5 | def log_out(session): 6 | session.pop('user', None) 7 | 8 | 9 | disabled_token = b'\xf1\xa5\xc5\x1c\x1f\xa3\xe2nR\xe0' 10 | disabled_token = str(disabled_token) 11 | 12 | 13 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/06 Social WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff2 -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/08 Forum WebSite/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff2 -------------------------------------------------------------------------------- /Software Development/Front-End/Ready-Design/SVG/README.MD: -------------------------------------------------------------------------------- 1 | SVG- Line Animations 2 | ======================= 3 | 4 | - [21 Impressive SVG Line Animation Examples](https://bashooka.com/coding/impressive-svg-line-animation-examples/) 5 | 6 | 7 | 8 | 9 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Game Development/javascript/recipes/start_up_scripts/main.css: -------------------------------------------------------------------------------- 1 | * { /* to remove the top and left whitespace */ 2 | margin: 0; 3 | padding: 0; 4 | } 5 | 6 | html, body { /* just to be sure these are full screen*/ 7 | width: 100%; 8 | height: 100%; 9 | } 10 | 11 | #screen { 12 | display: block; /* To remove the scrollbars */ 13 | } -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Frameworks-Libraries/Vue/assets_default/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/07 - Tuples as Data Records/07_NT_docstring.py: -------------------------------------------------------------------------------- 1 | from collections import namedtuple 2 | 3 | Point2D = namedtuple('Point2D', 'x y') 4 | Point2D.__doc__ = 'Represents a 2D Cartesian coordinate' 5 | Point2D.x.__doc__ = 'x-coordinate' 6 | Point2D.y.__doc__ = 'y-coordinate' 7 | 8 | print(help(help(Point2D))) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/bs/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.eot -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.ttf -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/SQLAlchemy/query.py: -------------------------------------------------------------------------------- 1 | author_book_totals = ( 2 | session.query( 3 | Author.first_name, 4 | Author.last_name, 5 | func.count(Book.title).label("book_total") 6 | ) 7 | .join(Book) 8 | .group_by(Author.last_name) 9 | .order_by(desc("book_total")) 10 | .all() 11 | ) 12 | -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/liveness_readiness/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: flask-service 5 | 6 | spec: 7 | type: NodePort 8 | ports: 9 | - port: 5000 10 | nodePort: 30000 11 | targetPort: 5000 12 | name: http 13 | 14 | selector: 15 | app: flask-deploy -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Tutorial/Basics - Syntax/01function.js: -------------------------------------------------------------------------------- 1 | // Function declaration; 2 | // Can call function before assignement. 3 | test(); 4 | 5 | function test(){ 6 | console.log('Func test'); 7 | } 8 | test(); 9 | 10 | const test2 = function(num){ 11 | console.log('function expression ' + num); 12 | } 13 | 14 | test2(100); 15 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/hedgehog-child-1759027_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/hedgehog-child-1759027_1920.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask_website_examples/07 WebStore -Clothing/static/css/fonts/Ubuntu-regular/Ubuntu-regular.woff2 -------------------------------------------------------------------------------- /Utils/readme_pictures.md: -------------------------------------------------------------------------------- 1 | left face 2 | 3 | **The gif is added with the following code:** 4 | 5 | ``` 6 | 7 | left face 8 | 9 | 10 | 11 | ``` -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/liveness_readiness/original/service.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: service-nodeport 6 | 7 | spec: 8 | type: NodePort 9 | ports: 10 | - port: 5000 11 | nodePort: 30000 12 | targetPort: 5000 13 | name: http 14 | selector: 15 | app: healthcheck -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/01_rec_calc_n.py: -------------------------------------------------------------------------------- 1 | def factorial_recursive(n): 2 | # Base case: 1! = 1 3 | if n == 1: 4 | return 1 5 | 6 | # Recursie case: n! = n * (n-1)! 7 | else: 8 | return n * factorial_recursive(n - 1) 9 | 10 | print(factorial_recursive(5)) 11 | 12 | # >>> 120 -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/json/JSONEncoder_custom.py: -------------------------------------------------------------------------------- 1 | import json 2 | 3 | class ComplexEncoder(json.JSONEncoder): 4 | def default(self, z): 5 | if isinstance(z, complex): 6 | return (z.real, z.imag) 7 | else: 8 | return super().default(z) 9 | 10 | print(json.dumps(2 + 5j, cls=ComplexEncoder)) -------------------------------------------------------------------------------- /Programming Languages/Python/dict_comprehension_efficient.py: -------------------------------------------------------------------------------- 1 | from itertools import groupby 2 | from operator import itemgetter 3 | 4 | lst = [1, 1, 3, 5, 1, 4, 4] 5 | 6 | res = { k : [i for i, _ in group] for k, group in groupby(sorted(enumerate(lst), key=itemgetter(1)), key=itemgetter(1))} 7 | print(res) 8 | # {1: [0, 1, 4], 3: [2], 4: [5, 6], 5: [3]} 9 | # O(NlogN) -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/1_basic/6_functions/readme.md: -------------------------------------------------------------------------------- 1 | C Roadmap - Functions 1 2 | ====================== 3 | 4 | 5 | - Functions 1 6 | - functions 7 | - parameters and how they work with C 8 | - function invocation 9 | - exit 10 | 11 | 12 | 13 | - [C - Functions](https://www.tutorialspoint.com/cprogramming/c_functions.htm) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/hedgehog-child-1759027_1920_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/forms-files-images/files/hedgehog-child-1759027_1920_thumb.jpg -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/tutorial/1_hello_world/5_hello_world.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | 3 | 4 | class App(tk.Frame): 5 | def __init__(self, master = None): 6 | super().__init__(master) 7 | self.pack() 8 | 9 | 10 | app = App() 11 | app.master.title("Hello World App") 12 | app.master.maxsize(1000, 400) 13 | app.mainloop() 14 | -------------------------------------------------------------------------------- /Software Development/MobileDev/ReactNative/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Debug Windows", 6 | "cwd": "${workspaceFolder}", 7 | "type": "reactnative", 8 | "request": "launch", 9 | "platform": "windows" 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /Game Development/python/pygame/recipes/draw_chess_board.py: -------------------------------------------------------------------------------- 1 | block_size = 16 2 | recs = [] 3 | for x in range(0, self.WIN_WIDTH, block_size): 4 | for y in range(0, self.WIN_HEIGHT, block_size): 5 | rect = pygame.Rect(x, y, block_size, block_size) 6 | pygame.draw.rect(self.window, (255, 255, 255), rect, 1) 7 | recs.append(rect) 8 | pg.display.update(recs) -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/09 - command line args/03_example.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | numbers = [int(a) for a in sys.argv[1:]] 4 | 5 | print(sum(numbers)) 6 | 7 | # and call it as follows: 8 | # python example3.py 1 2 3 4 5 6 9 | 10 | 11 | import sys 12 | 13 | for i in range(1, len(sys.argv), 2): 14 | print(sys.argv[i], sys.argv[i+1]) -------------------------------------------------------------------------------- /Game Development/javascript/recipes/styles_color/dots_multi_color.js: -------------------------------------------------------------------------------- 1 | for (let i = 0; i < 6; i++) { 2 | for (let j = 0; j < 6; j++) { 3 | ctx.strokeStyle = `rgb(0, ${Math.floor(255 - 42.5 * i)}, ${Math.floor(255 - 42.5 * j)})`; 4 | ctx.beginPath(); 5 | ctx.arc(12.5 + j * 25, 12.5 + i * 25, 10, 0, 2 * Math.PI, true); 6 | ctx.stroke(); 7 | } 8 | } -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/maps/README.MD: -------------------------------------------------------------------------------- 1 | maps 2 | ======================= 3 | 4 | Go maps in action 5 | - [Go maps in action](https://go.dev/blog/maps) 6 | - [Maps are not safe for concurrent use](https://go.dev/doc/faq#atomic_maps) 7 | 8 | 9 | 10 | 11 | 12 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/methods/method_on_any_type.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "math" 6 | ) 7 | 8 | type MyFloat float64 9 | 10 | func (f MyFloat) Abs() float64 { 11 | if f < 0 { 12 | return float64(-f) 13 | } 14 | return float64(f) 15 | } 16 | 17 | func main() { 18 | f := MyFloat(-math.Sqrt2) 19 | fmt.Println(f.Abs()) 20 | } 21 | -------------------------------------------------------------------------------- /Programming Languages/GO/recipes/print_all_env_vars.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "strings" 7 | ) 8 | 9 | func main() { 10 | for _, env := range os.Environ() { 11 | // env is 12 | envPair := strings.SplitN(env, "=", 2) 13 | key := envPair[0] 14 | value := envPair[1] 15 | 16 | fmt.Printf("%s : %s\n", key, value) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/date.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/date.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/json.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/json.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/Project 2/poly-iter-lazy/__pycache__/poly_lazy_iter.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/Project 2/poly-iter-lazy/__pycache__/poly_lazy_iter.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/interfaces/assertions.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | var i interface{} = "hello" 7 | 8 | s := i.(string) 9 | fmt.Println(s) 10 | 11 | s, ok := i.(string) 12 | fmt.Println(s, ok) 13 | 14 | f, ok := i.(float64) 15 | fmt.Println(f, ok) 16 | 17 | f = i.(float64) // panic 18 | fmt.Println(f) 19 | } 20 | -------------------------------------------------------------------------------- /Programming Languages/PHP/Core Principles & Structure/echo.php: -------------------------------------------------------------------------------- 1 | // nl2br https://www.php.net/manual/en/function.nl2br.php 2 | // nl2br — Inserts HTML line breaks before all newlines in a string 3 | 4 | echo "If you view the page source \r\n you will find a newline in this string."; 5 | echo "
"; 6 | echo nl2br("You will find the \n newlines in this string \r\n on the browser window."); -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/helpers/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/helpers/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/helpers/__pycache__/calculator.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/helpers/__pycache__/calculator.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/__pycache__/post.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/__pycache__/post.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/__pycache__/posts.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/__pycache__/posts.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/__pycache__/user.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/__pycache__/user.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/boolean.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/boolean.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/numeric.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/numeric.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/04 - Iteration Tools/Selecting -Filtering/03_dropwhile.py: -------------------------------------------------------------------------------- 1 | from itertools import dropwhile 2 | from math import sin, pi 3 | 4 | # The dropwhile function on the other hand starts the iteration once the predicate becomes False: 5 | 6 | l = [1, 3, 5, 2, 1] 7 | 8 | print(list(dropwhile(lambda x: x < 5, l))) 9 | # [5, 2, 1] -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/SQLAlchemy/README.MD: -------------------------------------------------------------------------------- 1 | SQLAlchemy 2 | ======================= 3 | 4 | 5 | - []() 6 | ----------------------------------------------------------------------------------------------------- 7 | 8 | --------- 9 | 10 | 11 | 12 | 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Frameworks-Libraries/Vue/icons/IconSupport.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/helpers/__init__.py: -------------------------------------------------------------------------------- 1 | # helpers 2 | 3 | from .calculator import Calc 4 | 5 | 6 | 7 | def say_hello(name): 8 | return f'Hello {name}' 9 | 10 | 11 | def factorial(n): 12 | if n <= 1: 13 | return 1 14 | else: 15 | return n * factorial(n - 1) -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -3- Hash Maps/README.MD: -------------------------------------------------------------------------------- 1 | # Hash Maps 2 | ======================= 3 | 4 | 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/static/7b1468ff-019a-44d1-b4bb-729e5a252899.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/static/7b1468ff-019a-44d1-b4bb-729e5a252899.jpg -------------------------------------------------------------------------------- /Software Development/Front-End/XML/xslt/cdcatalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Empire Burlesque 6 | Bob Dylan 7 | USA 8 | Columbia 9 | 10.90 10 | 1985 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Game Development/javascript/recipes/draws_and_shapes/path_2d/path_2d_simple.js: -------------------------------------------------------------------------------- 1 | const rectangle = new Path2D(); 2 | rectangle.rect(10, 10, 50, 50); 3 | 4 | const circle = new Path2D(); 5 | circle.arc(100, 35, 25, 0, 2 * Math.PI); 6 | 7 | ctx.stroke(rectangle); 8 | ctx.fill(circle); 9 | 10 | 11 | // Using SVG 12 | const p = new Path2D('M10 10 h 80 v 80 h -80 Z'); 13 | 14 | ctx.stroke(p) -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/misc/function_name.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | void func(int i) { 6 | printf("%s\n", __FUNCTION__); 7 | } 8 | 9 | int main() 10 | { 11 | __int8 vari8 = 100; 12 | func(vari8); // no void func(__int8 i8) function 13 | // __int8 will be promoted to int 14 | 15 | return 0; 16 | 17 | } -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/posts/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Koubae/Programming-CookBook/HEAD/Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/README.MD: -------------------------------------------------------------------------------- 1 | # Python - Tutorial - 2 | ======================= 3 | 4 | - [DOCS]() 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | 15 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Game Development/javascript/recipes/start_up_scripts/start_up_repo_01/public/static/js/src/paintings.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | function circle(ctx, coordX, coordY, radius, color) { 3 | ctx.beginPath(); 4 | ctx.arc(coordX, coordY, radius, 0, Math.PI * 2, true); // circle 5 | ctx.closePath(); 6 | ctx.fillStyle = color; 7 | ctx.fill(); 8 | } 9 | 10 | export { 11 | circle, 12 | } -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/methods/methods.go: -------------------------------------------------------------------------------- 1 | // @credit https://go.dev/tour/methods/1 2 | package main 3 | 4 | import ( 5 | "fmt" 6 | "math" 7 | ) 8 | 9 | type Vertex struct { 10 | X, Y float64 11 | } 12 | 13 | func (v Vertex) Abs() float64 { 14 | return math.Sqrt(v.X*v.X + v.Y*v.Y) 15 | } 16 | 17 | func main() { 18 | v := Vertex{3, 4} 19 | fmt.Println(v.Abs()) 20 | } 21 | -------------------------------------------------------------------------------- /Programming Languages/GO/recipes/gb_const_iota.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | const ( 8 | _ = iota // ignore first value by assigning to blank identifier 9 | KB = 1 << (10 * iota) 10 | MB 11 | GB 12 | TB 13 | PB 14 | EB 15 | ZB 16 | YB 17 | ) 18 | 19 | func main() { 20 | fileSize := 400000000. 21 | fmt.Printf("%2.2fGB\n", fileSize/GB) 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Programming Languages/Java/small_apps/README.MD: -------------------------------------------------------------------------------- 1 | Small Apps 2 | ========== 3 | 4 | Collection of minimalist Java Applications, good for learning or Proof-Of-Concept, prototyping, Code Recipes and so on. 5 | 6 | #### See Also 7 | 8 | 9 | * [Koubae/java-spring-examples](https://github.com/Koubae/java-spring-examples) 10 | * [Koubae/JavaFX---Snake](https://github.com/Koubae/JavaFX---Snake) 11 | -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/Turtle/README.MD: -------------------------------------------------------------------------------- 1 | # TURTLE Module 2 | ======================= 3 | 4 | - [DOCS]() 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/hello_world/compile.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Simple C Compile short cut and run script 4 | 5 | 6 | DIR=$1; 7 | COMPILE_ONLY=$2; 8 | 9 | cd "$DIR"; 10 | gcc main.c -o main 11 | 12 | if [[ "$COMPILE_ONLY" == "true" ]] 13 | 14 | then 15 | echo "Compiled main in $(pwd). Run with $(pwd)/main" && exit; 16 | else 17 | ./main "${@:2}" 18 | fi -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Tutorial/Basics - Syntax/07_lastItemArray.js: -------------------------------------------------------------------------------- 1 | var arr = [1,2, 3] 2 | console.log(arr[arr.length-1]); 3 | var last = arr.slice(-1)[0]; 4 | console.log(last); 5 | 6 | const lotteryNumbers = [12, 16, 4, 33, 41, 22]; 7 | const [lastNumber] = lotteryNumbers.slice(-1); 8 | 9 | console.log(lotteryNumbers.slice(-1)); 10 | // => [22] 11 | console.log(lastNumber); 12 | // => 22 -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -4- OOP/01 - Classes/README.MD: -------------------------------------------------------------------------------- 1 | # 1 - Classes 2 | ======================= 3 | 4 | - [DOCS]() 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Software Development/Front-End/XML/XML-Schema/reference_to_schema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | Tove 9 | Jani 10 | Reminder 11 | Don't forget me this weekend! 12 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Recipes/express/esj_SwitchStatement.ejs: -------------------------------------------------------------------------------- 1 | // Credit ---> https://stackoverflow.com/a/45099803/13903942 2 | 3 | <% switch (role) { 4 | case 'Admin' : %> 5 | Super Admin 6 | <% break; 7 | 8 | case 'eventAdmin' : %> 9 | Event Admin 10 | <% break; 11 | 12 | case 'subAdmin' : %> 13 | Sub Admin 14 | <% break; 15 | 16 | } %> -------------------------------------------------------------------------------- /Programming Languages/PHP/Wordpress/commands.bash: -------------------------------------------------------------------------------- 1 | # sql commands 2 | #-- create a user 3 | CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'wordpress'; 4 | #-- list users 5 | SELECT user FROM mysql.user; 6 | #-- create database 7 | CREATE DATABASE wp_first_app; 8 | #-- Grant access to user 9 | GRANT ALL ON wp_first_app.* TO 'wordpress'@'localhost'; 10 | #-- reload privileges 11 | FLUSH PRIVILEGES; 12 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/validators/numeric.py: -------------------------------------------------------------------------------- 1 | # numeric.py 2 | 3 | __all__ = ['is_integer', 'is_numeric'] 4 | 5 | 6 | def is_integer(arg): 7 | pass 8 | 9 | 10 | def is_numeric(arg): 11 | pass 12 | 13 | 14 | def numeric_helper_1(): 15 | pass 16 | 17 | 18 | def numeric_helper_2(): 19 | pass -------------------------------------------------------------------------------- /Programming Languages/Python/Socket/chat/simple_tcp_chat_01/README.MD: -------------------------------------------------------------------------------- 1 | Simple TCP Chat 01 2 | ================== 3 | 4 | 5 | ### Credit 6 | 7 | Code implemented and explained by **[NeuralNine](https://www.youtube.com/@NeuralNine)**: 8 | 9 | * **Tutorial:* https://www.youtube.com/watch?v=3UOyky9sEQY&list=PL7yh-TELLS1FwBSNR_tH7qVbNpYHL4IQs 10 | * **Blog:* https://www.neuralnine.com/tcp-chat-in-python/ -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/README.MD: -------------------------------------------------------------------------------- 1 | # Python The Standard Library 2 | ======================= 3 | 4 | 5 | - []() 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | 15 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Game Development/javascript/recipes/start_up_scripts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Canvas 2d 8 | 9 | 10 | Opps, broken canvas :/ 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Game Development/javascript/recipes/start_up_scripts/start_up_repo_01/public/static/css/main.css: -------------------------------------------------------------------------------- 1 | * { /* to remove the top and left whitespace */ 2 | margin: 0; 3 | padding: 0; 4 | } 5 | 6 | html, body { /* just to be sure these are full screen*/ 7 | width: 100%; 8 | height: 100%; 9 | 10 | } 11 | 12 | #screen { 13 | display: block; /* To remove the scrollbars */ 14 | } 15 | 16 | 17 | -------------------------------------------------------------------------------- /Game Development/javascript/recipes/styles_color/multi_color.js: -------------------------------------------------------------------------------- 1 | function multi_color() { 2 | const ctx = canvas.getContext('2d'); 3 | for (let i = 0; i < 6; i++) { 4 | for (let j = 0; j < 6; j++) { 5 | ctx.fillStyle = `rgb(${Math.floor(255 - 42.5 * i)}, ${Math.floor(255 - 42.5 * j)}, 0)`; 6 | ctx.fillRect(j * 25, i * 25, 25, 25); 7 | } 8 | } 9 | 10 | 11 | } -------------------------------------------------------------------------------- /Programming Languages/GO/recipes/to_string.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | type Person struct { 6 | Name string 7 | Age int 8 | } 9 | 10 | func (p Person) String() string { 11 | return fmt.Sprintf("name=%s, age=%d", p.Name, p.Age) 12 | } 13 | 14 | func main() { 15 | john := Person{"John", 42} 16 | mark := Person{"Mark", 24} 17 | 18 | fmt.Println(john) 19 | fmt.Println(mark) 20 | } 21 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -4- OOP/README.MD: -------------------------------------------------------------------------------- 1 | # Object Oriented Programming 2 | ======================= 3 | 4 | - [DOCS]() 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | 15 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/admin/config.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | 4 | SECRET_KEY = os.urandom(16) 5 | 6 | FLASK_ADMIN_SWATCH = 'cerulean' 7 | 8 | # Create in-memory database 9 | DATABASE_FILE = 'database.sqlite' 10 | SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DATABASE_FILE 11 | SQLALCHEMY_ECHO = True 12 | SQLALCHEMY_TRACK_MODIFICATIONS = False -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/tutorial/1_hello_world/2_hello_world.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | 3 | 4 | root = tk.Tk() 5 | 6 | message = tk.Label(root, text="Hello world!") 7 | message.pack() 8 | 9 | try: 10 | # windows text blur 11 | from ctypes import windll 12 | windll.shcore.SetProcessDpiAwareness(1) 13 | except ImportError: 14 | pass 15 | finally: 16 | root.mainloop() 17 | -------------------------------------------------------------------------------- /Software Development/Front-End/AJAX/simple_httprequest.js: -------------------------------------------------------------------------------- 1 | function loadDoc() { 2 | var xhttp = new XMLHttpRequest(); 3 | xhttp.onreadystatechange = function() { 4 | if (this.readyState == 4 && this.status == 200) { 5 | document.getElementById("demo").innerHTML = this.responseText; 6 | } 7 | }; 8 | xhttp.open("GET", "ajax_info.txt", true); 9 | xhttp.send(); 10 | } -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla-custom-inline-forms/README.MD: -------------------------------------------------------------------------------- 1 | # Flask-Admin - SQLA - Custom-inline-Forms 2 | ============================= 3 | 4 | 5 | #### Taken from [Flask-Admin Docs](#https://github.com/flask-admin/flask-admin/tree/master/examples/sqla-custom-inline-forms) 6 | 7 | This example shows how to use inline forms when working with related models. -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Serpy/README.MD: -------------------------------------------------------------------------------- 1 | # Serpy CookBook 2 | ======================= 3 | 4 | 5 | ## Features 6 | 7 | Some Serpy Recipes. 8 | 9 | In [Serpy-Mini](./Serpy-Mini) There is a shorten Reconstruction of the Serpy Package in a unique module, only supports Python 3.8+ 10 | 11 | 12 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Java/small_apps/rawConsoleInput/readme.md: -------------------------------------------------------------------------------- 1 | - Credit: https://www.source-code.biz/snippets/java/RawConsoleInput/ 2 | - https://www.source-code.biz 3 | 4 | 5 | Uses JNA: 6 | 7 | * [Java Native Access (JNA)](https://github.com/java-native-access/jna) 8 | * http://java-native-access.github.io/jna/5.13.0/javadoc/ 9 | * https://java-native-access.github.io/jna/4.2.1/com/sun/jna/package-summary.html 10 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Frameworks-Libraries/Vue/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node */ 2 | require('@rushstack/eslint-patch/modern-module-resolution') 3 | 4 | module.exports = { 5 | root: true, 6 | 'extends': [ 7 | 'plugin:vue/vue3-essential', 8 | 'eslint:recommended', 9 | '@vue/eslint-config-prettier/skip-formatting' 10 | ], 11 | parserOptions: { 12 | ecmaVersion: 'latest' 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Defaults/Jinja2/README.MD: -------------------------------------------------------------------------------- 1 | # Jinja2 2 | ======================= 3 | 4 | 5 | - []() 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | 15 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/README.MD: -------------------------------------------------------------------------------- 1 | # flask-Admin 2 | ======================= 3 | 4 | 5 | - []() 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | 15 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /IDE - TextEditors/VsCode/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.pythonPath": "C:\\Users\\fredb\\AppData\\Local\\Programs\\Python\\Python38\\python.exe", 3 | /*"python.pythonPath": "env\\Scripts\\python.exe",*/ 4 | "python.linting.pylintArgs": ["--load-plugins", "pylint-flask", 5 | "--init-hook", "pylint_flask_sqlalchemy"], 6 | "editor.occurrencesHighlight": true, 7 | "editor.selectionHighlight": true 8 | 9 | } -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/i/o/readers.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "strings" 7 | ) 8 | 9 | func main() { 10 | r := strings.NewReader("Hello, Reader!") 11 | 12 | b := make([]byte, 8) 13 | for { 14 | n, err := r.Read(b) 15 | fmt.Printf("n = %v err = %v b = %v\n", n, err, b) 16 | fmt.Printf("b[:n] = %q\n", b[:n]) 17 | if err == io.EOF { 18 | break 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Recipes/Web/simple_HTTP_Server.js: -------------------------------------------------------------------------------- 1 | const http = require('http') 2 | 3 | const port = process.env.PORT || 3000 4 | 5 | const server = http.createServer((req, res) => { 6 | res.statusCode = 200 7 | res.setHeader('Content-Type', 'text/html') 8 | res.end('

Hello, World!

') 9 | }) 10 | 11 | server.listen(port, () => { 12 | console.log(`Server running at port ${port}`) 13 | }) 14 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Defaults/README.MD: -------------------------------------------------------------------------------- 1 | # Flask Main Components 2 | ======================= 3 | 4 | 5 | - []() 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | 15 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/Socket/commands.bash: -------------------------------------------------------------------------------- 1 | # List of command related to Socket programming and TCP 2 | 3 | 4 | # Find (and kill) process locking port 3000 on Mac [closed] https://stackoverflow.com/q/3855127/13903942 5 | lsof -i tcp:[PORT] 6 | #or also 7 | netstat -vanp tcp | grep 3000 8 | 9 | 10 | # state 11 | netstat -an | grep [PORT] 12 | lsof -i -n | grep [PORT] 13 | 14 | 15 | # ping 16 | ping -c 3 127.0.0.1 17 | -------------------------------------------------------------------------------- /Software Development/Front-End/XML/XML-Schema/sample_01.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/goroutines/channels/range_close_channels.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func fibonacci(n int, c chan int) { 8 | x, y := 0, 1 9 | for i := 0; i < n; i++ { 10 | c <- x 11 | x, y = y, x+y 12 | } 13 | close(c) 14 | } 15 | 16 | func main() { 17 | c := make(chan int, 10) 18 | go fibonacci(cap(c), c) 19 | for i := range c { 20 | fmt.Println(i) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Programming Languages/Java/Recipes/maven/rest-assured.xml: -------------------------------------------------------------------------------- 1 | 2 | io.rest-assured 3 | rest-assured 4 | 5.3.0 5 | test 6 | 7 | 8 | commons-codec 9 | commons-codec 10 | 11 | 12 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Ready-Code-Blocks/Web-Page-Mirror/js/app.js: -------------------------------------------------------------------------------- 1 | function showPreview(){ 2 | var htmlCode = document.getElementById("htmlCode").value; 3 | var cssCode = ""; 4 | var jsCode = ""+document.getElementById("jsCode").value+""; 5 | var frame = document.getElementById("preview-window").contentWindow.document; 6 | frame.open(); 7 | frame.write(htmlCode+cssCode+jsCode); 8 | frame.close(); 9 | } -------------------------------------------------------------------------------- /Game Development/javascript/recipes/start_up_scripts/start_up_repo_01/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Fake-Ario 9 | 10 | 11 | Opps, broken canvas :/ 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Game Development/javascript/threejs/recipes/resizeRenderer.js: -------------------------------------------------------------------------------- 1 | function resizeRendererToDisplaySize(renderer) { 2 | const canvas = renderer.domElement; 3 | const width = canvas.clientWidth; 4 | const height = canvas.clientHeight; 5 | const needResize = canvas.width !== width || canvas.height !== height; 6 | if (needResize) { 7 | renderer.setSize(width, height, false); 8 | } 9 | return needResize; 10 | } -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/hello_world.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | # Build 3 | g++ -o hello_world hello_world.cpp 4 | 5 | # Run 6 | ./hello_world 7 | 8 | # With visual studio code just press f5 9 | 10 | 11 | */ 12 | 13 | #include 14 | 15 | using namespace std; 16 | 17 | 18 | int main() 19 | { 20 | cout << "Hello world!" << endl; 21 | cout << __cplusplus << endl; 22 | 23 | 24 | 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/closures.go: -------------------------------------------------------------------------------- 1 | // @credit https://go.dev/tour/moretypes/25 2 | 3 | package main 4 | 5 | import "fmt" 6 | 7 | func adder() func(int) int { 8 | sum := 0 9 | return func(x int) int { 10 | sum += x 11 | return sum 12 | } 13 | } 14 | 15 | func main() { 16 | pos, neg := adder(), adder() 17 | for i := 0; i < 10; i++ { 18 | fmt.Println( 19 | pos(i), 20 | neg(-2*i), 21 | ) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Recipes/express/README.MD: -------------------------------------------------------------------------------- 1 | Express 2 | ======= 3 | 4 | - [Express Middleware](https://expressjs.com/en/resources/middleware.html) 5 | 6 | 7 | 8 | Libraries 9 | ========= 10 | 11 | Cache 12 | ----- 13 | 14 | - [memory-cache](www.npmjs.com/package/memory-cach) 15 | - [node-cache](https://www.npmjs.com/package/node-cache) 16 | - [express-cache-middleware](www.npmjs.com/package/express-cache-middleware) -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Tutorial/Basics - Syntax/04_random_nums.js: -------------------------------------------------------------------------------- 1 | // Rundom Numbers; 2 | 3 | let rand_num1 = Math.floor(Math.random()*10)+1; 4 | let rand_num2 = Math.floor(Math.random()*6)+1; 5 | 6 | function randomNum(val) { 7 | return Math.floor(Math.random()*val) + 1; 8 | } 9 | 10 | var a = randomNum(5); 11 | var b = randomNum(6); 12 | 13 | var message = rollDice(a, b); 14 | console.log(a + ' vs ' + b + ' ' + message); -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/multiple-admin-instances/README.MD: -------------------------------------------------------------------------------- 1 | # Flask-Admin - multiple-admin-instances 2 | ============================= 3 | 4 | 5 | #### Taken from [Flask-Admin Docs](#https://github.com/flask-admin/flask-admin/tree/master/examples/multiple-admin-instances) 6 | 7 | This example shows how to create two separate instances of Flask-Admin for one Flask application. -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/Basics-SimpleTricks/Tricks/reverseSentence.c: -------------------------------------------------------------------------------- 1 | // Reverse a sentence using recursion#include 2 | void reverseSentence(); 3 | int main() { 4 | printf("Enter a sentence: "); 5 | reverseSentence(); 6 | return 0; 7 | } 8 | 9 | void reverseSentence() { 10 | char c; 11 | scanf("%c", &c); 12 | if (c != '\n') { 13 | reverseSentence(); 14 | printf("%c", c); 15 | } 16 | } -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/Project 2/README.MD: -------------------------------------------------------------------------------- 1 | # Project 2 2 | ======================= 3 | 4 | - [DOCS]() 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Features 10 | 11 | 12 | ### 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/Unittest/01_runner.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | # Import packages 3 | 4 | class Test(unittest.TestCase): 5 | print('All set!') 6 | 7 | 8 | def run_tests(test_class): 9 | suite = unittest.TestLoader().loadTestsFromTestCase(test_class) 10 | runner = unittest.TextTestRunner(verbosity=0) 11 | result = runner.run(suite) 12 | 13 | 14 | if __name__ == '__main__': 15 | run_tests(Test) -------------------------------------------------------------------------------- /Programming Languages/C++/recipes/version.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | 5 | std::cout << __cplusplus << std::endl; 6 | 7 | if (__cplusplus == 201703L) std::cout << "C++17\n"; 8 | else if (__cplusplus == 201402L) std::cout << "C++14\n"; 9 | else if (__cplusplus == 201103L) std::cout << "C++11\n"; 10 | else if (__cplusplus == 199711L) std::cout << "C++98\n"; 11 | else std::cout << "pre-standard C++\n"; 12 | } -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/old/Data Structure/Queue/README.MD: -------------------------------------------------------------------------------- 1 | Queue Data Structure 2 | ======================= 3 | 4 | 5 | 6 | 7 | - [Queue Data Structure](https://www.geeksforgeeks.org/queue-data-structure/#implementation) 8 | 9 | - [Queue (abstract data type)](https://en.wikipedia.org/wiki/Queue_(abstract_data_type)) 10 | 11 | 12 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/06 - Generator Based Coroutines/README.MD: -------------------------------------------------------------------------------- 1 | # Generator Based Coroutines 2 | ======================= 3 | 4 | 5 | - []() 6 | ----------------------------------------------------------------------------------------------------- 7 | 8 | ## Features 9 | 10 | 11 | ### 12 | 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/02 Food-Tracker/static/theme.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 70px; 3 | padding-bottom: 30px; 4 | } 5 | 6 | .theme-dropdown .dropdown-menu { 7 | position: static; 8 | display: block; 9 | margin-bottom: 20px; 10 | } 11 | 12 | .theme-showcase > p > .btn { 13 | margin: 5px 0; 14 | } 15 | 16 | .theme-showcase .navbar .container { 17 | width: auto; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Win32", 5 | "includePath": [ 6 | "${workspaceFolder}/**" 7 | ], 8 | "defines": [ 9 | "_DEBUG", 10 | "UNICODE", 11 | "_UNICODE" 12 | ], 13 | "intelliSenseMode": "windows-msvc-x64" 14 | } 15 | ], 16 | "version": 4 17 | } -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/interfaces/interface_implicit.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | type I interface { 6 | M() 7 | } 8 | 9 | type T struct { 10 | S string 11 | } 12 | 13 | // This method means type T implements the interface I, 14 | // but we don't need to explicitly declare that it does so. 15 | func (t T) M() { 16 | fmt.Println(t.S) 17 | } 18 | 19 | func main() { 20 | var i I = T{"hello"} 21 | i.M() 22 | } 23 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/03 - Function Parameters/unpackig_iterables.py: -------------------------------------------------------------------------------- 1 | l = [1, 2, 3, 4] 2 | a, b, c, d = l 3 | print(a, b, c, d) 4 | 5 | a, b, c = 'XYZ' 6 | print(a, b, c) 7 | 8 | 9 | # Swapping Two Variables 10 | 11 | a = 10 12 | b = 20 13 | print("a={0}, b={1}".format(a, b)) 14 | a, b = 10, 20 15 | print("a={0}, b={1}".format(a, b)) 16 | 17 | a, b = b, a # ----> Swapping 18 | print("a={0}, b={1}".format(a, b)) 19 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask Main/Patter for Flask/API_error.py: -------------------------------------------------------------------------------- 1 | from flask import abort, jsonify 2 | 3 | @app.errorhandler(404) 4 | def resource_not_found(e): 5 | return jsonify(error=str(e)), 404 6 | 7 | @app.route("/cheese") 8 | def get_one_cheese(): 9 | resource = get_resource() 10 | 11 | if resource is None: 12 | abort(404, description="Resource not found") 13 | 14 | return jsonify(resource) -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/05 Question - Answer App/static/theme.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 70px; 3 | padding-bottom: 30px; 4 | } 5 | 6 | .theme-dropdown .dropdown-menu { 7 | position: static; 8 | display: block; 9 | margin-bottom: 20px; 10 | } 11 | 12 | .theme-showcase > p > .btn { 13 | margin: 5px 0; 14 | } 15 | 16 | .theme-showcase .navbar .container { 17 | width: auto; 18 | } 19 | -------------------------------------------------------------------------------- /SDLC & Business Models/SDLC.MD: -------------------------------------------------------------------------------- 1 | SDLC - Software Development Life Cycle 2 | ====================================== 3 | 4 | 5 | TEMPLATE:: TODO - FILL UP FOR YOUR PROJECT. SLDC SAMPLE 6 | 7 | Planning 8 | -------- 9 | 10 | 11 | Design & Requirements 12 | ------ 13 | 14 | 15 | Development 16 | ----------- 17 | 18 | 19 | Testing 20 | ------- 21 | 22 | 23 | Deployment 24 | ---------- 25 | 26 | 27 | Maintenance 28 | ----------- 29 | 30 | -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/find_littleEndian_bigEndian.c: -------------------------------------------------------------------------------- 1 | #include 2 | // @ref: https://en.cppreference.com/w/c/language/object#Strict_aliasing 3 | int main(void) 4 | { 5 | int i = 7; 6 | char* pc = (char*)(&i); 7 | 8 | if (pc[0] == '\x7') { // aliasing through char is ok 9 | puts("This system is little-endian"); 10 | } else { 11 | puts("This system is big-endian"); 12 | } 13 | 14 | return 0; 15 | } -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -1 - Functional/06 - Decorators/set_unit.py: -------------------------------------------------------------------------------- 1 | import math 2 | 3 | 4 | def set_unit(unit): 5 | """Register a unit on a function""" 6 | def decorator_set_unit(func): 7 | func.unit = unit 8 | return func 9 | return decorator_set_unit 10 | 11 | 12 | 13 | 14 | @set_unit("cm^3") 15 | def volume(radius, height): 16 | return math.pi * radius**2 * height 17 | 18 | volume(3, 5) 19 | volume.unit -------------------------------------------------------------------------------- /Programming Languages/C++/first_project/version/version.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | 5 | std::cout << __cplusplus << std::endl; 6 | 7 | if (__cplusplus == 201703L) std::cout << "C++17\n"; 8 | else if (__cplusplus == 201402L) std::cout << "C++14\n"; 9 | else if (__cplusplus == 201103L) std::cout << "C++11\n"; 10 | else if (__cplusplus == 199711L) std::cout << "C++98\n"; 11 | else std::cout << "pre-standard C++\n"; 12 | } -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/interfaces/assertions_switch.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func do(i interface{}) { 6 | switch v := i.(type) { 7 | case int: 8 | fmt.Printf("Twice %v is %v\n", v, v*2) 9 | case string: 10 | fmt.Printf("%q is %v bytes long\n", v, len(v)) 11 | default: 12 | fmt.Printf("I don't know about type %T!\n", v) 13 | } 14 | } 15 | 16 | func main() { 17 | do(21) 18 | do("hello") 19 | do(true) 20 | } 21 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -3- Hash Maps/05- Specialized Dictionaries/README.MD: -------------------------------------------------------------------------------- 1 | # Specialized Dictionaries 2 | ======================= 3 | 4 | 5 | 6 | ## Features 7 | 8 | - **DefaultDict** 9 | 10 | - **OrderedDict** 11 | 12 | - **Counter** 13 | 14 | - **ChainMap** *Key Order is not Gurantee* 15 | 16 | - **UserDict** 17 | 18 | 19 | 20 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_Fast-Food/Config/README.MD: -------------------------------------------------------------------------------- 1 | # Config 2 | ======================= 3 | 4 | 5 | - [Config](https://exploreflask.com/en/latest/configuration.html) 6 | ----------------------------------------------------------------------------------------------------- 7 | 8 | ## Features 9 | 10 | 11 | ### 12 | 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Testing/README.MD: -------------------------------------------------------------------------------- 1 | # Testing 2 | ======================= 3 | 4 | - [DOCS]() 5 | 6 | 7 | ----------------------------------------------------------------------------------------------------- 8 | 9 | ## Things to know. 10 | 11 | * ***Integration Testing*** 12 | 13 | * ***Manual Testing*** 14 | 15 | * ***Repeatable Testing** 16 | 17 | 18 | ### 19 | 20 | 21 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/arrays/sort_array_num.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "sort" 6 | ) 7 | 8 | func largest_range(array [12]int) [12]int { 9 | sort.Ints(array[:]) // sort number in plase 10 | return array 11 | } 12 | 13 | func main() { 14 | 15 | input := [12]int{1, 11, 3, 0, 15, 5, 2, 4, 10, 7, 12, 6} 16 | var result [12]int = largest_range(input) 17 | fmt.Println(result) 18 | } 19 | 20 | // [0 1 2 3 4 5 6 7 10 11 12 15] 21 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/methods/pointer_receivers.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "math" 6 | ) 7 | 8 | type Vertex struct { 9 | X, Y float64 10 | } 11 | 12 | func (v Vertex) Abs() float64 { 13 | return math.Sqrt(v.X*v.X + v.Y*v.Y) 14 | } 15 | 16 | func (v Vertex) Scale(f float64) { 17 | v.X = v.X * f 18 | v.Y = v.Y * f 19 | } 20 | 21 | func main() { 22 | v := Vertex{3, 4} 23 | v.Scale(10) 24 | fmt.Println(v.Abs()) 25 | } 26 | -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/PyTest/README.MD: -------------------------------------------------------------------------------- 1 | PyTest 2 | ====== 3 | 4 | *PyTest Recipes* 5 | 6 | 7 | * [TearDown | fixture finalization](https://docs.pytest.org/en/latest/how-to/fixtures.html#teardown-cleanup-aka-fixture-finalization) 8 | * [Method and function level setup - teardown](https://docs.pytest.org/en/latest/how-to/xunit_setup.html#method-and-function-level-setup-teardown) 9 | * [Fixture](https://docs.pytest.org/en/latest/explanation/fixtures.html) -------------------------------------------------------------------------------- /Programming Languages/Python/MultiProcessing-Threading/Queue/README.MD: -------------------------------------------------------------------------------- 1 | Queue 2 | ======================= 3 | 4 | 5 | - **queue — A synchronized queue class**[DOCS](https://docs.python.org/3/library/queue.html) 6 | ----------------------------------------------------------------------------------------------------- 7 | 8 | --------- 9 | 10 | 11 | 12 | 13 | 14 | ----------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask Main/Patter for Flask/SPA_API.py: -------------------------------------------------------------------------------- 1 | from flask import Flask, jsonify 2 | 3 | 4 | app = Flask(__name__, static_folder='app', static_url_path="/app") 5 | 6 | 7 | @app.route("/heartbeat") 8 | def heartbeat(): 9 | return jsonify({"status": "healthy"}) 10 | 11 | 12 | @app.route('/', defaults={'path': ''}) 13 | @app.route('/') 14 | def catch_all(path): 15 | return app.send_static_file("index.html") -------------------------------------------------------------------------------- /Game Development/javascript/recipes/draws_and_shapes/smile.js: -------------------------------------------------------------------------------- 1 | function smile() { 2 | ctx.beginPath(); 3 | ctx.arc(75, 75, 50, 0, Math.PI * 2, true); // Outer circle 4 | ctx.moveTo(110, 75); 5 | ctx.arc(75, 75, 35, 0, Math.PI, false); // Mouth (clockwise) 6 | ctx.moveTo(65, 65); 7 | ctx.arc(60, 65, 5, 0, Math.PI * 2, true); // Left eye 8 | ctx.moveTo(95, 65); 9 | ctx.arc(90, 65, 5, 0, Math.PI * 2, true); // Right eye 10 | ctx.stroke(); 11 | } -------------------------------------------------------------------------------- /Programming Languages/C/.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Win32", 5 | "includePath": [ 6 | "${workspaceFolder}/**" 7 | ], 8 | "defines": [ 9 | "_DEBUG", 10 | "UNICODE", 11 | "_UNICODE" 12 | ], 13 | "intelliSenseMode": "windows-msvc-x64" 14 | } 15 | ], 16 | "version": 4 17 | } -------------------------------------------------------------------------------- /Programming Languages/GO/recipes/write_to_files.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "io" 5 | "os" 6 | ) 7 | 8 | func main() { 9 | 10 | } 11 | 12 | func CopyFile(dstName, srcName string) (written int64, err error) { 13 | src, err := os.Open(srcName) 14 | if err != nil { 15 | return 16 | } 17 | defer src.Close() 18 | 19 | dst, err := os.Create(dstName) 20 | if err != nil { 21 | return 22 | } 23 | defer dst.Close() 24 | 25 | return io.Copy(dst, src) 26 | } 27 | -------------------------------------------------------------------------------- /Programming Languages/Java/small_apps/javafx/setBorderBox.java: -------------------------------------------------------------------------------- 1 | package Programming Languages.Java.small_apps.javafx; 2 | 3 | public class setBorderBox { 4 | 5 | public static void main(String[] a) { 6 | String cssLayout = "-fx-border-color: red;\n" + 7 | "-fx-border-insets: 5;\n" + 8 | "-fx-border-width: 3;\n" + 9 | "-fx-border-style: dashed;\n"; 10 | HBox wrapper = new HBox(title); 11 | wrapper.setStyle(cssLayout); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Recipes/express/simpleRouterMiddlewareBoilerplate.js: -------------------------------------------------------------------------------- 1 | // file about.js 2 | 3 | const express = require('express'); 4 | const router = express.Router(); 5 | 6 | router.get('/', function(req, res, next) { 7 | res.end('

About

'); 8 | }); 9 | 10 | module.exports = router; 11 | 12 | // file app.js 13 | // ...code... 14 | const aboutRouter = require('./routes/about'); 15 | 16 | app.use('/', aboutRouter); 17 | 18 | // ...code... -------------------------------------------------------------------------------- /Programming Languages/Python/Standard Libraries/TKinter/recipes/cursor/1_change_cursor_on_motion.py: -------------------------------------------------------------------------------- 1 | # https://www.pythontutorial.net/tkinter/tkinter-cursors/ 2 | import tkinter as tk 3 | 4 | root = tk.Tk() 5 | root.geometry("300x300") 6 | 7 | 8 | def change_cursor(event): 9 | if event.x in range(100, 300): 10 | root.config(cursor="watch") 11 | else: 12 | root.config(cursor="") 13 | 14 | 15 | root.bind("", change_cursor) 16 | root.mainloop() -------------------------------------------------------------------------------- /Software Development/Front-End/figma_docs.md: -------------------------------------------------------------------------------- 1 | Figma Docs 2 | ========== 3 | 4 | 5 | PlugIns 6 | ------- 7 | 8 | 9 | - [Autoflow](https://www.figma.com/community/plugin/733902567457592893/Autoflow) **Fantastic Flow / Diagram Tool** 10 | 11 | 12 | 13 | 14 | Documentation 15 | ------------- 16 | 17 | 18 | 19 | - [Components in Figma](https://docs.merkulov.design/components-in-figma/) 20 | - [Create and use variants](https://help.figma.com/hc/en-us/articles/360056440594) -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/examples/pods/pod_accessible.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx 5 | spec: 6 | containers: 7 | - name: nginx 8 | image: nginx:1.14.2 9 | ports: 10 | - containerPort: 8000 11 | 12 | --- 13 | apiVersion: v1 14 | kind: Service 15 | metadata: 16 | name: nginx 17 | spec: 18 | type: NodePort 19 | ports: 20 | - port: 80 21 | nodePort: 30000 22 | selector: 23 | name: nginx -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/goroutines/channels/sample.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func sum(s []int, c chan int) { 6 | sum := 0 7 | for _, v := range s { 8 | sum += v 9 | } 10 | c <- sum // send sum to c 11 | } 12 | 13 | func main() { 14 | s := []int{7, 2, 8, -9, 4, 0} 15 | 16 | c := make(chan int) 17 | go sum(s[:len(s)/2], c) 18 | go sum(s[len(s)/2:], c) 19 | x, y := <-c, <-c // receive from c 20 | 21 | fmt.Println(x, y, x+y) 22 | } 23 | -------------------------------------------------------------------------------- /Machine Lerning & AI/keywords.md: -------------------------------------------------------------------------------- 1 | Machine Learning & AI -- Keywords 2 | ================================== 3 | 4 | * OWASP (Open Web Application Security Project) 5 | * Defense Information Systems Agency (DISA-STIG), 6 | * Federal Trade Commission (FTC) 7 | * National Institute of Standards and Technology (NIST) 8 | * Software Bill of Materials (SBOM) 9 | * Machine Learning Bill of Materials (ML-BOM) 10 | * Retrieval-Augmented Generation (RAG) 11 | * Denial of Wallet (DoW) 12 | 13 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/function_values.go: -------------------------------------------------------------------------------- 1 | // @credit: https://go.dev/tour/moretypes/24 2 | package main 3 | 4 | import ( 5 | "fmt" 6 | "math" 7 | ) 8 | 9 | func compute(fn func(float64, float64) float64) float64 { 10 | return fn(3, 4) 11 | } 12 | 13 | func main() { 14 | hypot := func(x, y float64) float64 { 15 | return math.Sqrt(x*x + y*y) 16 | } 17 | fmt.Println(hypot(5, 12)) 18 | 19 | fmt.Println(compute(hypot)) 20 | fmt.Println(compute(math.Pow)) 21 | } 22 | -------------------------------------------------------------------------------- /Programming Languages/JavaScript/Node/Recipes/express/urlencoded_json_middleware.js: -------------------------------------------------------------------------------- 1 | // https://expressjs.com/en/4x/api.html#app.onmount 2 | 3 | var express = require('express') 4 | 5 | var app = express() 6 | 7 | app.use(express.json()) // for parsing application/json 8 | app.use(express.urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded 9 | 10 | app.post('/profile', function (req, res, next) { 11 | console.log(req.body) 12 | res.json(req.body) 13 | }) -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/01 - Sequences/02_slice.py: -------------------------------------------------------------------------------- 1 | # Converting Slice to Range 2 | import sys 3 | 4 | print(slice(1, 5).indices(10)) 5 | # (1, 5, 1) 6 | print(list(range(1, 5, 1))) 7 | # [1, 2, 3, 4] 8 | l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 9 | l[1:5] 10 | 11 | print(range(*slice(None, None, -1).indices(10))) 12 | # range(9, -1, -1) 13 | print(list(range(*slice(None, None, -1).indices(10)))) 14 | # [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] 15 | 16 | 17 | -------------------------------------------------------------------------------- /Programming Languages/Python/Basics/Part -2 - Iteration & Generators/03_Generators/simple_generator.py: -------------------------------------------------------------------------------- 1 | def my_range(start, stop, step = 1): 2 | if stop <= start: 3 | raise RuntimeError("start must be smaller than stop") 4 | i = start 5 | while i < stop: 6 | yield i 7 | i += step 8 | 9 | try: 10 | for k in my_range(10, 50, 3): 11 | print(k) 12 | except RuntimeError as ex: 13 | print(ex) 14 | except: 15 | print("Unknown error occurred") -------------------------------------------------------------------------------- /Programming Languages/C++/.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Linux", 5 | "includePath": [ 6 | "${workspaceFolder}/**" 7 | ], 8 | "defines": [], 9 | "compilerPath": "/usr/bin/gcc", 10 | "cStandard": "gnu17", 11 | "cppStandard": "gnu++14", 12 | "intelliSenseMode": "linux-gcc-x64" 13 | } 14 | ], 15 | "version": 4 16 | } -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask-Extensions/Flask-Admin/examples_01/sqla/run_server.py: -------------------------------------------------------------------------------- 1 | from admin import app 2 | from admin.data import build_sample_db 3 | import os 4 | import os.path as op 5 | 6 | basedir = op.join(op.abspath(op.dirname(__file__)), 'admin') 7 | database_path = op.join(basedir, app.config['DATABASE_FILE']) 8 | 9 | if not os.path.exists(database_path): 10 | build_sample_db() 11 | 12 | 13 | if __name__ == '__main__': 14 | app.run(debug=True) -------------------------------------------------------------------------------- /Software Development/Back-End/Databases/MySQL/Recipes/verbose_output/insert_sample.sql: -------------------------------------------------------------------------------- 1 | -- Sample table creation with default values 2 | 3 | CREATE TABLE IF NOT EXISTS my_table ( 4 | id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 5 | datetime_create TIMESTAMP NOT NULL DEFAULT (UTC_TIMESTAMP), 6 | datetime_write TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | name CHAR NOT NULL 8 | 9 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci; -------------------------------------------------------------------------------- /Container & Orchestrations/Kubernetes/tutorial/liveness_readiness/app.py: -------------------------------------------------------------------------------- 1 | import time 2 | from flask import Flask 3 | app = Flask(__name__) 4 | 5 | @app.route('/liveness') 6 | def healthx(): 7 | return "OK", 200 8 | 9 | @app.route('/readiness') 10 | def healthz(): 11 | return "OK", 200 12 | 13 | @app.route("/") 14 | def hello(): 15 | return "

Hello World app! Version 1

" 16 | 17 | if __name__ == "__main__": 18 | 19 | app.run(host='0.0.0.0',port=5000, debug=True) -------------------------------------------------------------------------------- /Programming Languages/C/Recipes/c_version/compile_c_versions.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # @credit: https://stackoverflow.com/a/53063656/13903942 3 | 4 | # Compile and run C multiple C Versions of C 5 | for std in c90 c99 c11 c17 c23 gnu89 gnu99 gnu11 gnu17; do 6 | echo $std 7 | gcc main.c -std=$std -o c.out 8 | ./c.out 9 | echo 10 | done 11 | 12 | # This, is the default C that your GCC Compiler will compile (withou -std=[VERSION]) 13 | echo default 14 | gcc main.c -o c.out 15 | ./c.out -------------------------------------------------------------------------------- /Programming Languages/Python/External Libraries/Flask/Flask_website_examples/00 To-Do WebApp/requirements.txt: -------------------------------------------------------------------------------- 1 | astroid==2.4.2 2 | click==7.1.2 3 | colorama==0.4.3 4 | Flask==1.1.2 5 | Flask-SQLAlchemy==2.4.4 6 | Flask-WTF==0.14.3 7 | isort==5.5.3 8 | itsdangerous==1.1.0 9 | Jinja2==2.11.2 10 | lazy-object-proxy==1.4.3 11 | MarkupSafe==1.1.1 12 | mccabe==0.6.1 13 | pylint==2.6.0 14 | six==1.15.0 15 | SQLAlchemy==1.3.19 16 | toml==0.10.1 17 | Werkzeug==1.0.1 18 | wrapt==1.12.1 19 | WTForms==2.3.3 20 | -------------------------------------------------------------------------------- /Programming Languages/C/fundamentals/roadmap/2_intermediate/3_scopes/readme.md: -------------------------------------------------------------------------------- 1 | C Roadmap - Scopes 2 | ======================= 3 | 4 | - Scopes 5 | - local 6 | - global 7 | 8 | 9 | Also in cppreference.com, is is explained with different names, but with more details, 10 | see [Scope - cppreference.com](https://en.cppreference.com/w/c/language/scope) 11 | 12 | C has four kinds of scopes: 13 | 14 | - block scope 15 | - file scope 16 | - function scope 17 | - function prototype scope 18 | 19 | -------------------------------------------------------------------------------- /Programming Languages/GO/fundamentals/slices/make_slice.go: -------------------------------------------------------------------------------- 1 | // @credit: https://go.dev/tour/moretypes/13 2 | package main 3 | 4 | import "fmt" 5 | 6 | func main() { 7 | a := make([]int, 5) 8 | printSlice("a", a) 9 | 10 | b := make([]int, 0, 5) 11 | printSlice("b", b) 12 | 13 | c := b[:2] 14 | printSlice("c", c) 15 | 16 | d := c[2:5] 17 | printSlice("d", d) 18 | } 19 | 20 | func printSlice(s string, x []int) { 21 | fmt.Printf("%s len=%d cap=%d %v\n", 22 | s, len(x), cap(x), x) 23 | } 24 | -------------------------------------------------------------------------------- /Programming Languages/PHP/.htaccess: -------------------------------------------------------------------------------- 1 | # Basic .htaccess for re writing 2 | 3 | RewriteEngine On 4 | RewriteBase / 5 | RewriteCond %{REQUEST_FILENAME} !-d 6 | RewriteCond %{REQUEST_FILENAME} !-f 7 | RewriteRule ^(.+)$ index.php [QSA,L] 8 | 9 | # with RewriteCond for the static assets 10 | RewriteEngine on 11 | RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png) 12 | RewriteCond %(REQUEST_FILENAME) !-f 13 | RewriteCond %(REQUEST_FILENAME) !-d 14 | RewriteRule ^(.*)$ ./index.php/$1 [L] -------------------------------------------------------------------------------- /Programming Languages/Python/MultiProcessing-Threading/Threading/examples/script_1.py: -------------------------------------------------------------------------------- 1 | import threading 2 | 3 | 4 | def main(): 5 | thread_func = lambda arg_1, arg_2, key_arg_1=None, key_arg_2=None: print(f'{arg_1} | {arg_2} | {key_arg_1} | {key_arg_2} ') 6 | thread_one = threading.Thread(target=thread_func, args=(1, 2), kwargs={"key_arg_1": "Value1", "key_arg_2": "Value2"}) 7 | thread_one.start() 8 | thread_one.join() 9 | 10 | 11 | if __name__ == '__main__': 12 | main() 13 | --------------------------------------------------------------------------------