personmandude
@personmandude
bananas are the best beverage
0
Simple custom structure using basic metaprogramming
while_else is a control structure where if the condition isn't true, it runs the else body, and if it is true, it runs a while loop with the main body. basically, it expands to:
if (condition) {
while(condition) {
body;
}
} else {
body2;
}
this is super simple and only took me a few minutes but i think that stuff like this is interesting9
1
0
0
Hash Map (very fast list)
In any situation where you have tons of objects in a list, finding the one you need can take a really long time because you have to search through every single element and check if it is the right one. A hash map, however, turns keys into random (but consistent in the sense that the same string will always produce the same one) numbers, and that number is where an object is stored. For example, a hash function could turn "billy" into the index 5, and whenever we need to find billy again, we run it through a short hash function again to find it instead of checking all elements. This makes lookup times very fast and consistent.0
1
0
0
Gaussian Addition - Coding my math lesson day 1
Gaussian Addition is a simple way of adding all of the numbers in an arithmetic sequence together. There is a much more detailed description and explanation that gets displayed when you start up the repl.0
Collatz Conjecture Program
The Collatz Conjecture states that running the following functions on any positive integer repeatedly will eventually cause it to reach 1. The functions are: if it is even do n/2 and if it is odd do 3n + 1.
This program is meant to brute force this process. Enjoy!serialization is turning an object into text so it can be stored or shared easier (think game save codes or some objects being sent over networks)
th
Python
i made this thingy to "encrypt" and "decrypt" messages, but, in case you couldn't tell, its not that good. the way it works is as follows:
(key consi
Python
Apologies for the repost of this repl. I made a small part of it, posted it, and then made a lot of changes, so now I'm posting it again.
Overview
H
PHP Web Server
GabrielNarvaez2 How do i add admins and could you remake it to were we can login into admin role11 months ago
I made this database with html, php, and python using sqlite3. It just lets you make a login and then... log in. Its not really complicated or anythin
PHP Web Server
This calculator has more than just basic math, it can also do loops (loop do ), absolute value, negatives, if then statements, and a bit more. I made
PHP Web Server
this is a calculator written the same way as a programming language. When you start it up it lists everything it can do, so read that but it can do ba
Python
This is a calculator i made that uses the same system as a programming language.
Lexer/tokenizer:
input -> tokens
parser:
tokens -> abstract sy
Python
AmoghTheCool print(f"{''.join([''.join(['h','e']),''.join(['l','l','o', ' '])]), "o".join([''.join(['w', 'o', 'r']), "d"])}")
`1 year ago
Warning: If you dont have the complete word somewhere in the text, it will pick the last match that has one letter in common, not the closest match
T
Python
This is a thing i made that can parse the contents of a file to find any functions within it. I could take it a step further and make it run code that
Python
This is a thing i made that will use back referencing in regex to search for a word in your input.
Use:
click 'Search'
type the word you would like t
HTML, CSS, JS
This is a quick, terrible regex thing I made in python to test it out. The commented one makes no sense at all (typing in gOOGOOGOOGlhe67 would match)
Python
Running this program should run an os command with the proper repl database command arguments and stuff. I made it print the commands that it is runni
EpicGamer007 for some reason doing curl commands will not work. you can use my client though.2 years ago