Interweaved quine
Your task is to make a quine, that when the quine is copied n times, it generates the same quine that has its characters duplicated n times in place.
So if your program is
Derp
This must be a quine, i.e. it must output
Derp
If your program is copied so that there are two...
CMC: Find an origin for my chat name (if there is one)
import sys
def pyramid_exec(in_code):
code = in_code + []
start = -1
prev_result = -1
result = -1
for a in range(len(code)):
if code[a][-1] == "<":
if start != -1:
print("Error: Too many start counters.")
sys.exit()
else:
start = a
code[start] = code[start][:-1]
while result == -1:
current = code[start][-1]
code[start] = code[start][:-1]
if current == "0":
if start == 0 or len(code[start - 1]) == 0:
Yes, the one who apparently secretly faked their name. And I dunno who they're working for. I think it's the same DoorHandle, judging by the avatar, so it must be either a sock or just needs to be migrated.
@Sp3000 It would have been an insult to me. Fortunately, I don't have any sock (or planning to make one). I might make a secondary account though (no vote cheating or anything).
I find it weird how people constantly fall back to the "promotes a product or service" definition of spam in a few certain situations, when in general usage, it basically just means "pure noise".
The meaning of "respectful" is more broad here. More synonymous with "constructive".
Also, imagine you're discussing some topic with friends over dinner at a restaurant, and some drunk guy staggers over and starts spouting nonsense. Wouldn't you say that's "rude"?
From the Arqade Tour: This site is all about getting answers. It's not a discussion forum. There's no chit-chat. That means that chit-chatting with your friends is probably different than SE's Q&A.
Inspired on Positional Awareness
code-golf Positional awareness: inputs
Write a non-empty program/function p that, given an input string s, outputs the position of the first occurrence of each character of s in the source code of p. The result can be either 0-based or 1-based.
For example, if ...
Almost six years ago, fellow PPCG member steenslag posted the following challenge:
In a standard dice (die) the numbers are arranged so that opposite
faces add to seven. Write the shortest possible program in your
preferred language which outputs a random throw followed by 9 random
tipp...
Positional Awareness
Your task is to generate a program that, for every permutation of its characters (which includes the original program), outputs the positions of every character relative to the original program.
If your program is
Derp
you must output
[0, 1, 2, 3]
(or some equivalent)...
@Dennis Oh, so you finally woke up? Yeah, from hours ago, I wanted a mod to 11 my name (as I had promised to El'endia Starman a few days ago). Could you 11 my PPCG name (not network-wide) to Erik the Outgolfer, please? (If it's applicable at all)
I have no issues with removing the extra characters from your name, but changing it to something entirely different should wait until the 30 days are over.
I love how my "Output the sign" answer in COW has by far the largest bytecount (one of two solutions in excess of 100 bytes, the only in excess of 200), but it has 10 upvotes.
COW, 225 213 bytes
oomMOOmoOmoOmoOmoOMoOMoOmOomOomOoMoOMMMmoOMMMMOOMOomOo
mOoMOomoOmoOmoomOomOoMMMmoOmoOmoOMMMMOOOOOmoOMOoMOomOo
mOomOoMoOMMMmoOMMMMOOMOomOomOoMoOmoOmoOmoomoOmoomOomOo
mOomoomoOMOOmoOmoOmoOMOoMMMmOomOoMMMmOoOOOmoomoOOOM
Try it online!
The way that this code works is that it de...
@ErikGolferエリックゴルファー It's not that I don't want to, but making these exceptions leads to more people asking for exceptions. The time limits exist for a reason, and I don't want to undermine that.
So, just to confirm, I should remove the Japanese characters, yes?
Yes, please remove Japanese characters (they were added before the ASCII-name trend). I'll change the rest in 2 days. of course don't change the rest by now if that's gonna make TNB noise, I've already had enough for 2016 for my ears.
The nutty maths professor wants to encode all of his research using a system sure to fox even the wiliest of his competitors!
To this end he has decided to change the base of not just the number that he's writing but every single digit in that number, according to which place the digit finds its...
I think I accidentally pre-golfed some code I just wrote. The first line is what I wrote first and then I wrote the second to see if it was shorter. Turns out to be longer by 4 bytes. (The golfable spaces in both lines are enforced by the linter.)