@ASCII-only I'll check it out more thoroughly when I wake up. I'm not sure if UTF-8 is a good default though. The most popular languages on TIO all use al 1 byte per character encoding.
@Dennis You commented on codegolf.stackexchange.com/a/84649/32686 about the answer being invalid. It's been a while now - would it be ok to (a) edit the answer so I can change my upvote to a downvote (b) tell the OP that the answer could be bad (c) flag it as invalid?
Write a program that counts and prints the number of characters in it's own source code to standard output.
The number must be generated from counting the characters.
This Ruby solution would not be allowed:
puts 6
because it is not calculated. Spaces, tabs, new lines, etc should be counted...
Vim, 78 68 78 79 61 keystrokes
Completely changed my approach:
oo/\$kjxd<esc>/o<cr>xj$/\/<cr>xj$/\\<cr>xj$/$<cr>xj$/k<cr>xj$/x<cr>xj$/j<cr>xj$/d<cr>xkdd
How it works:
First, it makes a line with all the program characters, then, it finds the first instance of each of the program characters, ...
why on the protected question thing there is posting an answer now requires 10 reputation on this site (the association bonus does not count).? i can post a answer on a protected question even with only the assoc bonus
@TimmyD Me too. I don't think I ever read the Redwall series in order, but I do think I've read most of them. My favorite animals are the otters and badgers.
Number Plate Golf: Parsing
code-golf
Introduction
You've now been taken off the speed camera development team (let's face it, your code nowhere near production code standards) and are now working on a program to extract information about the car from the number plates. Of course, you've caught...
Pyth, 50 40 31 25 bytes
j@s.u,J+*\-K+2lheN+jR*2;eN*\-KjR"||"+*dK+J*dKQ]]\|
LXR"|-")CbjyW%Q2uy+K*\-+2lhG+jR*2;GKQ]\|
juCGQuC+K*@"-|"H+3yH+jR*2;GKQ\|
j@CBujR*@"-|"H2CjR*2;GQ\|
Test suite.
Explanation
This is a recursive algorithm.
In each iteration, we perform three actions:
prepend and ap...
"Usage of recordings outside of the podcast are prohibited." Does this mean I can't allow you to my recordings elsewhere? Logically no, but I wanted to check
Implement this key cipher
Goal
Use the algorithm (explained in the Algorithm section) to implement a certain cipher.
The program must read input from STDIN or the closest available equivalent, use the algorithm to generate the ciphertext and a key.
The ciphertext and the key will be written t...
Speaking of noisiness, my lodgings near the university may be noisy in the evenings. That's why my time for Wednesday is lowest-ranked in my preferences
@Sherlock9 I can deal with noise. And echo. Basically everything. It's better to have a better environment and recording hardware, but please don't completely base your timeslots on that.
I put this avatar on my Google account back in (I think) high school. When I made a SE account through Google I couldn't think of a name so I went with the picture
@TimmyD Yeah, I figured a lot of people would say something like that. Most of the mods. But some people have interesting names that aren't obvious so...
Anonymous
@DJMcMayhem I think I may have had a part in that. I kept crediting his golfing suggestions as "Kenny Lau" because I just read "Ke--- Lau" :P
Anonymous
I didn't even realize we had a Kenny Lau and a Kevin Lau until he changed his username
> Formerly Kevin Lau, then Kevin Lau - not Kenny to avoid confusion with user Kenny Lau. Now that Kenny is "Leaky Nun" as an anagram, my display name is now an anagram of my own name.
Changing your username to fit a username dependent challenge
Changing your username or registering a new one to make your score better in username or userID dependent challenges.
@DJMcMayhem My online gaming handle is (slightly) more interesting. A bunch of friends and I were having a LAN party about 8 years ago or so, playing Silent Hunter at the time. This was right around when The Muppets started re-gaining popularity, and one of us found the Swedish Chef/Chacarron remix (which is hilarious), playing it on loop. By one of us, I mean me. Since we were doing naval battles, I temporarily changed my name to AdmBorkBork ("Admiral Bork Bork"), but it wound up sticking.
@ReleasingHeliumNuclei @DJMcMayhem I dunno where Beta Decay came from... I have a Feynman Diagram of beta decay on my wall, so I guess I got it from that...
I love the weird scenarios he ends up in and how he overanalyzes everything. Like counting while reading vs counting while talking. It's fascinating, but also funny and relatable
The Challenge
My challenge for you is to create a program which looks at the filename of a .txt file which is in it's directory and based on that, it will render a 3-D shape.
IE: program reads sphere.txt's filename then it renders a sphere.
Rules
The program must render the shape.
No textures...