

Im think it was designed with a clock in mind. That’s why it starts with north at the 12:00 position and goes clockwise. I learned it as ‘Never Eat Soggy Waffles’ but I’m sure there are a bunch of these.
Im think it was designed with a clock in mind. That’s why it starts with north at the 12:00 position and goes clockwise. I learned it as ‘Never Eat Soggy Waffles’ but I’m sure there are a bunch of these.
Theoretically the electorals could go blue without winning any districts. It would require a third party to win at least one district though.
Unity actually gives any class with the name GameManager a special gear icon. You cant just forgo the cool gear icon!
(Its not too terrible from an organizational standpoint because most of the scripts are attached to game objects. MonoBehavior is a component of GameObject. For instance, you’d never have player movement in the GameManager class, you would put it in the component class attached to the player character GameObject.)
I actually use one of these for work. It fits comfortably in my pocket and don’t burn my fingers when I have to light up a bunch of sterno burners.
Bit hacker 2 is really fascinating. It uses a bit mask of all 1s (-1) or all 0s (0) and takes advantage of the fact that y ^ (x ^ y) = x and y ^ 0 = y
Because you could argue that the series converges to …999999 in some sense
You can also prove it a different way if you allow the use of the formula for finding the limit of the sum of a geometric series on a non-convergent series.
Sum(ar^n, n=0, inf) = a/(1-r)
So,
…999999
= 9 + 90 + 900 + 9000…
= 9x10^0 + 9x10^1 + 9x10^2 + 9x10^3…
= Sum(9x10^n, n=0, inf)
= 9/(1-10)
= -1
Wasted? No Nutella was wasted in coating every surface. If there was any left over I’m sure he would have lathered another coat on. /j
There are only 4.29 billion possible values of an int32, so even if you used 2 lines for each case, it’d still be under 10 billion lines of code
bool isOdd(int num) { if (num == 1) { return true; } if (num == 2) { return false; } if (num == 3) { return true; } … }