Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rolldeep-stepmerrily/rolldeep-stepmerrily


https://github.com/rolldeep-stepmerrily/rolldeep-stepmerrily

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

```typescript
const rolldeep: Developer & Daddy = {
dev: {
coding: 'with my not smart 🧠',
favorite: {
language: 'TypeScript',
framework: 'NestJS',
orm: 'Prisma',
},
},
family: {
wife: '❀️'.repeat(Number.MAX_SAFE_INTEGER),
baby: {
name: 'β˜€οΈν–‡μ‚΄',
gender: EGender.MALE,
isBorn: false,
getBirthDate: () => dayjs('2025-04-05'),
},
},
hobby: {
bass: 'practicing diligently 🎸',
},
lifeStatus: async () => {
const { baby } = rolldeep.family;
const birthDate = baby.getBirthDate();
const now = dayjs();
const timeUntilBirth = birthDate.diff(now, 'millisecond');

const messages: readonly string[] = [
`${baby.name}μ•„ ν•˜λ£¨ 빨리 보고싢닀 πŸ₯°`,
'κ±΄κ°•ν•˜κ²Œ 잘 자라고 μžˆμ§€? 😊',
'μ—„λ§ˆλž‘ μ‚¬μ΄μ’‹κ²Œ 지내고 μžˆμ–΄ πŸ’ž',
'μ•„λΉ κ°€ λ“ λ“ ν•˜κ²Œ μ§€μΌœμ€„κ²Œ πŸ’ͺ',
];

const waitForBaby = () => {
return new Promise((resolve) => {
let messageIndex = 0;
const messageInterval = setInterval(() => {
console.log(messages[messageIndex]);

messageIndex = (messageIndex + 1) % messages.length;
}, 2000);

setTimeout(
() => {
baby.isBorn = true;
clearInterval(messageInterval);
resolve(`${baby.name}이가 νƒœμ–΄λ‚¬μ–΄μš”! πŸ‘Ά`);
},
Math.max(0, timeUntilBirth),
);
});
};

return await waitForBaby();
},
};

export default rolldeep;
```