Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rolldeep-stepmerrily/rolldeep-stepmerrily
https://github.com/rolldeep-stepmerrily/rolldeep-stepmerrily
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rolldeep-stepmerrily/rolldeep-stepmerrily
- Owner: rolldeep-stepmerrily
- Created: 2024-06-27T09:25:07.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T05:37:54.000Z (3 months ago)
- Last Synced: 2024-10-29T06:25:21.319Z (3 months ago)
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
```