@valisherbotirov · Post #115 · 06.04.2023 г., 04:35
Frontend 1-dars. Bootstrap -Bootstrap haqida umumiy tushuncha Mentor: Rejabboyev Asadbek #frontend#bootstrap 👉Telegram | Instagram | YouTube
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #425 · 20 апр.
Недавно делал быстрый прототип асинхронного приложения в котором требовалось вызывать много синхронного кода. Да, я знаю, что это не лучший дизайн, но нужно было быстрое решение на один процесс и без очередей. Поэтому я выполнял код в потоках. Выглядело это примерно так: from fastapi.concurrency import run_in_threadpool async def execute(data: DataRequest) -> DataResponse: try: result = await run_in_threadpool(sync_function, data) return DataResponse(data=result) except Exception as e: return DataResponse( error=str(e), success=False, ) В общем работает нормально. Для всех вызовов под капотом используется общий тредпул, всё работает предсказуемо. Но потребовалось изменить количество запускаемых в пуле потоков (по умолчанию создается 40 воркеров). Так как дело происходит с FastAPI, делается это через lifespan используя настройки anyio: import anyio @asynccontextmanager async def lifespan(app: FastAPI): limiter = anyio.to_thread.current_default_thread_limiter() limiter.total_tokens = 100 yield # если вдруг нужно вернуть обратно limiter.total_tokens = 40 Зачем менять количество воркеров? - уменьшить, если оперативки мало (один тред занимает ~8мб) - увеличить чтобы выдержать нагрузку Если есть предложения получше при тех же вводных - предлагайте😉 #async
Hashtags
Пребарај: #bootstrap
@valisherbotirov · Post #115 · 06.04.2023 г., 04:35
Frontend 1-dars. Bootstrap -Bootstrap haqida umumiy tushuncha Mentor: Rejabboyev Asadbek #frontend#bootstrap 👉Telegram | Instagram | YouTube
Hashtags
@repo_science · Post #3592 · 15.09.2023 г., 12:16
#webDevelopment#bootstrap 🌐 Bootstrap 5 Crash Course Bootstrap is one of the most widely used CSS frameworks, but it can be quite complex to learn since there are so many features in Bootstrap. In this video I will be breaking down everything you need to know about Bootstrap by covering the entire grid system, 6 popular components, and 6 categories of utility classes. ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@repo_science · Post #3250 · 31.05.2023 г., 11:52
#python#flask#django#html#css#bootstrap 🐍 Python Web Dev Pro: Flask, Django, HTML, CSS & Bootstrap Elevate Your Web Development Skills: Master Back-End & Front-End Technologies with Python, Flask, Django, and Responsive 🔗Link ----- Main channel:@repo_science Coupons: @freecoupons_reposcience -----
@githubtrending · Post #14893 · 01.07.2025 г., 12:30
#css#admin#admin_dashboard#admin_panel#admin_template#bootstrap AdminLTE is a free, fully responsive admin dashboard template built on Bootstrap 5, designed to work smoothly on all devices from mobiles to desktops. It is easy to customize and includes many ready-to-use components, making it ideal for quickly creating professional admin panels. The latest version fixes deployment issues, ensures consistent behavior in development and production, and supports modern browsers without errors. You can start developing easily with simple commands and benefit from clear, well-commented code. This saves you time and effort in building and deploying admin interfaces efficiently and reliably. https://github.com/ColorlibHQ/AdminLTE
@githubtrending · Post #14762 · 30.05.2025 г., 00:00
#html#bootstrap#devcontainer#html5#jamstack#jekyll#jekyll_theme#pwa#responsive_web_design#rubygems The Chirpy Jekyll theme is a simple and powerful tool for creating websites, especially for technical writing. It offers many features like dark mode, categories, syntax highlighting, and built-in search. This theme helps users create visually appealing sites with ease, making it ideal for sharing knowledge and ideas. It also supports mathematical expressions and diagrams, which is beneficial for technical content. Additionally, it is optimized for SEO and performance, ensuring your site is easily found and runs smoothly. https://github.com/cotes2020/jekyll-theme-chirpy