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

Резултати

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

Пребарај: #millennials

当前筛选 #millennials清除筛选
🦅 [ perspective ix ]

@perspectiveix · Post #1666 · 19.11.2018 г., 10:48

📺Video Works! Video marketing has been growing in popularity in recent times, and new statistics from a Brightcove study provide some reasons why that’s the case. Fully three-quarters (76%) of the almost 4,500 adults surveyed in the US, UK and Australia report having made a purchase after viewing a marketing video. The Brightcove report indicates that video holds even greater appeal among #Millennials, as 85% of 18-34-year-olds said they’d made a purchase after watching a marketing video. 🚀@PerspectiveIX via MarketingCharts.

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1645 · 08.11.2018 г., 10:00

🤝Trust in Brands & Influencers UK #Millennials are still more likely to follow recommendations from #SocialMedia influencers than the over 35s category, with 21% swayed by celebrity endorsements – compared to just 4% of over 35s. 🚀@PerspectiveIX - by SurveyMonkey via TheDrum. ❓Would celebrity endorsement influence your decision?

🦅 [ perspective ix ]

@perspectiveix · Post #1372 · 30.06.2018 г., 19:30

​​📱Facebook vs. Snapchat Which one is the most popular among Millennials? ❗️ Social Media Savvy #Millennials: the top 20% of all Millennial #SocialMedia and communications users (in the U.S., ages 18-35), based on the amount of time they spend per month with social media and communication brands. Stickiness is how Verto measures user engagement with a particular digital property, by comparing daily users to monthly users. Our analysis of the stickiest social media and communications brands among Social Media Savvy Millennials shows which social media platforms this subset of Millennials use on a regular (even daily) basis. Among Social Media Savvy Millennials, the stickiest social media platforms are still dominated by Facebook-owned properties: Facebook (90% stickiness rating) and Facebook Messenger (61% stickiness rating). And while Snapchat earns a 60% stickiness rating, its user numbers still lag well behind those of Instagram (55% stickiness rating). 🚀@PerspectiveIX ☕️prs.pctvix.co/2M8AAOb

🦅 [ perspective ix ]

@perspectiveix · Post #1271 · 15.05.2018 г., 19:30

​​📣The Power of Recommendations on Social Media Brand discovery is where peer-to-peer recommendations on #SocialMedia have the most impact – as much as 27% of #Millennials cite this as a way of discovering new brands. 🚀@PerspectiveIX Read more at https://prs.pctvix.co/2wH6rlb

🦅 [ perspective ix ]

@perspectiveix · Post #1580 · 03.10.2018 г., 08:00

​​📺Who’s Watching the Ads on YouTube? This week, #YouTube announced a new type of in-stream ad format, positioned as a new way for “advertisers to connect with their audience” by allowing viewers to move beyond mere click-through interactions and onto more complex transactions, like downloading an app or buying a movie ticket. According to Verto data gathered over the past year, men and Millennials spend the most time watching ads on YouTube’s mobile app. Men spend an average of 6 minutes per month watching ads on the app, compared to just under 4 minutes per month among women (and an average of just under 5 minutes per month for all users). Younger #Millennials (18-24) rack up an average of 9 minutes per month watching ads on the YouTube mobile app, which is nearly double the amount of time that older Millennials (25-34) spend with ads on the YouTube app. 🚀@PerspectiveIX via VertoAnalytics. 💌 Join Pulse Weekly ❓Have you watched a video on YouTube during last 7 days?

🦅 [ perspective ix ]

@perspectiveix · Post #1615 · 21.10.2018 г., 09:00

​​⚡️Generation Z & Their Love for Aesthetic Boards #GenZ is often referred to as one of the most unique, values-driven generations. They see identity as fluid and care about social impact, with 56% considering themselves socially conscious, according to #Pinterest. There are over 37 million aesthetic related boards on Pinterest, with Gen Z’ers searching for “aesthetic” 447% more than #Millennials. Through aesthetic boards like witch, grunge and love, Gen Z is finding their identity. - Witch Aesthetic +281%, 3.1X more than millennials - Grunge Aesthetic +262%, 6.3X more than millennials - Love Aesthetic +351%, 2.6X more than millennials - Art Aesthetic +353%, searching 3.3X more than millennials - Writing Aesthetic +241%, searching 7.0X more than millennials As Gen Z curates these boards to find their inner selves, they provide a unique look into emerging subcultures and passions. ❗️Generation Z or Gen Z, also known by a number of other names, is the demographic cohort after the Millennials. There are no precise dates for when this cohort starts or ends, but demographers and researchers typically use the mid-1990s to mid-2000s as starting birth years. There is little consensus regarding ending birth years. 🚀@PerspectiveIX via Pinterest . ❓When were you born?

🦅 [ perspective ix ]

@perspectiveix · Post #1502 · 27.08.2018 г., 08:00

​​🤳The Story of Stories According to a VidMob survey conducted among a thousand 16-24-year-olds in the US, #Snapchat (73%) edges #Instagram (70%) for consumption of Stories. However, the gap in #GenZ's content creation for Stories is a lot bigger on these platforms where Snapchat (58%) is way ahead of Instagram (39%). For #Millennials, however, the story is a bit different. According to the accompanying survey of a thousand 25-34-year-olds, they seem to prefer Instagram (58%) instead of Snapchat (53%) for story consumption. But just like their younger counterparts, Snapchat (34%) is their platform of choice when it comes to creating stories compared to Instagram (31%) or #Facebook (20%). 🚀@PerspectiveIX via MarketingCharts: prs.pctvix.co/2MTD6e9 ❓Where do YOU WATCH Stories?