I think the worst part about trump is that he poorly represents conservatives, so we will have democrats for 50 yrs after his presidency. That's not good, I'm a republican. So I would go with Hillary to save the GOP. Disclaimer: 14 I can't vote
@AlexA. I don't like her at all. only reason would be to save the GOP. And she would go to prison / get impeached over bengazi, so we would have her vice president
Create a bootloader that executes given Brainfuck program. This is code-golf, so the program with least bytes wins. Being a bootloader, the size of the program is counted in non-zero bytes in the compiled code.
Brainfuck
30000 8-bit overflowing cells. Pointer wraps over.
Some notes about opera...
So, I'm working on my crafting game, and I'm wondering what the best object-oriented way to store recipes. Consider a iron + stick = iron pickaxe recipe. There's a Recipe object (or giant static data structure) that describes what the ingredients are and what the product is. But, I think there also needs to be a way to have a single "instance" of a recipe: something that can contain the "actual" reactants and has an "execute" method.
@PhiNotPi I think I got it. Create a Map<Ingredient, Set<Recipe>>. When given a list of ingredients, return the intersection of all of the returned sets
I found a puzzle that I was unable to solve. Given an alphabet A-Z. Determine the shortest possible regular expression that accepts all strings that do not contain a substring KORONKORKO. One should use only letters A–Z, [, ], -, ^, , ?, *, +, |, and ( and ). I think this can be done with 118 cha...
Triangle Rasterization
I don't know if this is the right word for this, but here goes...
Given a triangle with a height and a width, you can convert it into squares by counting any square that the triangle occupies as a whole square. Your task is to calculate the area of this 'rasterized' trian...
@HelkaHomba I believe that youtube reencodes everything, no matter what you give it. That could explain the difference in bitrates from your file and theirs.
@QPaysTaxes Oh, sed ... durr ... I don't have sed ... I just blindly copy-pasted it into regex101.com and hit "Go" ... Like I said, not the greatest (not even the goodest) at regex
@PhiNotPi Hah, considering the whole system, that's true. Just that pro/con part though, will make your crafting system somewhat more flexible than Minecraft's.
@HelkaHomba But that doesn't say they don't encode it down afterward. It's just a recommendation for uploads (possibly even taking their reencoding into account).
Introduction
Turns out, aliens love memes just as much as we do. Every alien race we've encountered so far has their own version of 2spooky4me (see the following question) and equivalent, though, with some variation. The inhabitants of planet CUTE1f can't handle a lot of spook, so their preferre...
Columnar Transposition Cipher
While I have plenty of programs I have written for more advanced ciphers, I just realised I don't actually have one for one of the simplest: Columnar Transposition. The cipher, in case you don't know, works as follows:
First, you take the key, and write it as numb...
@Zgarb First, does "koronkorko" mean "compound interest," like in finance? Also, can you take a look here and tell me if it says anything about their policies for reproducing content elsewhere with attribution?
@AlexA. I think that's better. Not sure if it's ready for a reopen without some test cases, and 118 characters seems pretty generous, so I wonder if we're still not missing something due to a (spoken-) language barrier
@TimmyD I think the test cases would just be "does this contain the string? yes, okay then don't match otherwise do" (sorry for the re-ping I got that backwards lel)