Forwarded from Разработка игр 🍄
Отличная статья про дыры в дизайне игр, который позволяют игрокам получать незапланированное преимущество. Раскрываются типы таких дыр, а также способы их избежать.
https://devmag.org.za/2012/05/07/loopholes-in-game-design/
https://devmag.org.za/2012/05/07/loopholes-in-game-design/
Dev.Mag
Loopholes in Game Design
Loopholes: what they are, how to find them, how to fix them, and a big list of generic loopholes in games.
❤5👍3💯1
Forwarded from Технологический Болт Генона
TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!
How It Works
When you import a package that has a tariff:
1. TARIFF measures how long the original import takes
2. TARIFF makes the import take longer based on your tariff percentage
3. TARIFF announces the tariff with a TREMENDOUS message
Example Output
https://github.com/hxu296/tariff
import tariff
# Set your tariff rates (package_name: percentage)
tariff.set({
"numpy": 50, # 50% tariff on numpy
"pandas": 200, # 200% tariff on pandas
"requests": 150 # 150% tariff on requests
})
# Now when you import these packages, they'll be TARIFFED!
import numpy # This will be 50% slower
import pandas # This will be 200% slower
How It Works
When you import a package that has a tariff:
1. TARIFF measures how long the original import takes
2. TARIFF makes the import take longer based on your tariff percentage
3. TARIFF announces the tariff with a TREMENDOUS message
Example Output
JUST IMPOSED a 50% TARIFF on numpy! Original import took 45000 us, now takes 67500 us. American packages are WINNING AGAIN! #MIPA
https://github.com/hxu296/tariff
😁38❤2
#prog #article
What the Hell Is a Target Triple?
О том, что из себя представляет target triple (строка, указывающая компилятору, под какую платформу компилировать код), почему в так называемой тройке может быть четыре или два компонента и много ворчания на тему того, какой там беспорядок в плане именования. Go, как всегда, особенный.
What the Hell Is a Target Triple?
О том, что из себя представляет target triple (строка, указывающая компилятору, под какую платформу компилировать код), почему в так называемой тройке может быть четыре или два компонента и много ворчания на тему того, какой там беспорядок в плане именования. Go, как всегда, особенный.
mcyoung.xyz
What the Hell Is a Target Triple? · mcyoung
❤3👍3🤡1
#article
Collections: The Problem with Sci-Fi Body Armor
(thanks @al_tch)
Collections: The Problem with Sci-Fi Body Armor
...where real armors evolve against threats, fictional armors evolve as a visual language, borrowing the design elements of other fictional armors far more often than they dip into their own historical exemplars, with the result that the whole thing sort of devours itself.
(thanks @al_tch)
A Collection of Unmitigated Pedantry
Collections: The Problem with Sci-Fi Body Armor
This week we’re covering the winning topic from the latest ACOUP Senate poll, which is a look at some of the odd designs and mechanics for futuristic science fiction body armor, particularly …
👍3🤡1
Forwarded from Хреногубка
РБК. Новости. Главное
суд пристановил запрет на деятельность «Талибана»
Талибан — норм, а вот ЛГБТК — террористы-экстремисты!! Смотрите не перепутайте.
💯20🤡10👍3🤬1
#prog #rust
Хозяйке на заметку
Если вам нужно использовать множества в качестве ключа для ассоциативного массива, то BTreeSet из стандартной библиотеки реализует Hash (как и BTreeMap)
Хозяйке на заметку
Если вам нужно использовать множества в качестве ключа для ассоциативного массива, то BTreeSet из стандартной библиотеки реализует Hash (как и BTreeMap)
doc.rust-lang.org
BTreeSet in std::collections - Rust
An ordered set based on a B-Tree.
🤝12🔥4🤯4🤔1😱1
Нет ничего плохого в том, чтобы быть гетеро.
Хорошего, впрочем, тоже.
Хорошего, впрочем, тоже.
🤡27👌10😁4🤷3❤🔥2👎1
Forwarded from kosmonozhka
С праздничком всех, кто воскрес! Напоминаю, каким должен быть правильный кулич
#kosmonozhka
#kosmonozhka
❤10😐5👍2