TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

Пронајдени 519 слични објави

Пребарај: #innovation

当前筛选 #innovation清除筛选
Viral Today

@viral_today · Post #3331 · 29.06.2025 г., 16:41

This sun visor can switch between full mirror mode and seeing-through as well as dimming on demand depending on how strong the sun is. @Viral_Today / #innovation

Hashtags

Viral Today

@viral_today · Post #3153 · 24.10.2024 г., 14:39

Meet Torso, the first bimanual android from Clone, powered by artificial muscles. It features an actuated elbow, cervical spine (neck), and anthropomorphic shoulders with complex joints, including the sternoclavicular, acromioclavicular, scapulothoracic, and glenohumeral joints. @Viral_Today / #innovation

Hashtags

Viral Today

@viral_today · Post #3091 · 05.10.2024 г., 15:51

The interactive dress from Project Primrose, developed by Adobe researchers, uses smart materials to turn surfaces into dynamic displays. Powered by light-diffusing modules, it can be layered into everything from clothing to furniture, and even billboards. @Viral_Today / #innovation

Hashtags

Viral Today

@viral_today · Post #3000 · 10.09.2024 г., 17:36

Salmon showcased groundbreaking prosthetics, that will enhance the lives of athletes with disabilities. @Viral_Today / #innovation

Hashtags

Viral Today

@viral_today · Post #2837 · 07.08.2024 г., 14:31

Imagine bricks that absorb traffic noise! Joe Kirma’s innovative ceramic bricks use Helmholtz resonators to tackle low-frequency sounds, improving city soundscapes. These interlocking bricks let natural sounds like birds and conversation pass through while muting the roar of cars. Discover how this groundbreaking idea, which has already garnered over 1.2 million views, is transforming urban living. @Viral_Today / #Innovation

Hashtags

Bali News

@balinews · Post #460 · 11.07.2025 г., 12:36

👮‍♂️Modernization of the Indonesian police: robot officers undergo testing 📰 The Indonesian police have deployed the first test robots on the streets of Jakarta: a humanoid robot establishes contact with citizens, while a four-legged i-K9 searches for explosives and detects chemical leaks. 💸 The project is still in the testing phase, and the procurement budget has not been approved, but the basic version of the “electronic dog” has already been estimated at 3 billion rupiah. 🤝 If the tests are successful, the robots will become assistants in rescue operations and patrols in dangerous areas. #innovation@BaliNews

Hashtags

bcgincis

@bcgincis · Post #39 · 14.02.2018 г., 12:57

#innovation Стартапы с капитализацией более одного миллиарда долларов встречаются крайне редко и являются почти мифическими, именно поэтому их можно назвать "компаниями-единорогами". Константин Полунин, глава практики BCG по работе с государственным сектором, считает, что в России уже существует экосистема и финансовые институты, необходимые для появления в стране "компаний-единорогов", но нужно сделать еще ряд шагов, чтобы такие компании активнее появлялись в стране и не покидали ее. Российских "единорогов" пока немного, среди них - Avito и Telegram. Однако существуют и другие компании с большим потенциалом, способные стать таковыми. Узнайте больше о «единорогах» здесь: http://on.bcg.com/2Eo4hu9

Hashtags

🦾 Руфилмс помогает людям осваиваться в цифровом мире. Мы не только разрушаем языковые барьеры, но и преодолеваем физические ограничения. Смотрите, какие разработки мы представили на Всемирной выставке инноваций в Дубае 🧠 #rufilms#innovation https://youtu.be/fNW85QufJ_I

Car News

@car_news · Post #1060 · 04.03.2025 г., 14:03

📰BYD cars now have an on-vehicle DJI drone launch platform ℹ️ EV maker BYD unveiled “Lingyuan,” a vehicle-mounted drone launching system developed in collaboration with DJI that is available for all of the company’s vehicles. The system is only available in China, like BYD’s vehicles, and costs 16,000 yuan (or about $2,197). 📱 BYD’s video above has some real science fiction vibes: the driver taps a button on their vehicle’s touch screen, and doors slide open on the top of the car, revealing a rising landing platform with a drone on it. The drone is shown lifting off while the EV is in motion in some shots, then following the car down the road. @CarsNews #China#innovation

Car News

@car_news · Post #1120 · 21.03.2025 г., 20:04

🤖Robots have started working at the Mercedes-Benz plant 📰 The robots were created by the American company Apptronik. The German carmaker has invested tens of millions of dollars in this organization and now uses the robots at the Berlin-Marienfeld plant. ℹ️ Apollo's robots are used for internal logistics and are focused on repetitive tasks. For example, they can move components or modules to the production line, where skilled technicians assemble them and install them in vehicles. They can also be used for initial quality checks on parts. 🤖 The robots were trained by Mercedes-Benz employees themselves using teleoperation and augmented reality. @CarsNews #Mercedes#innovation

Viral Today

@viral_today · Post #2840 · 07.08.2024 г., 16:49

Check out Figure 02, the latest humanoid robot now working autonomously at BMW’s Spartanburg factory! This advanced robot features a 16-degree-of-freedom hand, onboard inference with VLM for speech-to-speech reasoning, a 2.25 KWh battery, and an exoskeleton structure with integrated wiring. Watch how it’s revolutionizing car manufacturing. @Viral_Today / #Tech#Innovation

123•••10•••20•••30•••40•••4344
ПретходнаСтраница 1 од 44Следна