#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <cstdlib> // random greetings
#include <ctime> // seeding random generator
class Himanshu {
private:
const std::string username = "Himanshu-73";
const std::string name = "Himanshu";
const std::string web = "https://HimanshuSahu.onrender.com";
const std::unordered_map<std::string, std::vector<std::string>> code = {
{"frontend", {"HTML", "CSS", "JavaScript", "React", "Bootstrap"}},
{"backend", {"Python", "Flask", "Node.js", "Express", "C++"}},
{"database", {"MongoDB", "MySQL"}},
{"devops", {"Docker", "GitHub Actions", "AWS"}},
{"tools", {"GIT", "GitHub", "Pandas", "VSCode"}},
{"misc", {"Firebase", "GNU/Linux"}}
};
const std::vector<std::string> architecture = {"SPA", "Serverless"};
std::vector<std::string> greetings = {"Hello, world!", "Hey there!", "Greetings, traveler!", "Welcome to my bio!"};
public:
std::string toString() const {
std::string bio = "Name: " + name + "\n"
+ "Username: " + username + "\n"
+ "Website: " + web + "\n"
+ "Skills:\n";
for (const auto& stack : code) {
bio += "- " + stack.first + ": ";
for (const auto& tech : stack.second) {
bio += tech + ", ";
}
bio.pop_back(); // Remove last comma
bio.pop_back();
bio += "\n";
}
bio += "Architectural Knowledge: ";
for (const auto& arch : architecture) {
bio += arch + ", ";
}
bio.pop_back(); // Remove last comma
bio.pop_back();
return bio;
}
// greeting method
void say_hi() const {
std::srand(std::time(nullptr));
int random_index = std::rand() % greetings.size();
std::cout << greetings[random_index] << std::endl;
}
};
int main() {
Himanshu me;
me.say_hi();
std::cout << me.toString() << std::endl;
return 0;
}
🎯
Focusing
Building cool stuff, one bug at a time. Passionate about tech, automation, and solving real-world problems. Always learning, always improving.
-
12:12
(UTC +05:30)
Highlights
- Pro
Popular repositories Loading
-
-
-
first-contributions
first-contributions PublicForked from NemesisRoy/first-contributions
🚀✨ Help beginners to contribute to open source projects
-
open-source-cs
open-source-cs PublicForked from ForrestKnight/open-source-cs
Video discussing this curriculum:
-
open-source-cs-python
open-source-cs-python PublicForked from ForrestKnight/open-source-cs-python
Video discussing this curriculum:
-
awesome-frontendmasters
awesome-frontendmasters PublicForked from rahuldkjain/awesome-frontendmasters
📚 List of awesome frontendmasters course resources
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.