Ранее я делал серию постов про битовые операторы.
Вот вам ещё один наглядный пример как это используется в Python в модуле re.
Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки.
pattern = re.compile(r"(\w+)+")
words = pattern.search(text, re.DOTALL)
А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как.
pattern.search(text, re.DOTALL | re.VERBOSE)
А теперь смотрим исходники, что находится в этих атрибутах?
Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево.
>>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]:
>>>
print(bin(n))
0b1
0b10
0b100
0b1000
0b10000
0b100000
0b1000000
0b10000000
0b100000000
Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули:
000000001
000000010
000000100
000001000
000010000
000100000
001000000
010000000
100000000
Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45
В общем, это пример применения побитовых операций в самом Python.
Теперь вы знаете Python еще немного лучше)
#tricks#regex#libs
#Dutch court sentences #Eritrea human trafficker to 20 years
A Dutch court on Tuesday sentenced an Eritrean man to 20 years in prison for operating a human trafficking ring in which migrants were tortured and their families extorted.
The court said the man, identified as Amanuel #Walid, had treated migrants "without any humanity" as they were transported from Eritrea to #Europe via #Libya.
"Your only aim was to earn as much money as possible from people who were looking for a better future," presiding judge Rene Melaard told Walid.
The court in the northern Dutch city of #Zwolle heard how gang members tortured victims while on the phone to their families in the Netherlands, demanding payments to make the abuse stop. Only once family members had transferred money were the victims put on rickety boats for the perilous trip across the Mediterranean Sea. Many drowned in the crossing.
https://www.facebook.com/AddisstandardEng/posts/pfbid0e9YqCpyLghyEouyA911hTeebioBPf4mTh4fVeBBchU9xr53T5qZURCXU8qW5ZQisl
Переводчики-редакторы со знанием иностранных языков
#удаленно#вакансия#crypto#tango
Katz Technologies LLC создаёт WEB3-экосистему (криптокошелёк, DEX, Memepad, Explorer) и ищем профессионального переводчика-редактора для проверки ИИ-переводов сайта и долгосрочного сотрудничества.
Не важны дипломы и громкие компании. Главное - чувство языка, ответственности и понимание crypto-контекста. Вы сразу видите искажения смысла, ошибки в терминах и роботизированный перевод, умеете быстро и точно доводить машинный текст до профессионального уровня. Важно чувствовать тон продукта, которому пользователь доверит деньги.
Мы предлагаем:
- Долгосрочный проект и сильный кейс в портфолио
- Удалённую работу и гибкий график
- Возможность влиять на продукт с нуля
- Бонусы за результат
Задачи:
- Проверка ИИ-перевода сайта (10+ страниц, ~5 000 знаков каждая)
- Контроль смысла и терминологии (Tier-1 приоритет)
- Исправление ошибок, кальки и неестественных формулировок
- Работа с готовым переводом (без переписывания с нуля)
Языки (один или несколько):
#German, #Swedish, #Polish, #Dutch, #French, #Turkish, #Spanish, #Portuguese
Обязательно:
- Уровень: C1+
- Умение быстро вносить точечные правки
Приветствуется:
Опыт в IT / crypto / fintech
Как откликнуться:
В ТГ: https://t.me/shillbert
Укажите язык(и), опыт и примеры проектов (если есть).
⏺Откликнуться: https://t.me/shillbert
➖➖➖➖➖➖➖➖➖➖➖
🪩 Откликнуться быстрее других
➖➖➖➖➖➖➖➖➖➖➖
🇮🇱🇳🇱#Dutch police confirm the #Israeli#football#hooligans started the violence in #Amsterdam
• Israeli hooligans march through the city centre shouting out racist chants, mocking the victims of Israeli #genocide in #Gaza
• Hooligans tear down #Palestine flags and burn them
• Hooligans ignore the minute of silence for the victims of #Valencia floods
• Hooligans attack Arab-looking Taxi driver
• Hooligans get attacked after the game. Taxi drivers join in.
• Western Media create usual (fake) "Isreali victim" myth and the usual fake "#antiSemitism" claims follow.
Jerusalem Post of Nov 5, states: "#Mossad agents among the Israeli hooligans" (also active-duty #IDF soldiers.)
https://archive.is/48eVN
The whole thing is #ZioNazi Theatre, created to put political pressure on the Dutch because
in June this year:
THE #NETHERLANDS STOPPED SUPPLYING #F35 SPARE-PARTS TO ISRAEL.
TWITTER FULLY EMBRACES "THE DARK SIDE"!
If you are a #Twitter/#X "Creator" your #UserData/ID will end up in the hands of #Mossad
#AU10TIX, the company that X/Twitter uses to verify its user's ID, is an Israeli company founded by members of Israeli intelligence units #ShinBet and #Unit8200.
The CEO, Ron #Atzmon, was a member of Israel's #CyberIntelligence unit 8200. His father was once the treasurer of the #Likud, #Netanyahu's party.
AU10TIX was founded in 2002 as the technology arm of a #Dutch firm called "#ICTSInternational".
ICTS international was established in 1982 ALSO by former members of Israeli intelligence unit Shin Bet.
This is an extreme security risk.
Not only will regular creators have to give their ID to a company with deep ties to Israeli intelligence, but PRO-#PALESTINIAN creators will also have to do the same.