javascript
Debouncer: практический пример использования замыкания

Что такое дебаунсер?Дебаунсер - это функция-обертка, которая ограничивает число выполнений переданной в нее функции, некоторым промежутком времени.Практическое применениеПредположим, при вводе текста в инпут мы хотим отправлять запрос на сервер, чтобы получить выпадающий список вариантов под введенное значение.По умолчанию, запрос будет уходить при вводе очередной буквы, но чтобы не грузить сервер запросами и не повторять рендер страницы с одинаковыми по значению данными, мы хотим обернуть зап…

  • воскресенье, 25 июня 2023 г. в 00:00:15
javascript
Как делать full-stack с одного устройства без СМС и регистрации

Эта статья написана для ламеровЯ как обычно учился кодить, и вдруг заметил что телеграм выпустил веб апи и теперь там есть фронт...На тот момент я уже владел React, Flask и Django, и решил повысить планку с помощью FastAPI.Веря в свои силы, я установил FastAPI и aiogram. Очевидно, мне следовало бы использовать нативные методы Telegram API, но aiogram предоставляет множество удобных функций, которые ускоряют разработку.ПроблемаDjango и Flask используют шаблонизаторы (я использовал Jinja2), что …

  • воскресенье, 25 июня 2023 г. в 00:00:14
github
joamag / boytacean

A GB emulator that is written in Rust 🦀!Boytacean A Game Boy emulator that is written in Rust 🦀. This emulator has been written for educational purposes and shouldn't be taken too seriously. But yeahh it plays most Game Boy games, which is cool... 🕹️ Features Game Boy (DMG) and Game Boy Color (CGB) emulation Simple navigable source-code Web and SDL front-ends Audio, with a pretty accurate APU Serial Data Transfer (Link Cable) support Game Boy Printer emulation Support for multiple MBCs: M…

  • воскресенье, 25 июня 2023 г. в 00:00:11
github
MustardChef / WSABuilds

Run Windows Subsystem For Android on your Windows 10 and Windows 11 PC using prebuilt binaries with Google Play Store (OpenGApps/ MindTheGapps) and/or Magisk or KernelSU (root solutions) built in.WSABuilds       MagiskOnWSA (For Windows™ 10 and 11) Windows Subsystem For Android™ (WSA) with Google Play Services and (or) Magisk   ⚠️ Forking Information ⚠️ ❗ Important:   ⚠️DO NOT FORK⚠️ This repository is designed specifically not to be forked. MagiskOnWSA and some of the v…

  • воскресенье, 25 июня 2023 г. в 00:00:10
github
CASIA-IVA-Lab / FastSAM

Fast Segment Anything Fast Segment Anything [📕Paper] [🤗HuggingFace Demo] [Colab demo] [Model Zoo] [BibTeX] The Fast Segment Anything Model(FastSAM) is a CNN Segment Anything Model trained by only 2% of the SA-1B dataset published by SAM authors. The FastSAM achieve a comparable performance with the SAM method at 50× higher run-time speed. Installation Clone the repository locally: git clone https://github.com/CASIA-IVA-Lab/FastSAM.git Create the conda env. The code requires python>=3.7, as…

  • воскресенье, 25 июня 2023 г. в 00:00:07
github
chat2db / Chat2DB

🔥 🔥 🔥 An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates ChatGPT capabilities.(智能的通用数据库SQL客户端和报表工具)Chat2DB An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates ChatGPT capabilities. Share Chat2DB Repository License Notation: Chat2DB is constructed and distributed for personal and non-commercial use only. For commercial use of this project, please contact corresponding a…

  • воскресенье, 25 июня 2023 г. в 00:00:03
github
Stability-AI / generative-models

Generative Models by Stability AIGenerative Models by Stability AI News June 22, 2023 We are releasing two new diffusion models for research purposes: SD-XL 0.9-base: The base model was trained on a variety of aspect ratios on images with resolution 1024^2. The base model uses OpenCLIP-ViT/G and CLIP-ViT/L for text encoding whereas the refiner model only uses the OpenCLIP model. SD-XL 0.9-refiner: The refiner has been trained to denoise small noise levels of high quality data and as such is …

  • воскресенье, 25 июня 2023 г. в 00:00:01
xaker
Positive Hack Days 12. Как хакеры наводнили парк Горького

Для подписчиковВ конце мая прошел двенадцатый форум по информационной безопасности Positive Hack Days, организованный компанией Positive Technologies и получивший в этом году тематическое название «Доверие к технологиям». Локацию для проведения мероприятия выбрали очень интересную — парк Горького, один из популярнейших парков Москвы. Необычно? Весьма. Интересно? Да!

  • суббота, 24 июня 2023 г. в 00:00:31
xaker
«Яндекс» увеличивает фонд программы «Охота за ошибками» до 100 млн рублей

Компания «Яндекс» увеличит общую сумму выплат в программе «Охота за ошибками» в 2023 году в 2,5 раза. Компания выделит 100 млн рублей на вознаграждение исследователей, которые ищут уязвимости в ее продуктах и инфраструктуре.

  • суббота, 24 июня 2023 г. в 00:00:30