Luna Tea
@LunaTea
Hello! I'm some random 16 year old who decided to start coding on here lol, thats about it, if you go through my repls, beware.
0
How can I hide something in an HTML repl?
I can't use a secret, or an env file, because it doesn't let me, are there any other ways to do this so that I can use it in my js?SixBeeps @LunaTea No, because of the nature of HTML Repls. Everything that you make in there is supposed to be sent to the client. If you were able to send a secret along with your JS file, they could just open it up and see it.
The solution for this is to write your own backend and run any code that would need the secret on the server instead of the client.1 year ago
AcademicCat @LunaTea @SixBeeps You could try using a PHP Web Server repl, I believe those let you make secrets.1 year ago
13
3
0
0
Sapphire, a "programming language" derived from C++
Sapphire.sap
What is Sapphire?
Sapphire is a small programming language, compiled quite simply from C++ for ease of usage.
Some basic functions of Sapphire include:
write, the equivalent of cout.
Write is used with the very simple syntax write x;, which is the equivalent of std::cout << i;
newl, A newline!
Insert this anywhere in your code to easily insert a newline in the output, be it after a write function, before a write function, or even without writing anything! (Not sure why though...)
~ (tilde); This character allows you to concatenate strings and strings, or strings and ints, or whatever your heart desires! (This is the equivalent of << in an std::cout)
Example: write "Hello World! Number is: " ~ 10000
Example sapphire program
int main() {
int i = 100;
write "Hello World! Number is: " ~ 100 * 100;
newl;
}
This language is extremely easy to use! Simply write your code in main.sap, then click the big green run button! (NOTE: CHANGING THE NAME OF THE MAIN.SAP FILE WILL BREAK IT.)
P.S: I know this isn't truly a programming language, hence the quotes, this was simply something I threw together in algebra after thinking about how clunky C++ code can get, once I figure out how to work a Lexer and a parser, i may make it a true language
P.P.S: If you have any ideas for things to add, please do let me know!1
1
0
0
A small project I made
So the original plan for this was an AI that learns english, but I then realised I don't know anything about AI, so I wrote a small program that generates english words, following a very small list of rules (every word needs a vowel, U is always after Q, etc;), if you know any other important rules, please feel free to comment them!6
1
0
I am trying to make a function in my chat website that gives a list of all connected users, but the users object I have is in the server-sided code, h
Node.js
SixBeeps You already have sockets set up, so just mass-blast all the clients with that users object attached every few ms or so. On the client-side, whenever the users object is received, update the list accordingly.1 year ago
I'm trying to load a background image for my chat, but it fails to load the background image, other css loads fine however.
Node.js
I'm trying to make it so if you use the console to cheat in my game, it gives you a sort of debuff, any easy ways to check for this?
HTML, CSS, JS
lsikora Yeah. To use the console, you go to the inspect element and there you can click on the console and do commands.1 year ago
Wow, I didn't expect this to get so many upvotes
Hey you!
Are you endlessly scrolling replit right now looking for something cool? Well uh, this isn'
HTML, CSS, JS
Griffin41851 CryptoClickers is a complex Incremental Game revolved around Cryptocurrencies that's full of unique game modes, upgrades, challenges, events, and a double layer prestige system! All Reviews: Mixed (137) - 66% of the 137 user reviews for this game are positive. Release Date: Jun 19, 2021.
https://www.mcdvoice.org/1 year ago
williamhu6 so fun but change background it ruin game sad so 1/10 if no background 10/10 or make other background. Btw if you want better try making the upgrade thing neat
1 year ago