Share your repls and programming experiences

← Back to all posts
"Animated" ASCII Cactus
h
CodingCactus (2193)

Dancing Cactus


The most beautiful thing (a cactus (obviously)) can now be endlessly shown in front of your face.


Enjoy

Commentshotnewtop
Bookie0 (1762)

3 hourzzzzz later
I’m afraid I lost count; I was at about 1270 I think
Lol it’s cool
edit: thanks for the 7 upvotes!

CodingCactus (2193)

@Bookie0 lol, should be 3*3600/0.5 times I guess

Bookie0 (1762)

Ok..... you actually did the math but I m too lazy to do it 😂 @CodingCactus

Bookie0 (1762)

hey, would you pls visit this cool repl i just made, and gie me some tips and [email protected]

thanks so much!!!
:)

https://repl.it/talk/share/Da-ULTIMATE-LOVE-Calculator/34866

AmazingMech2418 (463)

Great job! I'd recommend using sys.stdout.write instead of print though since it is faster and also, I'd recommend using "\n".join(cactus) to put the entire ASCII cactus into one print function for speed as well. I did it in my fork if you want to see what I mean https://repl.it/@AmazingMech2418/ASCII-Cactus .

AmazingMech2418 (463)

@CodingCactus Though, now you should try and get the CEO of Repl.it to do this version in BASIC!

Highwayman (1251)

@AmazingMech2418 hum I can’t tell whether this sarcastic or not lol

CodingCactus (2193)

@AmazingMech2418 thanks, I have done that now and it is nice and smooth

AmazingMech2418 (463)

@Highwayman Well, I thought since the Repl.it CEO did @CodingCactus 's main logo in BASIC, maybe he could do this version too. I didn't know he already did it.

AmazingMech2418 (463)

@CodingCactus Did you notice that two out of the three trending repls are yours? When the Repl.it CEO made a post with your logo, you were just famous. Now, you are ultra famous. About as famous as you can get on Repl.it. LOL!

AmazingMech2418 (463)

@CodingCactus Also, it was just like yesterday when you got to 500 cycles and now you have 604...

AmazingMech2418 (463)

@Highwayman Remember the thing I was doing trying to see all of the Repl.it languages not in the official list? I figured out why it wouldn't work... Repl.it has request rate limits. I ended up getting an error saying that access was denied to my IP address... Do you have any idea how to bypass the rate limits or at least do you know what the limit is so that I can slow down the program to not go over?

Highwayman (1251)

@AmazingMech2418 sadly no. I have no idea what the limit is or how to bypass it.

AmazingMech2418 (463)

@CodingCactus I don't know how to do that... I just want to see all the languages Repl.it supports!

CodingCactus (2193)

@AmazingMech2418 i dunno, do you get a new ip every time you go on the internet?? If so can you do a run until you get bolcked (save stuff in file) then go off internet, then run again from where you left off?

CodingCactus (2193)

but i have no idea :(

AmazingMech2418 (463)

@CodingCactus Do you have any idea what this means though?

I was doing it on a repl and then this happened after I tried to incorporate a proxy.

AmazingMech2418 (463)

@CodingCactus I was doing https.get instead of url-exists.

CodingCactus (2193)

@AmazingMech2418 i don't know node, but i'll look because most langs are kinda similar

AmazingMech2418 (463)

@CodingCactus I got it to work again, but now it is showing a 404 error for everything...

xolyon (332)

Nice, should be your profile pic

CodingCactus (2193)

@xolyon thanks
nah, i like my current PowerPoint one

Jakman (164)

This is cool but you also could have just wrapped the art in comment strings -> """ art """ and this would have treated the art as strings while also exiting backslashes easily.

CodingCactus (2193)

@Jakman ok, I am not aware of "comment strings". so that's why I didn't use them

Jakman (164)

@CodingCactus yeah thats cool. They are used to make multiline comments. They also happen to be treated as strings so they can also be formatted and printed.

CodingCactus (2193)

@Jakman oh, ok cool. thanks for enlightening me

Jakman (164)

@CodingCactus no problem. U wrote a bunch of quotes when you only needed one set of comment strings. I dont want people to waste their time.

LiamDonohue (273)

So Beautiful It Makes Me Want To Cry

kingretracted (28)

instead of doing the array, you could of just done """ for multiline string.

CodingCactus (2193)

@Shadow3912 thanks, check out my cactus sim as my 500 cycle special, here (click me)

ayush2007 (2)

is this based on ur profile

StudentFires (294)

I feel like you went through necessary work, is there a reverse function for strings in Python? If so, it would've used a single variable.

Also, the loop constantly joins the arrays, you could've done this:

cactus2 = "\n".join([
...,
...
])

Now it just sets the variable and reads from it.

CodingCactus (2193)

@StudentFires ik, the join was added later on, so it was just thrown in there, I'll change it for you :)

StudentFires (294)

@CodingCactus Ha, you don't need to, I do stuff like that because I'm an optimization freak, I'm been doing some insane stuff when it comes to code recently.

Just wait until my template comes out, lol!

StudentFires (294)

@CodingCactus It's definitely going to be something else... unfortunately it's not going to be too accessible, it'll be in C++ and JavaScript.

Most Repl users don't know C++.

PilotDevKarwa (2)

@CodingCactus
You are a god and I just wanted to say that you are my hero and I look up to you. Keep up the great work! I look forward to seeing later projects! GREAT CODING!!!!

AlexanderTarn (231)

You can use termcolor and fill in the cactus.

CodingCactus (2193)

@AlexanderTarn really? would you mind showing me how? :)

AlexanderTarn (231)

@CodingCactus

from termcolor import colored

s = colored('[]','grey',attrs=['concealed'])
O = colored('[]','white','on_white')
G = colored('[]','yellow','on_yellow')
f = colored('[]','cyan','on_cyan')
M = colored('[]','green','on_green')

print(M)
JarenCascino (0)

This is more interesting than homework

CodingCactus (2193)

@JarenCascino lol, thanks
Homework can be quite interesting though :)

[deleted]

That's so good!
check out my game!
i used asciis!
here

CodingCactus (2193)

@Zuhdi28 thanks, I know, I have already seen your game, it's cool