Science
@Science
So i was making a site for my development using repl.it
I use hostinger domain service
Root domain is not connecting whereas subdomains connect. Hel
Coder100 Repl.it can't use root domains for some reason. Just have the root redirect to www.
report this to bugs2 years ago
I actually want to use netlify. Dont take bad that i dont like repl becuase repl provides a wide varity of languages and better atmosphere than my pc(
SUHASTADIPARTH1 If you are just a beginner, I would suggest repl.it. If you are more advanced, you can go with netlify.2 years ago
RYANTADIPARTHI I think netlify is better for having more tools, and databases, and all, but repl is online, and is limited, so both are good, but netlify has more.2 years ago
See technically meh doing dome project so i need a help where i need to remove [], null, undefined, false
So let the example arr be:
let arr = [null,
Coder100 ok after rereading maybe neither is what you want?
function remove(arr)
{
return arr.filter(e => e == null || e.length == 0 ? false : Boolean(e))
}
`2 years ago
AmazingMech2418 Try this:
arr.filter(n=>n&&(typeof(n)!='object'||!('length' in Object.keys(n)&&Object.keys(n).length<=0)))
`2 years ago
OlauPla Maybe this can help u:
https://stackoverflow.com/questions/281264/remove-empty-elements-from-an-array-in-javascript2 years ago
So i did npx create-react-app my-app
All done but thing is it uses react-scripts
and it says react-scripts bash command not found so how can i run re
Coder100 send screenshots, btw also try forking this template which should work better i think2 years ago
Ik what is ipc
But my question is communicating withing the same languages
example
From a.py to b.py
Is that also under ipc?
TonyEden1 I don't think a.py to b.py is a part of ipc, I would recomend to check this article to know better.
https://www.scaler.com/topics/operating-system/inter-process-communication-in-os/10 months ago
DynamicSquid Oh that's a complicated topic. I found this website that should explain it fairly well2 years ago
I am facing trouble to making a github login for my site with express and axios in javascript
Now thing is i made all things and i code the code quer
ironblockhd I found this resource: https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/
You have to make a get request to https://api.github.com/user with the authorization-header "token [OAUTH-TOKEN]"2 years ago
Now i have selected a node.js repl but i want python as integration now if its my pc then i can use child_process in node.js to run now thing is in no
Coder100 does a bash file work?
.replit
run = "sh main.sh"
main.sh
node .
python3 other.py
Now to run other.py just exit in index.js, a bit janky for sure, but hey, it works2 years ago
Well i know how to add args in my
def fun(*args):
for arg in args:
print(arg)
Its ok but my question is that, i dont know how many parameters are
PattanAhmed @Science Hi,
Better to link your Repl
Or
Create a new Repl and put this code there.
So that we can run the code and check what you want.
Thanks!2 years ago
How can i use pip in repl.it? Coz i need some reasons just not to install!
gibbsfreenergy Hey @Science, you have a good question! Pip installments can't be written in the console, so we write it in the shell. Repl.it was recently updated and they made a new feature where the shell is given to you and you don't have to manually pull the shell out!
Here is where you can get the shell:
image
This is the easiest way to get the shell out! Well I hope you have fun and that your project is successful.
Have a great day!
2 years ago
PattanAhmed @Science Hi,
You can use pip terminal on your Repl too
For that, Just Hit Ctrl + Shift + S on your Repl
You will see this extra window under your Console
01
That's your Terminal.
There you can run pip to install packages and do a lot of other things there.
That's it
Thanks!
Hope this helps2 years ago
Bookie0 hey,
the shell is here:
Screen Shot 2020-09-10 at 10.33.56 AM
you can also press command-shift-s or control-shift-s to enter the shell.
yea so in there you can do your commands and install things ;)2 years ago
So i am using showdown to convert md to html but meh getting err text.replace() is not a function which is a internal showdown err. So i made a way my
Coder100 Well, the text.replace error is because you did it wrong. You have to specify the text as a string and it is a required argument.
const converter = new showdown.Converter();
converter.makeHtml(# Hello world); // valid
converter.makeHtml(); // invalid, type is undefined expected string
converter.makeHtml(3); // invalid, type is number expected string
`2 years ago
SixBeeps Ahaha I found your GH issue https://github.com/showdownjs/showdown/issues/824
Though I don't think anyone can help you here if you don't link some code or a Repl.2 years ago
I have doubt like i have a idea on making one but how to its ok to make and fork it but how can i display it in /templates site
Science Well, i have got the answer and i dont know how to close a issue in repl.it so no more answer, comments or replies2 years ago
PattanAhmed @Science Hi,
Sorry to say, I have tried this too long time before.
But by reading some websites, I came to a Conclusion that you and I can't.
Only Repl.it Team can add it to Templates Page themselves
That's it
Thanks!
Hope this helps2 years ago
Now actually i can get project size of a normal project which is side to the project name whereas in team repl, i see no size found! Any ways for it!
PattanAhmed @Science Hi,
Sorry to say, It's not possible :(
But you can always feel free to post it in Repl.it Feedback Section
Click here
Hopefully, they may accept your wish.
That's it you can try...
Thanks!
Hope this helps2 years ago
Coder100 Do you mean storage space? Unfortunately, that is not possible. Please report to feedback. Anyways, it's not a super big deal because storage space will probably be not enforced for a long time.2 years ago
I cant create teams means i cant view my teams ;-;
PattanAhmed @Science Hi,
You can create a new team by following this tutorial:-
Click here
If you find any errors in any procedure by following the above tutorial, then it can probably be a Repl.it Bug.
You can report it in Repl.it Bugs Section
Click here
That's it.
Thanks!
Hope this helps2 years ago
Bookie0 hello!
to create a teams follow these steps:
first go to teams:
Screen Shot 2020-09-02 at 8.44.44 AM
then click create team:
Screen Shot 2020-09-02 at 8.45.04 AM
next choose create a free team
Screen Shot 2020-09-02 at 8.45.18 AM
next pick a username:
Screen Shot 2020-09-02 at 8.45.50 AM
now put a pfp and invite some members and click done.
Screen Shot 2020-09-02 at 8.47.10 AM
and there your team is created!
Screen Shot 2020-09-02 at 8.47.33 AM
to view teams:
go to teams
Screen Shot 22 years ago