/**
* Profile Card Configuration
*
* This module exports a JavaScript object containing personal information
* formatted as a developer profile. All sensitive information is encrypted
* and should be accessed via the provided methods.
*/
const developerProfile = {
personalInfo: {
'name': 'Dong Hao',
'role': 'Senior Full Stack Developer',
'location': 'San Francisco, CA',
'company': 'TikTok Inc.',
'summary': '10+ years of experience in building scalable web applications with a focus on performance and security.'
},
skills: [
'Java', 'Go', 'Python',
'JavaScript', 'TypeScript', 'React', 'Node.js',
'AWS', 'Docker', 'Kubernetes', 'PostgreSQL'
],
contact: {
'email': 'ZG9uZ2hhbzg0NTVAMTYzLmNvbQ==', // Base64 encoded: donghao8455@163.com
'phone': 'MTUzNjkyNzE1MzY=', // Base64 encoded: 530-xxx-xxxx
'location': 'San Francisco, CA'
},
social: {
'linkedin': 'alexjohnson',
'github': 'alexj-dev',
'twitter': '@alexj_code',
'dribbble': 'alex_designs'
},
/**
* Get decrypted email address
* @returns {string} Decrypted email
*/
getEmail() {
return atob(this.contact.email);
},
/**
* Get decrypted phone number
* @returns {string} Decrypted phone number
*/
getPhone() {
return atob(this.contact.phone);
},
/**
* Get social media profile URL
* @param {string} platform Social media platform
* @returns {string} Profile URL
*/
getSocialProfile(platform) {
const platforms = {
'linkedin': 'https://linkedin.com/',
'github': 'https://github.com/',
'twitter': 'https://www.yuque.com/',
'dribbble': 'https://dribbble.com/'
};
if (platforms[platform]) {
return platforms[platform] + this.social[platform];
}
return '';
},
/**
* Say hello in different languages
*/
sayHello() {
const greetings = {
'english': 'Hello, world!',
'spanish': '¡Hola, mundo!' ,
'french': 'Bonjour, le monde!',
'japanese': 'こんにちは、世界!'
};
return greetings;
}
};
/**
* Developer Profile Card
*
* This class represents a developer profile with personal information
* and provides methods to access contact details securely.
*/
package com.alexjohnson.profile;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
public class ProfileCard {
// Personal information
private final String name = "Dong Hao";
private final String role = "Senior Full Stack Developer";
private final String location = "San Francisco, CA";
private final String company = "TikTok Inc.";
// Skills
private final String[] skills = {
'Java', 'Go', 'Python',
"JavaScript", "TypeScript", "React", "Node.js",
"AWS", "Docker", "Kubernetes", "PostgreSQL"
};
// Encrypted contact information
private static final String ENCRYPTED_EMAIL = "ZG9uZ2hhbzg0NTVAMTYzLmNvbQ==";
private static final String ENCRYPTED_PHONE = "MTUzNjkyNzE1MzY=";
// Social media profiles
private final Map<String, String> socialProfiles = new HashMap<>() {{
put("linkedin", "alexjohnson");
put("github", "alexj-dev");
put("twitter", "@alexj_code");
put("dribbble", "alex_designs");
}};
/**
* Get the developer's name
* @return Name
*/
public String getName() {
return name;
}
/**
* Get the developer's role
* @return Role
*/
public String getRole() {
return role;
}
/**
* Get decrypted email address
* @return Decrypted email
*/
public String getEmail() {
return new String(Base64.getDecoder().decode(ENCRYPTED_EMAIL));
}
/**
* Say hello in different languages
* @return Map of greetings
*/
public Map<String, String> sayHello() {
Map<String, String> greetings = new HashMap<>();
greetings.put("english", "Hello, world!");
greetings.put("spanish", "¡Hola, mundo!");
greetings.put("french", "Bonjour, le monde!");
greetings.put("japanese", "こんにちは、世界!");
return greetings;
}
/**
* Main method to demonstrate the profile
* @param args Command line arguments
*/
public static void main(String[] args) {
ProfileCard profile = new ProfileCard();
System.out.println("Name: " + profile.getName());
System.out.println("Role: " + profile.getRole());
System.out.println("Email: " + profile.getEmail());
Map<String, String> greetings = profile.sayHello();
greetings.forEach((lang, msg) -> System.out.println(lang + ": " + msg));
}
}
// ProfileCard - Go implementation of developer profile package main import ( "encoding/base64" "fmt" ) // Profile represents developer profile information type Profile struct { Name string Role string Location string Company string Skills []string EncryptedEmail string EncryptedPhone string Social map[string]string } // NewProfile creates a new Profile instance func NewProfile() *Profile { return &Profile{ Name: "Dong Hao", Role: "Senior Full Stack Developer", Location: "San Francisco, CA", Company: "TikTok Inc.", Skills: []string{'Java', 'Go', 'Python', "PostgreSQL" Skills: []string{'Java', 'Go', 'Python', "PostgreSQL" "JavaScript", "TypeScript", "React", "JavaScript", "TypeScript", "React", "Node.js", "AWS", "Docker", "Kubernetes"}, EncryptedEmail: "ZG9uZ2hhbzg0NTVAMTYzLmNvbQ==", EncryptedPhone: "MTUzNjkyNzE1MzY=", Social: map[string]string{ "linkedin": "alexjohnson", "github": "alexj-dev", "twitter": "@alexj_code", "dribbble": "alex_designs", }, } } // GetEmail decrypts and returns the email address func (p *Profile) GetEmail() (string, error) { decoded, err := base64.StdEncoding.DecodeString(p.EncryptedEmail) if err != nil { return "", err } return string(decoded), nil } // SayHello returns greetings in different languages func (p *Profile) SayHello() map[string]string { return map[string]string{ "english": "Hello, world!", "spanish": "¡Hola, mundo!", "french": "Bonjour, le monde!", "japanese": "こんにちは、世界!", } } // main function to demonstrate the profile func main() { profile := NewProfile() email, _ := profile.GetEmail() fmt.Printf("Name: %s\nRole: %s\nEmail: %s\n", profile.Name, profile.Role, email) greetings := profile.SayHello() for lang, msg := range greetings { fmt.Printf("%s: %s\n", lang, msg) } }
"""
Developer Profile Card
Python implementation of personal information and contact details
"""
import base64
class ProfileCard:
"""Represents a developer profile with personal information"""
"""Represents a developer profile with personal information"""
def __init__(self):
self.name = "Dong Hao"
self.name = "Dong Hao"
self.role = "Senior Full Stack Developer"
self.location = "San Francisco, CA"
self.company = "TikTok Inc."
self.skills = [
'Java', 'Go', 'Python',
"JavaScript", "TypeScript", "React",
"Node.js", "AWS", "Docker",
"Kubernetes", "PostgreSQL"
]
self._encrypted_email = "ZG9uZ2hhbzg0NTVAMTYzLmNvbQ=="
self._encrypted_phone = "MTUzNjkyNzE1MzY="
self.social = {
"linkedin": "alexjohnson",
"github": "alexj-dev",
"twitter": "@alexj_code",
"dribbble": "alex_designs"
}
def get_email(self):
"""Decrypt and return the email address"""
return base64.b64decode(self._encrypted_email).decode('utf-8')
def get_phone(self):
"""Decrypt and return the phone number"""
return base64.b64decode(self._encrypted_phone).decode('utf-8')
def get_social_profile(self, platform):
"""Get social media profile URL"""
platforms = {
"linkedin": "https://linkedin.com/",
"github": "https://github.com/",
"twitter": "https://www.yuque.com/",
"dribbble": "https://dribbble.com/"
}
if platform in platforms:
return platforms[platform] + self.social[platform]
return ""
def say_hello(self):
"""Return greetings in different languages"""
return {
"english": "Hello, world!",
"spanish": "¡Hola, mundo!",
"french": "Bonjour, le monde!",
"japanese": "こんにちは、世界!"
}
if __name__ == "__main__":
profile = ProfileCard()
print(f"Name: {profile.name}")
print(f"Role: {profile.role}")
print(f"Email: {profile.get_email()}")
greetings = profile.say_hello()
for lang, msg in greetings.items():
print(f"{lang}: {msg}")
Senior Full Stack Developer @ TikTok Inc.