Skip to content

Instantly share code, notes, and snippets.

View coder-ralph's full-sized avatar
🎯
Focusing

Ralph Rosael coder-ralph

🎯
Focusing
View GitHub Profile
@coder-ralph
coder-ralph / helloworld.py
Created October 22, 2023 12:05
Code of Horror game. The goal is to write the most horrifyingly complicated "Hello, World!" program you can imagine.
# Hacking into Crush's Heart! 💘🕵️‍♂️ using BASE64
import base64
import time
class LoadingScreen:
def show_loading(self, duration):
for _ in range(duration):
for char in "|/-\\":
print(f"\033[92mHACK KO NGA PUSO NI CRUSH... 🕵️‍♂️ {char}\033[0m", end="\r")
@coder-ralph
coder-ralph / calculator.cpp
Created January 16, 2023 12:19
Basic calculator using switch cases in C++
# include <iostream>
using namespace std;
int main() {
char op;
float num1, num2;
cout << "Enter operator: +, -, *, /: ";
cin >> op;
@coder-ralph
coder-ralph / Holiday Greeting.py
Last active March 27, 2023 02:34
This function generates a holiday greeting with a variety of personalized elements.
# PythonPH - Holiday Coding Challenge
import random
# holiday greetings
def holiday_greeting(name, holiday):
greetings = ["Merry", "Happy", "Joyous", "Cheerful", "Festive"]
feelings = ["love", "joy", "peace", "happiness", "warmth"]
actions = ["spreading", "sharing", "bringing", "sending"]
greeting = random.choice(greetings) + " " + holiday + ","
feeling = "filled with " + random.choice(feelings) + ","