Вычисление выражений Python
Вы наверняка знакомы с eval, но знаете ли вы о literal_eval? Вряд ли. Для безопасного исполнения выражений, содержащих исключительно литералы, вы можете делать так, как показано на картинке выше.
Между прочим, данная фича находится в языке уже очень давно.
#tips#eval
Внутриигровые объекты с ИИ
Хотите сделать прототип объекта в нескольких вариантах? Например, для вашей RPG игры нужно отрисовать 4 разных вида зелий — для восстановления здоровья, маны, лечения отравления и лечения болезней? Измените цвет жидкости внутри бутылочек через простую связку SD + ControlNet
Ели вам привычнее работать с SD 1.5, то сгенерируйте ассет в SD 1.5 ноде (рекомендуем стиль Assets 3D, и добавьте в промпт "game asset 3d, octane render"), наведите на вашу генерацию в ноде и нажмите Recolor :)
А для более высокого качества рекомендуем использовать SD XL, подробные настройки в комментариях 👀
Готовые изображения можно использовать в UI в инвентаре предметов, например, или как референс для создания 3D моделей
#tips#pipeline
Внутриигровой контент + AI
Создаете мобильную игру с нуля и вам нужно ее наполнить контентом? Объедините свои креативные мощности с ИИ!
Показываем на примере карточек с блюдами в казуальной мобильной игре по готовке, какую часть работы можно уже ускорить с помощью AI (все они доступны в Phygital+).
Подробный воркфлоу с промптами и настройками в комментариях ➡️
#pipeline#tips
Проработка концептов с помощью ИИ
Создавать концепты с AI можно в отличном качестве, но большая часть работы также заключается в переборе разных вариантов. Рассказываем как просто создать новые вариации, меняя только определенную часть на генерации, например, одежду
1. Наведите курсор на любое изображение в Phygital+ и нажмите Inpaint
2. В появившемся окне справа закрасьте область, которую хотите изменить
3. Нажмите 'Mask + SD'
4. В появившейся ноде Inpainting введите, что хотите видеть вместо закрашенной области
5. Profit!
Pro Tip: если вам не понравился результат, попробуйте выбрать другой Styles и перезапустите ноду (кстати, на запуск есть быстрый шорткат Ctrl + Enter, который работает и на сразу несколько выделенных нодах)
#tips#pipeline
ChatGPT + MidJourney + ControlNet + 3D: как быстро создать персонажа с помощью ИИ
1. Попросите идею концепта персонажа у ChatGPT
2. Создайте изображения в MidJourney с предложенной идеей. MJ отлично работает с простыми промптами, поэтому вам не нужно добавлять дополнительные слова (Pro Tip: добавьте в промпт разрешение --ar 2:3 для лучших результатов)
3. Измените концепт с помощью ControlNet – можете поменять цвет или стилистику изображения
4. Посмотрите на полученного персонажа с разных ракурсов с помощью Rotate Object
AI прекрасно подходит для создания концептов, а с помощью нашего продукта вы можете объединять самые топовые нейронки в одном месте. Все эти инструменты уже доступны в Phygital+👀
#tips#pipeline
Брейншторм идей с ChatGPT + MidJourney + ControlNet
Создание идей может быть легким и креативным с Phygital+, где можно получить концепт ассета в высоком разрешении и в нескольких вариациях за 5 минут
1. Попросите у ChatGPT дать вам список идей по вашей тематике (например, 'give me 10 ideas of ingame rpg items')
2. Скопируйте одну из полученных идей и вставьте ее в ноду MidJourney
3. Подключите изображение из MidJourney в ControlNet XL и впишите любой цвет перед вашим промптом
4. Используйте Upscale для повышения разрешения
Больше не нужно переключаться между разными инструментами, все доступно в одном продукте. А еще мы принимаем оплату российскими картами, пишите, если хотите купить доступ :)
#tips#pipeline
📌6 Tips to be a Good Web Developer
1) Strict DOCTYPE
2) Keep Your CSS and JS Externally
3) Nest Your Tags Properly
4) Eliminate Unnecessary Div tags
5) Use typography with CSS
6) Don’t Overwrite Same Code again and again
🎓#HTML#Tips
@Coding_labs
20 Phrases Students Think Are Idioms (But Are Not)
➖➖➖➖➖➖➖➖➖
1. In my opinion – Literally states a personal view
3. At the same time – Means exactly what it says
3. At the same time – Means exactly what it says
4. As a result – Clearly shows cause and effect
5. On the other hand – A transition, not figurative
6. In general – Means “overall” literally
7. At the end of the day – Often literal or just emphasis
8. In the long run – Time-based, not metaphorical
9. According to – Reporting a source
10. In front of – Physical or spatial meaning
11. By the way – Discourse marker, not an idiom
12. For a reason – Straightforward explanation
13. In fact – Emphasizes truth
14. As soon as – Time expression
15. At least – Sets a minimum
16. More or less – Approximate meaning (not idiomatic)
17. In case of – Conditional phrase
18. From time to time – Literal frequency phrase
19. On time – Exactly when scheduled
20. As usual – Means “normally”
🚥🚥🚥🚥🚥🚥
#tips
#sirjimmy
#teamjimmy
How to improve english
1. Practice regularly: The key to improving any language skill is consistent practice. Make an effort to read, write, speak, and listen to English every day.
2. Expand your vocabulary: Learn new words and phrases regularly by reading books, newspapers, and online articles. Keep a vocabulary journal to track your progress. 3. Practice speaking: Find opportunities to practice speaking English with native speakers or other learners. Join conversation groups, attend language exchange events, or practice with a tutor.
4. Listen to English: Watch movies, TV shows, podcasts, and music in English to improve your listening skills. Pay attention to pronunciation, intonation, and word stress.
5. Write regularly: Keep a journal, write essays, or start a blog in English to practice your writing skills. Ask for feedback from native speakers or teachers to improve your writing.
6. Take English classes: Consider enrolling in an English language course or hiring a tutor to receive personalized instruction and feedback.
7. Use language learning apps: There are many apps available that can help you improve your English skills, such as Duolingo, Babbel, and Rosetta Stone.
8. Set goals: Establish specific goals for your English learning journey, such as passing a proficiency exam or being able to hold a conversation with a native speaker. Track your progress and celebrate your achievements along the way.
9. Be patient and persistent: Learning a new language takes time and effort, so be patient with yourself and stay motivated even when progress feels slow.
10. Immerse yourself in the language: Surround yourself with English as much as possible by watching English-language TV shows and movies, listening to English music, reading English books, and interacting with native speakers whenever you can.
🚥🚥🚥🚥🚥🚥🚥🚥
#sirjimmy
#teamjimmy
#Tips
"will not" or "do not"
1️⃣ “The car will not start”.
We use 'sth will not ...' to describe refusal or failure to happen, often for machines or people.
Meaning: The car is trying to start but fails to, or is refusing to work.
Example:
- “The printer won’t print.” → The printer is not functioning.
So, “won’t” is about an expected action that does not occur, often temporarily.
2️⃣ “This window is fixed and it does not open.”
We use "sth does not ..." to describe a permanent state or condition, not a temporary failure. Here, “fixed” means permanently secured in place, not broken.
Example:
- “The bridge is closed and it does not allow traffic.” → Permanent or long-term situation.
So, ”does not” describes a general truth or permanent feature, not a temporary action failing.
🚥🚥🚥🚥🚥🚥🚥🚥
#sirjimmy
#teamjimmy
#tips
Daily English Dose
⚡️ Idiom of the Day
Idiom: Bite off more than you can chew
Meaning: To take on more work or responsibility than you can handle.
💬 Eg: He bit off more than he could chew by agreeing to lead three projects at once.
⚡️ Phrasal Verb of the Day
Phrasal Verb: Come across
Meaning: To find something or someone by chance.
💬 Eg: I came across an old photo album while cleaning the attic.
⚡️ Vocabulary of the Day
Word: Consistent
Meaning: Always behaving or happening in the same way.
💬Eg: She’s consistent in her performance, which makes her a top employee.
Word Family:
– Noun: Consistency
– Adjective: Consistent
– Adverb: Consistently
🚥🚥🚥🚥🚥🚥🚥🚥🚥
#sirjimmy
#teamjimmy
#tips