Consider they are japanese, they probably do not know what emotions Comic Sans produces in the western world. And I do not think they have Comic Sans for Kanji.
Decimal to Troll
code-golf
Discworld Trolls have a unique number system. From Wikipedia:
Trolls have a numeral system of their own, based on powers of 4.
The base numerals are one (1), two (2), three (3), many (4) and lots (16), which can be combined to form higher numbers.
When...
Encoding program in Jolf, 46 bytes:
RΜGiEd+RΜGpq~Y~@H8'0Ed.["Helka","Homba"]H' '!S
Decoding program in Jolf, 41 byte:
RΜZhG~pAi["Helka","Homba"]"01' "E'!dpAΙHE
@AlexA. That's derivative work. The port must be licensed GPL; furthermore the original copyright notice has to be retained.
In a larger FOSS project, any part that has a sane (i.e. non-reciprocal) license will be restricted by the GPL parts, no matter how small their share is. One reason why GPL is misused by 99% of devs (it takes the "F" out of FOSS).
just watch a talk on Go, they have a fantastic model for concurrency
instead of mutexes, semaphores, and other various things, they use channels
bascially, instead of communicating over variables (which you have to lock and so forth), you can simply pass in values into a channel, where the other threads wait
Python's and on lists is logical: if either list is empty you get the empty list, otherwise you get the second list. While not often useful, it is much less surprising IMO.
I don't think so, it doesn't really make sense to do anything other than what it does. Since you can define truthiness you can always make it behave the way it should.
There should be only one way to do something. If to do or look up something I have to go through a huge list of "in this case foo does blah but in this other case foo does asdf" then I'm going to be unhappy :P
But then why does zip exist? The point isn't that and does more than one thing, it's that there are two ways to do something that have no meaningful difference.
This is pretty much ready for posting I think. Only question is whether to put a loose time limit on answers (e.g. a minute for any of the test cases):
Find a leaper that can move freely on the board
code-golfgridgraphs
This could use a catchier title...
I recently got a really weird irregular chess board. It's squares are all over the place and not even all connected. At least they're still laid out on a regular grid. I want to adapt the che...
@PhiNotPi Oh, I actually think I misread your question. I don't think there is a way to do it for any arbitrary ring? But again I don't know much about it, sorry :P
For this challenge, you need to print out the fingerings for various brass instruments.
The notes an instrument can play (as well as their fingerings) are listed below:
Cornet Baritone
Trumpet Bugle French Horn Euphonium Tuba
A#0 ...
Based on Chunky vs. Smooth Strings.
Squiggles /\_/\/\__/\/\/\/\_/\_/\ are fun to make on a keyboard when you are really bored. But not all squiggles are created equal. Some squiggles are smooth, like \___/, and some are chunky, like /\/\/\/\. Others are just downright broken, like ////_\\\
I...