@Fmbalbuena \z only ever matches at the very end of the string. \Z is the same as (?=\n?\z). $ is the same as \Z unless you turn on multiline mode, in which case it's (?=\n|\z).
This challenge is one of the two challenges which were planned for Advent of Code Golf 2021, but didn't fit into the 25-day schedule.
Related to AoC2020 Day 24, Part 2.
Given a binary configuration on a hexagonal grid, output the next generation of Hexagonal Game of Life using AoC rules:
A livi...
[1], [2], [1, 1], [3, 2] Sequence
Challenge:
The sequence starts with [1]
And multiply by the reversed indices plus one.
And make an extra list containing 0 length of the list times.
If the number is greater than reversed indice plus two, then modulo by indice plus two, add number integer divided...
@cairdcoinheringaahing I agree with the comments there, especially the part that the task as-is may be unsolvable. How about a code challenge (tiebreak code golf), where you write three programs but overlapping properties are not counted, and the count of properties covered is the main score?
@Bubbler I don't think this should be starred, Fmbalbuena's message seems pretty clearly to be unintentionally rude due to a language barrier/misunderstanding.
Although I initially read it as "I said implement!", like a demand, on second read it seems more like a bad translation of "I meant implement"
How to solve limits: Roll a d6. If it is 1/2/3 then the answer is 1. If 4 then the answer is infinity. If 5 then the answer is 0. If 6, toss a coin. If it is heads, the answer is e. Otherwise, surrender.
Let's say I've got a list (or array) of:
l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
I want to get the Cartesian Product of the above list, where every sublist would have 3 elements.
Then I want to filter and only keep the sublists where the sum of that sublist equal to the maximum value of the list.
Th...
@PyGamer0 i think it's recommending that you override __eq__ when making a subclass with new attributes (which should either be considered when comparing equality or consciously ignored)
@UnrelatedString although that's stupid in this case, because __dict__ obviously doesn't need to be compared (in fact, it would cause infinite recursion). @PyGamer0 just ignore that one
i don't see there being a contradiction with wanting to license your code to not be able to be taken while also not being opposed to it being publicly visible
If a repository has no license, then all rights are reserved and it is not Open Source or Free. You cannot modify or redistribute this code without explicit permission from the copyright holder.
I'm unsure of the legal implications of actually pulling the source local and building/using the softw...
hmm, i see. okay, so that seems to line up with what the TOS says about being able to use and display your code under the limitations of github's functionalities
oh well, i don't care enough about code review to deal with licensing; if i needed my code looked over i have people to ask lol
> Unless you include a license that specifies otherwise, nobody else can copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), “nobody” starts including you.
If you ever were bothered to add a license, I'd suggest the MIT license. From choosealicence.com:
> The MIT License is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions.
Fun fact: github can add a licence to your repo for you if you go to the insights tab and then go to the community section
Unicode defines the meaning of each code point, but not their exact look (even though there is a reference rendering, but fonts definitely don't have to follow that).
E.g. a font can choose to render every character as a box with the code point number inside. That's perfectly valid, and some fonts do this.
@graffe What you do is say "Print a random Unicode character that neither has the White Space property nor is in the Unassigned category", but you should also specify which versions of Unicode are acceptable.
The goal is to implement objects that behave like cout, cerr and endl of c++. I.e.:
Objects of types that can be explicitely or implicitely converted to strings can be written to the cerr and cout objects using the left shift << operator.
Writing to cout writes to STDOUT, while writing to cerr w...
@hyper-neutrino Yeah, by default you own any code you write (unless it's specified in something like an employment contract that the company you work for does). In order for anyone else to have any rights to do stuff with it, you need to explicitly give them permission, and a license is basically just that but available to everyone.
Oh wait like ten other people have already replied the same thing lol
It seems that people reference is without directly quoting it quite often, which is probably responsible for it feeling much more commonly referenced than the numbers show (plus they're a tiny bit out of date, so it's been quoted twice more since then)
So it's actually tied for third, since every spot below first is extremely close
But I am glad they called me, since I forgot to turn my alarm on and that woke me up at the usual time it's set for (though I didn't answer of course, since it was some random number in Ontario)
If a function is allowed, it's not obvious to me whether it should be tested by multiple function calls in one run, or re-executing the code and calling the function once each time. The first seems much easier to accomplish. — xnor23 hours ago
@pxeger Click the options menu next to the tag badge in your activity page to show a list, or if a tag badge isn't showing, then switch from tracking the next privilege to the next tag badge