mirror of
https://github.com/timmypidashev/timmypidashev.git
synced 2026-06-03 16:24:38 +00:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
const thisYear = new Date().getFullYear()
|
|
const startTimeOfThisYear = new Date(`${thisYear}-01-01T00:00:00+00:00`).getTime()
|
|
const endTimeOfThisYear = new Date(`${thisYear}-12-31T23:59:59+00:00`).getTime()
|
|
const progressOfThisYear = (Date.now() - startTimeOfThisYear) / (endTimeOfThisYear - startTimeOfThisYear)
|
|
const progressBarOfThisYear = generateProgressBar()
|
|
|
|
function generateProgressBar() {
|
|
const progressBarCapacity = 30
|
|
const passedProgressBarIndex = parseInt(progressOfThisYear * progressBarCapacity)
|
|
const progressBar = Array(progressBarCapacity)
|
|
.fill('▁')
|
|
.map((value, index) => index < passedProgressBarIndex ? '█' : value)
|
|
.join('')
|
|
return `{ ${progressBar} }`
|
|
}
|
|
|
|
const readme = `\
|
|
|
|
```c
|
|
#include <stdio.h>
|
|
|
|
int main(){
|
|
printf("My name is Timothy Pidashev! I am a 17 year on an epic journey to become a software developer!");
|
|
printf("Experienced in C, Python, Java, and Javascript")
|
|
printf("Join my discord server: https://discord.gg/EDRjZdkGBG");
|
|
return 0;
|
|
}
|
|
```
|
|
|
|
<!--START_SECTION:waka-->
|
|
|
|
<!--END_SECTION:waka-->
|
|
|
|
`
|
|
console.log(readme)
|