I have a dataset, basically around 100k images created by a captcha script, and I'm not sure if splitting them to each character or directly naming them would be better for training.
Can you give me a path of the goat silhouette? I did my own from the raster version but the resulting polygon wasn't quite right since some points were out of order
Challenge
Implement a program that given three strings a, b, and c, substitutes all instances of the substring b in a with c.
In other words, implement Ruby's String#gsub (a.gsub b, c).
Rules
Standard loopholes apply.
You may not use a builtin that replaces substrings, such as the aforementi...
> If that MLK Bust could talk: "What the fuck is he doing here? Who invited this asshole?! A-A-America?! What do you mean he is the next President?! Wait a second, y'all assassinated me and let this asshole live? Then, voted him into the White House? This is some bullshit! What do you mean Obama's leaving?! I gotta share the White House with this dickhead?!"
Oh for heaven's sake. I don't mind the off topic chatter and occasional nonsense, but the wild accusations, star spam and gaot... whatever-it-is are a bit too much.
@Maltysen i don't think its a great idea to write the entire challenge in smallcaps, since many devices aren't able to render a wide range of small-caps characters
Wanna know how I got here? NPM wasn't installing packages in correct dir so without thinking I did what an SO answer proposed and did chown vihan:vihan /usr/bin
another SO answer was stupid and told to do chmod -R 777 /usr/bin and yea
This challenge is inspired by this other challenge, which you may want to read first for some context. However, a competitive answer is likely to look very different, so after reading some posts on Meta I decided it was best posted as a separate question.
The goal here is to write a polyglot pro...
@trichoplax It seems unclear from the title, but the spec itself is pretty detailed, I thought. My top two concerns about it are 1) it's a "Do X without Y" challenge and 2) it looks very difficult to write an answer that fully complies with spec.
@Qwerp-Derp Define the syntax, how you want it to look and behave, how to handle weird corner cases. Then look into either writing a parser or using a parser generator.
If you keep the grammar relatively simple, using a lexer/parser generator could be a nice way to get going faster.
hmm, I posted a challenge based on another challenge, and tried to be as clear as possible, but I got an "unclear what you're asking" close. It's unclear to me what's unclear about the challenge; how can I ask for more information from the close voters?
> Deleting any non-whitespace character from your program must cause it to fail to function in every language. Your program may not read its own source.