Skip to content
Sign UpLog In
Profile icon

SamKunefeh

@SamKunefeh
I code.
Repls
Community
SamKunefeh
SamKunefeh
shared a Post
1 year ago
type=“module” not executing script
Hello everyone! So I was making a kaboomjs game and decided to split my scenes into different files, which meant that I had to use import statements
QuickV
QuickV
Console says: "Relative references must start with either "/", "./", or "../". at /" I have no idea what that means though.1 year ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
Hello Everyone! So in this repl I made a simple express server and made it serve index.html. The html file has a script tag for running script.js and
Coder100
Coder100
anyways, script.js isn't nodejs -- its web js!! So that means you can't use axios or any of the cool node things. It's not node!1 year ago
Coder100
Coder100
that's not nodejs anymore -- that would be just dom js1 year ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
Hello everyone, I tried using the ClashRoyaleAPI with node.js but it doesn’t work cause there’s and error 403 forbidden. I know that it means that I d
RemoryX
RemoryX
Hey! So I was a bit confused as to why this wasn't working when I saw it. I checked the Clash Royale API and got a key, and I believe the issue is that it requires you to register a static IP address for the key. I did some searching and found there is a 3rd party service that can and will serve as a proxy for your requests. The proxy URL is proxy.royaleapi.dev - and the static IP you should use when you get a key is 128.128.128.128 Should work on Replit if you use this method! brave_8r44SJ161 year ago
SamKunefeh
SamKunefeh
Sorry for the mistake but I didn’t use axios1 year ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hello everyone, I have a problem where I have created a nav in index.html that links to other files/pages. However, I want the same nav bar to be at t
RYANTADIPARTHI
RYANTADIPARTHI
try this link. https://stackoverflow.com/questions/676394/how-to-include-an-html-page-into-another-html-page-without-frame-iframe2 years ago
TimothyRowell
TimothyRowell
Ok, can you invite me to the repl because I cant explain that here its better to do it there. 2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hello everyone, I recently started learning html and css and want to build a website where for the main content, there is an image next to some text.
InvisibleOne
InvisibleOne
There are two ways you can do this Number 1 Make their position fixed and then set the image to have a left of 20px and a width of 400px, and then the text to have a left of 430px, you may also need to make them display as an inline-block Number 2 Or you can just make them both display as an inline-block and set the verticle-align to top and as long as the screen is wide enough they'll display next to each other.2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
When I run this repl, nothing appears on the website eventhough an image is supposed to be there. And yes, I have tried renaming the image file’s name
SameeraMurthy
SameeraMurthy
Simple Solution It looks like you spelled src wrong! You should do (on line 10): src just stands for source.2 years ago
icodeletion
icodeletion
Solution Do: title `2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
After months of hard work, I present to you: Artifax But what is Artifax? Artifax is simply a text fantasy RPG game, where your goal is to slay enem
Artifax
Python
pythonorguser
pythonorguser
image2 years ago
pythonorguser
pythonorguser
I can never sleep2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
I am currently working on a project that has now gotten to over 1500 lines of code. The problem however is that in a specific feature, my compiler is
RYANTADIPARTHI
RYANTADIPARTHI
can i see your repl?2 years ago
Coder100
Coder100
Looks like you might have something like this: def whatever(): if True: return 5 print('wont run') This won't work because return returns a value, and it would be redundant to have more code be executed beyond that point.2 years ago
Coder100
Coder100
then just release the code lol2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
I have almost a year of experience with python and have gotten to a kind of intermediate level, where I have covered all the fundamentals, OOP, file
Coder100
Coder100
jump into whatever language you want! You won't be able to forget python, once you learn it you learn it.2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
I am planning on using python’s cryptography package to encrypt and decrypt an important file with a random Fernet key. The problem is how I store the
RYANTADIPARTHI
RYANTADIPARTHI
nope. They can't access it. But if you are talking like run the program, and they accidentally type something correct, and see it, then i guess yes. But if they fork it, maybe if you are planning to put it somewhere known, they can see it. Normally, for now, they can't2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hello everyone, in this code I understand why the error message is popping up, because I am trying to access a class’ attributes by using self, which
Coder100
Coder100
Well, the thing is, you are trying to recreate static methods, which is a no no. Make a static method instead and you will see it works. class Animal: @staticmethod def speak_name(self, text): print(text + self.name) class Bird(Animal): name = "bird" Bird.speak_name("My name is ") https://codingpointer.com/python-tutorial/static-class-methods 2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
One thing is you haven't made an instance for the class yet. The class should contain the parameter of text so put that in first.2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hi Everyone, this is my submission for the 10th jam. What is it? Introducing........... PIE (Python Intelligence Expert) PIE is a cutting-edge stat
Jam- 10
Python
TsunamiOrSumth
TsunamiOrSumth
gl!2 years ago
TsunamiOrSumth
TsunamiOrSumth
Pie!2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
I was just messing around with replit’s new feature and even got to the point where it was working. However now when I try to play this file, the soun
RYANTADIPARTHI
RYANTADIPARTHI
Solution Your code should work. Maybe try these steps: change the name of your file to sound.mp3 put that name in the play_file put your stuff in a function Your code should look like this: from replit import audio def sound(): source = audio.play_file('sound.mp3') sound() And you should have a file with the name of sound.mp3 Also. remove the while loop, and the time. when you remove them, run it, if it works. Put them back, and try again. Ping me if nothing works. But it should work thou2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
When are the results of the 10th code jam going to be announced?
Coder100
Coder100
it takes up to one week to one month (programming language jam uggh) for results. I predict this one to be about 7 days as the hoster is actually a good judge.2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Not sure yet, but soon though.2 years ago
TsunamiOrSumth
TsunamiOrSumth
sometime2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hello everyone, In this repl, I try to update my variables by looping through the new values, and then assigning them to the variables. However, inst
SamKunefeh
SamKunefeh
Sorry guys, what I meant to say was looping through an iterable of the variables(x and y in this case) and then updating the variables by getting the new value from a dictionary. The problem with this however is that it only changes the temporary local variable in the for loop and not the actual x and y values.2 years ago
Coder100
Coder100
Two ways predefining myStr = "" while True: myStr = "something else" # now it changes the global scope global while True: global myStr myStr = "something else" # same thing `2 years ago
RayhanADev
RayhanADev
Heya @Jackbaklava To define a global variable simply type global in front of the variable! That should work, but if not feel free to bug me about it! Cheers. ~ Ray <32 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hello everyone. In one of my repls, I want to assign strings to class variables in a dictionary, so that if I want to print the attribute’s name for
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hi everyone, since school has started, I find it difficult to find time for coding. In the day, I do my homework, and I try to code a little at night
Bookie0
Bookie0
yea I'm having the same problem, and tbh I think most people on repl.it are students (between 10-17 y/o) so they are also trying to balance school and coding, as well as friends, family time, HW, and ofc trying to get off screens @Coder100 said, if you don't code for like 1 day or even 1 week it's not like you're gonna forget. I aim to just code a bit, just to advance a bit in my projects and also to not lose my streak, but school and homework and tests, as annoying as they are, those are always2 years ago
Coder100
Coder100
10 minutes seems enough :D ig there are some times in the morning as well, but schoolwork is a priority, and it's ok if you can't do any coding, there's always the weekends and the summer!2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
Hello everyone, I am currently making a text based adventure game. The game has now got so big, that it can't be completed in one sitting. So, I need
Coder100
Coder100
Anyways, your current solutions are great!2 years ago
Coder100
Coder100
Also try repl.it-DB (turn on explorer mode) Docs https://pypi.org/project/replit/2 years ago
Coder100
Coder100
I think JSON is a great option as well.2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
I have seen many posts where people use bold text or large text, but I don't know how to use these features. Can anyone help me?
SamKunefeh
SamKunefeh
WOW Thanks for the help guys!2 years ago
CodingRobot12
CodingRobot12
Use this hyperlink to check out this tutorial: image2 years ago
Coder100
Coder100
Hi!! That is something called markdown. header header header header header header bold text italic strikethrough can be combined Lists Lists Lists and also code links images) > blockquote horizontal rule ‍ ` code displays: code ‍ `js for (let i = 0; i < 50; i ++) { // formatted code! } displays: for (let i = 0; i < 50; i ++) { // formatted code! } read more here2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
When I run this repl, it chooses a random class and assigns current_enemy to it. However, when I try to access the class' attributes, it gives this er
dillonjoshua68
dillonjoshua68
@Jackbaklava , currentenemy refers to the list you created (enemylist), and the program says that that list doesn’t hav an attribute called current_health2 years ago
FlaminHotValdez
FlaminHotValdez
You never created a Player, you only defined the class.2 years ago