The challenge:
Randomly distribute 26 cards to players John and Mary.
The game is played with a standard 52 card deck; no jokers!
The random distribution of cards does not need to be uniform, but must be able to theoretically simulate any combination of hands.
Simulate the game until there i...
@ATaco Two things, Does the A in your name stand for Australian/Aussie? and 2nd thing. A "<user> is typing" feature that shows if people who are using the script are typing
:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 17 2017 12:13:35)
Included patches: 1-95
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Ubuntu's packages can be pretty old, but for some desktop programs (like Vim) I'd much rather have the latest version, as newer versions often fix various bugs.
How can I get a reasonably recent Vim version on Ubuntu?
@JanDvorak you have no way of knowing this but stoning was (and still is) a method used to kill openly gay men. And I just so happen to be an openly gay man.
It is the year 2084, and the future NSA has just been hit with the biggest virus of its kind. Bananas in it's files. Create a program to remove every instance of the text 'Bananas' from a .txt file, the NSA's most secure file type.
CMC (really more of a chat mini-puzzle): Given ! and exactly one other character, create a JavaScript snippet that returns the number 1 exactly. You may use as many of your two characters as you want in the snippet, but you have to use them both.
Abbreviate that US state! was fun, but we learnt that efficiently abbreviating US state names is hard with the current system. Let's come up with an alternative state code scheme for efficient golfing.
Your task:
Write a function (or program) which, given a valid US state name (only the 50 n...
Idea: Start a Kickstarter for a fully modular laptop. Have a standard motherboard spec, a case spec, use MXM GPUs, have a customizable BIOS that you can flash, have socketed CPUs, make it all open source hardware
There are many magic squares, but there is just one non-trivial magic hexagon, as Dr. James Grime explained.
18 17 3
11 1 7 19
9 6 5 2 16
14 8 4 12
15 13 10
As it is done in Hexagony this is easiest written as just one line, by just reading it row by row:
18 17 3 11 1 7 19 9 6 ...
This is the sequel to one of my previous challenges, Three-Three-Three!
Write a program (or function, or snippet) that takes no input and produces an output according to the following four Conditions.
Both the program and the output must be written such that:
Four distinct characte...
Although deleted challenges sometimes get edited out for NewMainPosts, I don't see a reason to edit out closed posts, as some of them will be reopened and they could do with more views
Admittedly that one's a duplicate, so much less likely to be reopened, but it does happen
Anonymous
The only valid reasons to edit a feed bot's message is if the post it is oneboxing has recently been oneboxed, or if the post is spam or rude/abusive and gets red-flag deleted
Anonymous
11:07 AM
Anything else is unnecessary, and, in some cases, borderline vandalism
@Dennis Perhaps I worded it confusingly. You get two distinct characters, one of which is !, and you can use as many of each as you need (as long as you use at least one of each). It is possible.
@LeakyNun ^
So for example, !++!!+!++!+ might be a valid solution if you chose + as the other char (note: this does not work)
I have come across an article where students used network traffic to draw their university on the country's IPv6 graph. [image]
Your goal is simple to tell, but hard to implement. Draw the text MAIL (as it is one of the few words that can be read on a 1D graph) on the CPU graph.
It should look...
> You must follow the linearity of the example. (For M it looks like this: base %, then sudden increase to the specified max, fall gradually to a lower %, rise back to max and sudden drop to the base % again.)
but it is still subjective what is close enough to this to count
Using a language implementation or specification under influence of the user
See Covfefify a string. This might been solved in 45 bytes using:
select covfefify(:a) from dual@datadictionary
This does not use of previously shown loophole such as:
Using a made-up language specifically designed...
@KritixiLithos Oh btw, I've got some V news (2 different things)
1) I've found out the stupid G, gg issue with the reverse operator. It's a stupid vim bug, ugh
And 2) I've got a new command I'm very excited about. I don't have a name or mnemonic for it, but it'll replace a line with the number of matches of a certain (compressed) regex
@fergusq Hi, I had a look at your mafia implementation in Röda after it appeared in my GH feed. What does the path @http.handle "/cmd/new used for? Is it the path from locahost:port/ or is it the host computer's path? (I don't really understand anything to do with servers and stuff)
@DJMcMayhem then what would lowercase be? replace buffer with matches?
oh wait, it's the difference between buffer and line
Given a 7-segment display with some segments switched on and some off, find a sequence of digits (0-9), such that after toggling the corresponding segments for each digit, all segments are switched off.
Example
━ ┈ ┈
┊ ┊ ┊ ┃ ┊ ┊
━ [3] => ┈...
Output as many different characters as possible, in as few different characters as possible.
The two scoring criteria are: Number of different characters outputted to length of program, and Number of different characters outputted to number of different characters in the code
You can not use b...
@KritixiLithos @http.handle is an annotation that specifies that the method is a handler that handles all request made to a certain path. Like, if I go to http://localhost:25565/cmd/new, then the request is given to the specified method (handleNewGame), which creates a new game session.
<<>> is a pretty ugly syntax, but I couldn't figure out any better. <> is too hard to differentiate from less and greater than -operations and [] is used for subscript.
CMC: Name the most obvious bug on a popular app/program/site/service (one where devs are paid to fix bugs and should be aware of it) that amazingly has not yet been fixed.
@JanDvorak I doesn't have to be about SE. Could be anything. (I was thinking of how the CBS News app keeps playing audio without a notification after being closed.)
Ok, maybe not a treasure trove, but it's the one I know of :-D
Google products have no bugs, only features some people may not like. Those people who don't like the features are always in the minority, no matter how many of them there are.