Given year, month and optionally weekday of 1st, output the calendar of the month.
For empty cell, fill it with the date where it's supposed to be, in last or next month, and add # to indicate gray. If last few days can't fit in 5 lines, then they share last line with 5th week, use / to separate ...
ascii flood fill
You know the flood-fill tool of painting software: from a given starting point you go in all four directions and colour the all pixels that had the same colour as the starting point, then you repeat that with the newly coloured points until the whole contiguous area is filled (on...
okay so y'all know how google released that "Gemini" AI update to bard or whatever and that it's supposed to be smart?
> Stax: Released in March 2022, Stax is a stack-based language inspired by Forth and Factor, offering golfing-friendly features like implicit loops and data structures.
:thonk:
And upon me telling it "Stax was released way before March 2022", it doubled down on being incorrect
> You are correct. I apologize for the misinformation about the release date of Stax. My information was outdated.
Stax was actually released in 1960 as the first electrostatic headphone by Stax Ltd. I was referencing a newer language that coincidentally shares the same name, which was released in March 2022.
Thank you for pointing out my mistake. I will be sure to update my information and be more careful about the accuracy of my responses in the future.
I am trying to click on Login link of the webapp
http://eaapp.somee.com/
through zerostep playwright with the script "await ai('Click on the Login link in the header', { page, test })"
This clicks on the Register button instead of Login. How can I debug that what went wrong here?
I tried printing...
Write an irreducible proper quine, i.e. a program that prints its own source code, which can't be reduced by removing characters to a shorter program with the same constraints.
Eg. the python quine:
var='var=%r;print(var%%var)';print(var%var)
can be reduced to the quine
v='v=%r;print(v%%v)';pri...
A long time ago I posted a cops-and-robbers challenge in which I (perhaps foolishly) permitted unicode solutions but included the following rule:
You may use any Unicode characters for these, but please don't use whitespace, or symbols that are hard to distinguish from each other
Recently, it r...
Simulate a Plant Cell quine
As a plant cell, your program must undergo photosynthesis:
When input is 6CO2+6H2O+light in any order, output C6H12O6+6O2 in any order. (META: should it be any order?)0 bonus points for accepting subscripts/s
When the input is just r, replicate (i.e. output your own co...
Given a list of Integers greater than zero, Sort each of the unique values in ascending order, then repeat the process on the remaining duplicate values and append.
Example:
[1,5,2,2,8,3,5,2,9] ==> [1,2,3,5,8,9,2,5,2]