اگر برنامهنویسی جنگو انجام میدین دستور اولی که با djlint هست خیلی به کار میاد.
این افزونه علاوه قر اینکه میتونه فایلهای html و jinja رو فرمت کنه یک لینتر بسیار قوی و مفید هست که راهنماییهای فوقالعادهای داره و بسیار به دقت در جزئیات کدتون اضافه میشه
دو دستور بعدی هم جهت ریفرمت کردن و زیبایی کدهای پایتونی کاربرد داره
*به کاراکتر نقطه آخر دستورات توجه داشته باشید که از قلم نندازین
این افزونه علاوه قر اینکه میتونه فایلهای html و jinja رو فرمت کنه یک لینتر بسیار قوی و مفید هست که راهنماییهای فوقالعادهای داره و بسیار به دقت در جزئیات کدتون اضافه میشه
دو دستور بعدی هم جهت ریفرمت کردن و زیبایی کدهای پایتونی کاربرد داره
*به کاراکتر نقطه آخر دستورات توجه داشته باشید که از قلم نندازین
python -m djlint --reformat --format-css --format-js --indent 2 --quiet --profile django .
python -m isort --profile black --atomic --trailing-comma --use-parentheses --float-to-top .
python -m black .
extensions.txt
1.3 KB
این لیست پلاگینهای موردنیاز هست.
اگر روی ویندوز میخواین نصبشون کنید با این دستور داخل پاورشل:
اگر روی ویندوز میخواین نصبشون کنید با این دستور داخل پاورشل:
cat extensions.txt | % { "code --install-extension $_" }
و اگر روی لینوکس میخواین نصبشون کنید هم این دستور رو بزنید:cat extensions.txt | xargs -L 1 echo code --install-extension
بعد از نصب هم کانفیگ زیر رو استفاده کنید.settings.json
13.4 KB
داخل ویاسکد دکمههای ترکیبی زیر رو بزنید
Ctrl+Shift+p
و بعد تایپ کنید:
Preferences: Open User Settings (JSON)
بعد اینتر بزنید و محتوای فایلی که باز میشه رو با محتوای فایل پیوست جایگزین کنید.
Ctrl+Shift+p
و بعد تایپ کنید:
Preferences: Open User Settings (JSON)
بعد اینتر بزنید و محتوای فایلی که باز میشه رو با محتوای فایل پیوست جایگزین کنید.
سلام مهندسا وقتتون بخیر
یک ایدهای رو قبلا دیده بودم و روش یکم کار کردم و امروز دوباره لازمم شد چون دارم یک سری pdf میخونم و ترجمه دم دستم باشه خیلی عالی میشه.
اولش از این پست بود
https://t.me/programming_tricks/117
چیزی که الان دارم برای kde یوزرها سادهتر و قشنگتره و البته برای arch بیس یوزرها هم سادهتر چون برای تلفظ یک دیپندنسی text-to-speach هم لازم داره که نصب بشه و کل این پکیجهای کوچیک همش تو ریپوزیتوریهای اصلی مانجارو و آرچ هستن
https://www.soimort.org/translate-shell/
این برنامهی کامندلاینی برای ترجمه از چندتا موتور ترجمه هست. کلی آپشن داره ولی خب من یکی دوتاش رو استفاده کردم.
اولی xclip: برای خوندن متنی که کپی شده یا انتخاب شده و بقولی selected هست.
و در ادامه notify-send: برای نمایش پاپآپ
نکتهای که امروز اضافه کردم تلفظ بوده که با فلگ -sp بدست میاد و خیلی کارم رو جلو انداخت.
یک فایل با محتوای زیر درست میکنیم:
یک صدایی برات اون متن رو میخونه و یک پاپآپ باز میشه که ترجمه توش نوشته شده
یک ایدهای رو قبلا دیده بودم و روش یکم کار کردم و امروز دوباره لازمم شد چون دارم یک سری pdf میخونم و ترجمه دم دستم باشه خیلی عالی میشه.
اولش از این پست بود
https://t.me/programming_tricks/117
چیزی که الان دارم برای kde یوزرها سادهتر و قشنگتره و البته برای arch بیس یوزرها هم سادهتر چون برای تلفظ یک دیپندنسی text-to-speach هم لازم داره که نصب بشه و کل این پکیجهای کوچیک همش تو ریپوزیتوریهای اصلی مانجارو و آرچ هستن
https://www.soimort.org/translate-shell/
این برنامهی کامندلاینی برای ترجمه از چندتا موتور ترجمه هست. کلی آپشن داره ولی خب من یکی دوتاش رو استفاده کردم.
اولی xclip: برای خوندن متنی که کپی شده یا انتخاب شده و بقولی selected هست.
و در ادامه notify-send: برای نمایش پاپآپ
نکتهای که امروز اضافه کردم تلفظ بوده که با فلگ -sp بدست میاد و خیلی کارم رو جلو انداخت.
یک فایل با محتوای زیر درست میکنیم:
#! /usr/bin/sh
translate() {
res="$(trans :fa -no-auto -b -no-bidi -sp -j $1)"
notify-send --expire-time=5000 --icon=crow-translate-tray "Translator" $res
}
select_and_translate() {
translate "$(xclip -out -selection primary)"
}
select_and_translate
با پسوند .sh ذخیره میکنیم و قابلیت اجرایی executable بهش میدیم و براش یک شورتکات کیبورد هم اضافه میکنیم و حالا کافیه یه متن رو انتخاب کنی و شورتکات رو بزنی و بومیک صدایی برات اون متن رو میخونه و یک پاپآپ باز میشه که ترجمه توش نوشته شده
Telegram
ترفندهای برنامهنویسی
#!/usr/bin/env bash
translate() {
zenity --info --title='Translate' --width=300 --text="<span foreground=\"#373d3f\" font=\"10\">$1</span>\n\n<span foreground=\"#131516\" font=\"10\">$(trans -no-bidi -b -t fa "$1"|head -5)</span>"
}
select_and_translate()…
translate() {
zenity --info --title='Translate' --width=300 --text="<span foreground=\"#373d3f\" font=\"10\">$1</span>\n\n<span foreground=\"#131516\" font=\"10\">$(trans -no-bidi -b -t fa "$1"|head -5)</span>"
}
select_and_translate()…
در دسکتاپ کیدیای به این صورت میتونید براش شورتکات تعریف کنید. روی تب اکشن هم کلیک کنید و در باکس خالی آدرس فایلی که ایجاد کردین رو بنویسید برای مثال:
/home/username/.local/bin/translator.sh
و حالا هر زمان که به اینترنت وصل هستین کافیه متنی که ترجمه/تلفظش رو لازم دارید با ماوس انتخاب کنید و شورتکات کیبوردتون رو بزنید.
/home/username/.local/bin/translator.sh
و حالا هر زمان که به اینترنت وصل هستین کافیه متنی که ترجمه/تلفظش رو لازم دارید با ماوس انتخاب کنید و شورتکات کیبوردتون رو بزنید.
Understanding Hashing and Equality in Python with __hash__ and __eq__ | by Jacob Ferus | Oct, 2022
https://levelup.gitconnected.com/understanding-hashing-and-equality-in-python-with-hash-and-eq-12f6da79e8ad
https://levelup.gitconnected.com/understanding-hashing-and-equality-in-python-with-hash-and-eq-12f6da79e8ad
Medium
Understanding Hashing and Equality in Python with __hash__ and __eq__
Learn about how they work, how you should use them, and what you absolutely should not do.
The best open source software of 2022 | InfoWorld
https://www.infoworld.com/article/3676829/the-best-open-source-software-of-2022.html
https://www.infoworld.com/article/3676829/the-best-open-source-software-of-2022.html
InfoWorld
The best open source software of 2022
InfoWorld’s 2022 Bossie Awards celebrate the most important and innovative application development, devops, data analytics, and machine learning tools of the year.
Lightweight Javascript Framework Review (For Django Developers) | AccordBox
https://www.accordbox.com/blog/lightweight-javascript-framework-review-for-django-developers/
https://www.accordbox.com/blog/lightweight-javascript-framework-review-for-django-developers/
Accordbox
Lightweight Javascript Framework Review (For Django Developers)
I will talk and compare lightweight javascript frameworks, and help you decide which one is the best for your Django project.
Django Live Data Display Using Ajax || How to - YouTube
https://m.youtube.com/watch?v=6TXtsTutoQQ
https://m.youtube.com/watch?v=6TXtsTutoQQ
YouTube
Django Live Data Display Using Ajax || How to
Hello Everyone,
In this video, we have shown how to use ajax to display live data in django (real-time data in django). we were trying to find something like this for one of our projects and was difficult to get something exactly like this. Hope you understand…
In this video, we have shown how to use ajax to display live data in django (real-time data in django). we were trying to find something like this for one of our projects and was difficult to get something exactly like this. Hope you understand…
ChatterBot: Build a Chatbot With Python
https://realpython.com/build-a-chatbot-python-chatterbot/
https://realpython.com/build-a-chatbot-python-chatterbot/
Realpython
ChatterBot: Build a Chatbot With Python – Real Python
Chatbots can help to provide real-time customer support and are a valuable asset in many industries. When you understand the basics of the ChatterBot library, you can build and train a self-learning chatbot with just a few lines of Python code.
5 Productivity Tips (That Work) from Formerly Disorganized People
https://www.apartmenttherapy.com/productivity-tips-from-formerly-disorganized-people-37172016
https://www.apartmenttherapy.com/productivity-tips-from-formerly-disorganized-people-37172016
Apartment Therapy
5 Productivity Tips (That Work) from Formerly Disorganized People
Pop quiz time. What’s in your top desk drawer? What’s on your calendar for tomorrow? Do you have all your documents in order in case you get audited? How many scented candles do you have sprinkled around your apartment?If those questions prompt a wave of…
Object Oriented Programming in Python – Full Crash Course
https://www.freecodecamp.org/news/crash-course-object-oriented-programming-in-python/
https://www.freecodecamp.org/news/crash-course-object-oriented-programming-in-python/
freeCodeCamp.org
Object Oriented Programming in Python – Full Crash Course
Object Oriented programming, or "OOP" for short, is a way of writing code that relies on the concepts of classes and objects. The main benefit of writing your code in an object-oriented way is to structure your program into simple, reusable pieces o...
Fundamentals of Automated Testing - Unit Tests Basic Concepts - Trilon Consulting
https://trilon.io/blog/fundamentals-of-automated-testing-unit-tests-basic-concepts
https://trilon.io/blog/fundamentals-of-automated-testing-unit-tests-basic-concepts
Trilon
Fundamentals of Automated Testing - Unit Tests Basic Concepts - Trilon Consulting
This is the first article in a series to understand the fundamentals of automated testing with NestJS. In this part we're going to understand the basic concepts and components of unit testing in general.
Rapidly Solving Sudoku, N-Queens, Pentomino Placement, and More, With Knuth's Algorithm X and Dancing Links.
https://blog.demofox.org/2022/10/30/rapidly-solving-sudoku-n-queens-pentomino-placement-and-more-with-knuths-algorithm-x-and-dancing-links/
https://blog.demofox.org/2022/10/30/rapidly-solving-sudoku-n-queens-pentomino-placement-and-more-with-knuths-algorithm-x-and-dancing-links/
The blog at the bottom of the sea
Rapidly Solving Sudoku, N-Queens, Pentomino Placement, and More, With Knuth’s Algorithm X and Dancing Links.
The C++ code that goes with this post can be found at A fun youtube video came out recently showing how people optimized an algorithm from running for an entire month, to eventually running for les…
Master the Fundamentals of Python
https://coursevania.com/courses/master-the-fundamentals-of-python/
https://coursevania.com/courses/master-the-fundamentals-of-python/
CourseVania
Master the Fundamentals of Python – CourseVania
Master the Fundamentals of Python is an extremely comprehensive course targeted for beginners who want to build their skills slowly and thoroughly without knowledge gaps. This course is packed full of material to ensure your understanding, regardless of your…