Skip to content
Sign UpLog In
Profile icon

Ashley Khng

@ash15khng
hi :^)
  • hello

    Cover page
    Made with HTML, CSS, JS
    Recent comments (0)
Repls
Community
ash15khng
ash15khng
shared a Post
3 years ago
COVID19 stats
Hey people! I built this to track the number of cases of COVID 19 and decided to share it here! Features: Takes information from an API and displays i
sg coronavirus statistics
Python
EmmaGao8
EmmaGao8
Soo coooool!2 years ago
devROB
devROB
Why is Singapore featured.3 years ago
ash15khng
ash15khng
shared a Post
3 years ago
I made this in my coding class Yay what else do I say
P5L5/6 budget app
HTML, CSS, JS
SixBeeps
SixBeeps
imageoh no3 years ago
ash15khng
ash15khng
shared a Post
4 years ago
I've seen a few projects making use of the terminal, but it uses clickable buttons on the terminal? How do you do that?
SPQR
SPQR
@Zavexeon I looked into it a bit and it seems that the terminal can sometimes detect mouse clicks but it doesn't seem to be able to get the mouse position on Linux, which is what repl.it runs on. So, clickable buttons on the terminal aren't really an option. @ash15khng If you really want buttons, though, you can have buttons which can be selected using the keyboard, like with arrow keys (don't use the arrow keys) or something of that nature. please mark this response as the answer if I answered4 years ago
Zavexeon
Zavexeon
I think this can be done in C++. I have no idea how, though. @SPQR may know.4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
This code uses the Reddit API to get the top post from r/todayilearned, prints it out and adds it to a file. I don't know why I made this but I needed
reddit api top post
Python
RobertFurr
RobertFurr
This man deserves a medal4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
So sorry for spamming questions, but my repl suddenly just draws a black screen?? The screen is just completely black?? https://repl.it/@ash15khng/pyg
ash15khng
ash15khng
shared a Post
4 years ago
https://repl.it/@ash15khng/pygame-moving-character I tried to use the inbuilt pygame.Rect.colliderect, but it doesn't work. I've been on this for abou
mwilki7
mwilki7
I have a project that does rectangle collision detection. https://repl.it/@mwilki7/Canvas-Basketball (starting line 177 in basketball_func.js) If you can convert this to python format it should work the same. function checkCollision(a, b) { // get rid of these four lines if you are not worried about different types of classes colliding if (!(a instanceof Entity)) return false; if (!(b instanceof Entity)) return false; var rect1 = {x: a.pos.x, y: a.pos.y, width: a4 years ago
katyadee
katyadee
Hey there! You should add a little more context to your question & the subject line, so it's easier for people to find and answer.4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
This is just basically a drawing game in Python. Pretty useless but here it is. Use arrow keys to move the dot, and c to clear. Why does the post body
pygame drawing project
Pygame
ash15khng
ash15khng
shared a Post
4 years ago
https://repl.it/@ash15khng/pygame-test Basically I tried to draw a rect as you can see in the code. I don't get why it's not drawing tho.
JustARatherRidi
JustARatherRidi
The problem here is that you're drawing your background over your rectangle. Do screen.fill(bgcolor) before you draw your rectangle, and you should be good. Working repl: https://repl.it/@JustARatherRidi/pygame-test4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
I think this is in the wrong section but I didn't know where to ask. You know how some people say they're helpers? How do you become one? Is there any
hyperupcall
hyperupcall
Yo Yah I believe you're talking about becoming a Helper on the Discord server? You can apply via the Google Form 😜 As for me, I was helping out peeps for quite a while when I submitted the form - so I got accepted!4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
Lights out game in python! Basically, when you select a square, the squares around it will be turned on if they are turned off, and vice versa! The ai
lights out
Python
ash15khng
ash15khng
shared a Post
4 years ago
What is the Collatz Conjecture? Well, it's this conjecture that states that you start with any number and if the number is even, divide it by two and
Collatz Conjecture
Python
ash15khng
ash15khng
shared a Post
4 years ago
I am following this tutorial. But it gives an error when trying to run it. I am not very sure what to do, as the error does not seem related to my cod
ash15khng
ash15khng
shared a Post
4 years ago
I think this has something to do with global variables, but anyways I need to do storage -= programmes[programme], but it's giving me an error which y
eTerminal/OS
Python
Geocube101
Geocube101
Because storage is a global variable, you don't need to set it equal to storage On line 6.4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
Hi, I have a problem with my repl. https://repl.it/@ash15khng/password-generator When I use the random module to generate passwords, it works perfectl
timmy_i_chen
timmy_i_chen
Install secrets via a requirements.txt file and it should work: https://repl.it/@timmyichen/QuickwittedKookyMenu And when you type in passwords it doesn't echo (meaning it doesn't print out what you typed in) for security reasons. :)4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
This was based off this website, and I just recreated it with my own this and thats.
itsthisforthat.com in Python
Python
ash15khng
ash15khng
shared a Post
4 years ago
Hi, I need help with a loop. I'm making a code that runs new() if the input c is 'y'. However, when I type 'y' (or anything, it doesn't matter) it sto
itsthisforthat.com in Python
Python
ash15khng
ash15khng
Nvm, I fixed it by adding the break there.4 years ago
ash15khng
ash15khng
shared a Post
4 years ago
I would make a character select, but I'm lazy now lol
password generator
Python
ash15khng
ash15khng
shared a Post
5 years ago
The last time I posted this, I mentioned the API is being retired, so I changed API and now have this.
bitcoin price checker
Python
ash15khng
ash15khng
shared a Post
5 years ago
It uses eval to calculate things (I know that's not safe), and you can use anything from the math module.
calculator
Python
ash15khng
ash15khng
shared a Post
5 years ago
This is just a random prank to leave your friends hanging there waiting for something to load.... but nothing ever loads!
coolest website
HTML, CSS, JS
heythere12
heythere12
no way! Even my cursor-1 year ago
NigelIsCoding
NigelIsCoding
I made a prank too: https://repl.it/talk/share/Biggest-prank-yet/866402 years ago
freddyamarsden
freddyamarsden
Kind of pointless. Would be cool if you added a wheel or something!5 years ago