> Using print() or println() on a color will produce strange results (usually negative numbers) because of the way colors are stored in memory. A better technique is to use the hex() function to format the color data, or use the red(), green(), and blue() functions to get individual values and print those.
New language idea: A standard-ish language (something like Python, JS, Java, or a similar lang) but with a Random type you can use anywhere a regular value is accepted, and it will choose a random valid value
@KritixiLithos I think you can do c&~255 to remove blue, c&~(255<<8) to remove green, c&~(255<<16) to remove red (as long as & is bitwise AND and ~ is bitwise NOT)
@Riker What if someone does a thing where they run different code depending on the argument, which contains the actual color-getting, and the "code" just runs the code in the argument?
Well, PowerShell can read a PNG as a .NET object. So, (I'm thinking) I can just loop through every pixel and re-output that pixel with $_.R*($input-eq'R') and so on, then save it back as a PNG.
I mean, I don't know if you grok C#, but you should still be able to kinda follow what it's doing. The example code is just setting every pixel to the red channel (rather than taking input), but still, lol.
Note: This is based on Two roads diverged in a yellow wood (part 2), a previous challenge of mine. Because of the popularity of that question and Two roads diverged in a yellow wood (part 1), I wanted to make a third. But the first 2 were too easy (a 2-byte answer on the first, a 15-byte answe...
currently I'm leaning towards yet (as it's analogous to programs doing the same thing, which affects their exit codes, and there are languages where it's an idiomatic method of output), but I'm not sure
You've got the main 3, where one of the types of cones don't work (R, G, or B). Then you have the ones where two types don't work. Then there's monochromacy, where you see in greyscale. Plus there are other types where the cones sorta work but not completely.
ASCII Arc Length: How long is a piece of string?
Given an ASCII representation of a piece of string, determine its length.
Input
An ASCII rendering of a string which runs from top to bottom, with one 'node' on each linear
#
#
#
####
##
##
#
##
#
Each line in the context of the ...
The most liked comment on that fundme page is pretty hypocritical in a way, though. After all, many Democrats' reason for funding PP is that abortion is going to happen anyway, but PP makes it "safer". It's the same logic
> ...But keep in mind: What this bill did was let them sell our privacy openly and brazenly -- and wholesale. They were already doing it under the table. The price just went down, because the racket was legalized.
> "I'm not an email person," Trump said during a July press conference in which he invited Russia to uncover and release Clinton's deleted emails. "I don't believe in it because I think it can be hacked, for one thing. But when I send an email -- if I send one -- I send one almost never. I'm just not a believer in email."
@AdmBorkBork I mentally pronounce it something along the lines of "s make sand-wich d in-stall" (and yes, "s" and "d" represent their sounds, not their names)
Suppose you receive 20 legitimate messages per day into your Inbox. On average, that means your spam filters are blocking ~2000 emails that would otherwise make it to you.
@ETHproductions At the current rate, I probably won't be a believer in email for much longer either, lol. Every account I create has opt-out vs opt-in, and they send me so much crap.
> Waka waka bang splat tick tick hash, Caret quote back-tick dollar dollar dash, Bang splat equal at dollar under-score, Percent splat waka waka tilde number four, Ampersand bracket bracket dot dot slash, Vertical-bar curly-bracket comma comma CRASH!
code-golfnetworking
Just another average accepted answer
Your challenge is to make a program or function that gets the average accepted answer from PPCG.
More specifically, you must do 2 things:
Find the average length of an accepted answer from PPCG (the whole answer, not just the code)
Ave...
(Excess output. Not all output will be shown)\n
1\n
1\n
2\n
3\n
5\n
(skip a few hundred lines...)
8.077637632156222e+307\n
1.3069892237633987e+308\n
Infinity\n
Infinity\n
(skip a few thousand lines...)
Infinity\n
Infinity\n
I
@HyperNeutrino Btw, your new code unfortunately doesn't work for the abcd\;\n _ testcase (at least on TIO it doesn't work). But the outdated TIO link works for that testcase. (I discovered this while trying to golf your code)
Perfect License Plates
Starting a few years ago, I made myself a little game while driving around: checking if nearby license plates are "perfect":
Rule 1
If the sum of the characters ('A' = 1, 'Z' = 26) is equal to the product of the digits, then we call the plate perfect.
Ex: AB3C4F
Digi...
I believe it's a widely acknowledged problem in this community that the number of meta posts a new user needs to know to figure out all the rules has long got out of hand. We require certain answer formats, allow a large (but not arbitrary) set of I/O methods, have certain standard loopholes, spe...