Skip to content

Commit 10fc9ac

Browse files
committed
Corrección Roadmap 44 + Nuevo ejercicio 45
1 parent 83271c4 commit 10fc9ac

File tree

3 files changed

+77
-3
lines changed

3 files changed

+77
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 11 de noviembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/bDgt5Zjk?event=1300807174523457676)** por país y crea un **[recordatorio](https://discord.gg/bDgt5Zjk?event=1300807174523457676)**
30+
> #### Lunes 18 de noviembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/KWfXWnfK?event=1303107145558003764)** por país y crea un **[recordatorio](https://discord.gg/KWfXWnfK?event=1303107145558003764)**
3232
3333
## Roadmap
3434

@@ -78,7 +78,8 @@
7878
|41|[CAMISETA RAR](./Roadmap/41%20-%20CAMISETA%20RAR/ejercicio.md)|[📝](./Roadmap/41%20-%20CAMISETA%20RAR/python/mouredev.py)|[▶️](https://youtu.be/QXFrWIFCkGY)|[👥](./Roadmap/41%20-%20CAMISETA%20RAR/)
7979
|42|[TORNEO DRAGON BALL](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/ejercicio.md)|[📝](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/python/mouredev.py)|[▶️](https://youtu.be/SgwX7ISEkvM)|[👥](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/)
8080
|43|[GIT GITHUB CLI](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/ejercicio.md)|[📝](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/python/mouredev.py)|[▶️](https://youtu.be/Ct4GKpbqflI)|[👥](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/)
81-
|44|[CUENTA ATRÁS MOUREDEV PRO](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/ejercicio.md)|[🗓️ 11/11/24](https://discord.gg/bDgt5Zjk?event=1300807174523457676)||[👥](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/)
81+
|44|[CUENTA ATRÁS MOUREDEV PRO](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/ejercicio.md)|[📝](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/python/mouredev.py)||[👥](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/)
82+
|45|[GITHUB OCTOVERSE](./Roadmap/45%20-%20GITHUB%20OCTOVERSE/ejercicio.md)|[🗓️ 18/11/24](https://discord.gg/KWfXWnfK?event=1303107145558003764)||[👥](./Roadmap/45%20-%20GITHUB%20OCTOVERSE/)
8283

8384
## Cursos en YouTube
8485

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import datetime
2+
import time
3+
import os
4+
import threading
5+
6+
7+
def countdown(target_date):
8+
9+
while True:
10+
11+
now_date_utc = datetime.datetime.now(datetime.timezone.utc)
12+
13+
remaining_time = target_date - now_date_utc
14+
15+
if remaining_time.total_seconds() <= 0:
16+
print("\n¡Cuenta atrás finalizada!")
17+
break
18+
19+
days, seconds = divmod(remaining_time.total_seconds(), 86400)
20+
hours, seconds = divmod(seconds, 3600)
21+
minutes, seconds = divmod(seconds, 60)
22+
23+
os.system("clear")
24+
25+
print(
26+
f"Tiempo restante: {int(days)} días, {int(hours)} horas, {int(minutes)} minutos, {int(seconds)} segundos")
27+
28+
time.sleep(1)
29+
30+
31+
local_date = datetime.datetime(2024, 11, 11, 20, 47, 00)
32+
local_date = local_date.replace(
33+
tzinfo=datetime.datetime.now().astimezone().tzinfo)
34+
35+
target_date_utc = local_date.astimezone(datetime.timezone.utc)
36+
37+
countdown_thread = threading.Thread(target=countdown, args=(target_date_utc,))
38+
countdown_thread.start()
39+
countdown_thread.join()
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# #45 GITHUB OCTOVERSE
2+
> #### Dificultad: Media | Publicación: 11/11/24 | Corrección: 18/11/24
3+
4+
## Ejercicio
5+
6+
```
7+
/*
8+
* EJERCICIO:
9+
* GitHub ha publicado el Octoverse 2024, el informe
10+
* anual del estado de la plataforma:
11+
* https://octoverse.github.com
12+
*
13+
* Utilizando el API de GitHub, crea un informe asociado
14+
* a un usuario concreto.
15+
*
16+
* - Se debe poder definir el nombre del usuario
17+
* sobre el que se va a generar el informe.
18+
*
19+
* - Crea un informe de usuario basándote en las 5 métricas
20+
* que tú quieras, utilizando la informración que te
21+
* proporciona GitHub. Por ejemplo:
22+
* - Lenguaje más utilizado
23+
* - Cantidad de repositorios
24+
* - Seguidores/Seguidos
25+
* - Stars/forks
26+
* - Contribuciones
27+
* (lo que se te ocurra)
28+
*/
29+
```
30+
#### Tienes toda la información extendida sobre el roadmap de retos de programación en **[retosdeprogramacion.com/roadmap](https://retosdeprogramacion.com/roadmap)**.
31+
32+
Sigue las **[instrucciones](../../README.md)**, consulta las correcciones y aporta la tuya propia utilizando el lenguaje de programación que quieras.
33+
34+
> Recuerda que cada semana se publica un nuevo ejercicio y se corrige el de la semana anterior en directo desde **[Twitch](https://twitch.tv/mouredev)**. Tienes el horario en la sección "eventos" del servidor de **[Discord](https://discord.gg/mouredev)**.

0 commit comments

Comments
 (0)