Task
Your task is to write a program that will output ASCII boxes at the locations specified by the input.
Input
You will be given a list of numbers. The format here is a bit flexible, in that you can use any deliminator you want (e.g. 1,2,3,4, 1 2 3 4, [1,2,3,4], but not [[1, 2, 3, 4], [5, 6,...
Make a string twister
code-golf
Task
Create a string twister that works on multiple inputs.
How strings are twisted
The twisting algorithm is very simple. It takes all but the first char in the string and moves it down onto the next line, with each line below it shifting down, except the ver...
IPv4 addresses are 32 bits wide, and thus the size of the address space is 232, or 4,294,967,296. However, this is only a theoretical upper-bound. It is not an accurate representation of all the addresses that may actually be used on the public internet.
For the purposes of this challenge, it ...
@ThomasKwa I remembered that TI-BASIC had a identity built-in but I couldn't remember if it was one or two bytes. Definitely a nail chomper there when I saw you come online :P
Looks like it is one byte but you need another for the input anyways
Windows batch polyglot/hybrids challenge with any language possible
/* I need some help to refine my challenge */
As the batch scripts are pretty limited, hybrid files that embed a code from another language into a batch file are used a lot lately.
Though usually there are some requirements fo...
There is a task to receive the word "Hello", printed like :
hello
This is my solution:
public class Hello {
public static void main(String[] args) {
String a = "* * ";
String b = "*****";
String c = "* ";
String d = "****";
String s = " ";
String p1 = c+c+a;
String p2 = a+b+s;
String ...
Does Bob's answer deserve an upvote for being indirectly useful?
How you spend your votes is entirely up to you. If you had been unable to find the answer because you didn't know the right keyword to search for, that answer might be just what you needed. If you already knew that you needed t...
The other three people that answered my question all started the same way. "How you vote is up to you"
Not that anyone answered my actual question in that post: is an answer that solves your problem but only after you leave Stack Exchange to do more research "useful"?
@quartata Here is your "pixel" function, until I actually implement it: ΎyGHSyg1ys. Put your two coordinates after the expression, then call again with Ύ<1><2>.
@Dennis If you ask what the right reasons are nobody will answer you, as shown by my earlier linked question.
Maybe their assumption is that if you care enough to ask on meta, you don't need help, and if you don't care, then you aren't going to read anything on meta anyway.
A while ago I was having trouble with a Linux syscall not working like I wanted it to. I tested it and reread the man page millions of times before I finally could notice the relevant line.
@ETHproductions u ndz to cnstrct nxn eye mtrix gvn n as inpt in a fw btes as psible. eye mtrix iz mtrix with digonl of 1s and teh rst 0s. cde glf lol glhf
Take a look at this chamomile flower:
Pretty, isn't it? Well, what if I told you that this wasn't actually one flower?
A lot of flowers (including sunflowers, chamomiles, daisies and others) actually consist of many very small flowers (the black dots on sunflowers) on a flower head. These min...
English is my first language, too. It's horrendous. (And really my only language, yay America. I mean, I know a little bit of Spanish and a little bit of Russian, but haven't used either in 15+ years)
@Mego Not sure how you place the shortened-syntax-v-another-language line between TeaScript and Japt... And Jolf is pretty much the Pyth of JS, being prefix-based and all.
The only Russian I really remember from class is, as a class, we read out loud to the group One Day in the Life of Ivan Dinisovich ... one person would take one day, another person the next, etc. Took us several weeks to get through it, but it was a really amazing experience. My first (and only) time reading something in another language not a textbook.
@ETHproductions It was the opposite for me :P It was going to be postfix but functional during design and turned into basically stack-based during development
Anyway, I think I'm leaving Japt for a little while to work on this new language that I'm scratching out the spec for now. It's called Crayon, and it's designed to be killer at ASCII-art challenges.
@Dennis Thanks :) I thought of it as I was going to sleep last night, then wrote it out as soon as I woke up. Fortunately, it was pretty golfable after the initial 51 bytes. (Apparently, I don't golf well in my sleep.)
Japt, 41 37 35 34 bytes
I finally have a chance to put ¾ to good use! :-)
55*2pU¬®-1¾ª"C#D EF G A B"bZ /C} x
Try it online!
How it works
// Implicit: U = input string, C = 12
U¨ } // Take U, split into chars, and map each item Z by this function:
-1¾ // Subtract 1.75 f...