Skip to content

Commit

Permalink
feat: Ejercicios TDC y readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyrdow committed Oct 18, 2023
1 parent 1e6b80c commit a878f6e
Show file tree
Hide file tree
Showing 22 changed files with 93 additions and 66 deletions.
39 changes: 32 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,37 @@
## Como leer
Las guías del repositorio se encuentran en archivos markdown (.md), solamente los README.md se "abren" automáticamente, el resto debes abrirlos tú

### Índices
Cada .md tiene un índice con links a los cabezales del archivo
![ejemplo-indice](./sources/indice.png)
## Aportes
### Fork + Pull request
![ejemplo_indice](./sources/indice.png)

### PDFs grandes
Los PDFs más extensos tienen un botón para mostrár más páginas que en algunos casos es difícil de ver
![more_pages_pdf](sources/more_pages.png)


<h2>
<div align="center">
<img src="./sources/USACHIN/IA/IA_59.png" width="300"/>
</div>
Tengo un aporte y quiero subirlo
</h2>


### 1. Fork + Pull request
Como dice arriba
### Enviar aporte por correo

<img src="./sources/USACHIN/IA/IA_61.png" width="200"/>

### 2. Enviar aporte por correo
Envía tu aporte a [email protected] y [email protected], incluye en el asunto `papeos-guias`

### 3. Únete a OsUsach
Los miembros de OsUsach pueden pushear al repositorio libremente

<img src="./sources/USACHIN/IA/IA_1.png" width="200"/>


## Sources
Las carpetas [sources](./sources/) se usan para guardar imágenes que luego se importan en los archivos markdown (.md)
### Como agregar más iconos:
Expand All @@ -18,6 +42,7 @@ Las carpetas [sources](./sources/) se usan para guardar imágenes que luego se i
- agregar los atributos `width="16" fill="{color}"`
- cambiar el ancho (o alto con height), 16 encaja con el tamaño de texto por defecto
- copiar el color correspondiente al ícono y ponerlo en fill
- agregar el icono a tu .md
`![Git Logo](./sources/git.svg)`
![Git Logo](./sources/git.svg)
- agregar el icono a tu .md:
- `![<texto_alternativo>](<path>)`
- `![Git Logo](./sources/git.svg)`
- ![Git Logo](./sources/git.svg)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added [TDC] - Teoría de Computación/Pruebas/PEPS.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion [TDC] - Teoría de Computación/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# [TDC] - Teoría de Computación

[Resumen.pdf](./Resumen.pdf), [Resumen_1.pdf](./Resumen_1.pdf), [Resumen_2.pdf](./Resumen_2.pdf) aportados por <img width="16" style="border-radius:50%;vertical-align:middle" src="https://avatars.githubusercontent.com/u/111472645?v=4"></img> [Valentina Campos](https://github.com/valenpy22)
## Autores
- [Resumen D1.pdf](./Resumen%20D1.pdf), [Resumen C1.pdf](./Resumen%20C1.pdf), [Resumen C2.pdf](./Resumen%20C2.pdf), [Resumen D2.pdf](./Resumen%20D2.pdf) por <img width="16" style="border-radius:50%;vertical-align:middle" src="https://avatars.githubusercontent.com/u/111472645?v=4"></img> [Valentina Campos](https://github.com/valenpy22)
- Resumenes LTC ([drive malla antigua](https://drive.google.com/drive/u/1/folders/1eGXcxO7CdlgRp5uaxTArSrshguHTwZUf)) por <img width="16" style="border-radius:50%;vertical-align:middle" src="https://avatars.githubusercontent.com/u/"></img>[Marcelo Alvarez](https://github.com/)
Binary file added [TDC] - Teoría de Computación/Resumen D2.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed [TDC] - Teoría de Computación/todo_consuelo.pdf
Binary file not shown.
Binary file added sources/USACHIN/IA/IA_59.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sources/USACHIN/IA/IA_60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sources/USACHIN/IA/IA_61.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sources/USACHIN/IA/IA_62.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 22 additions & 58 deletions sources/USACHIN/IA/README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,23 @@
# Colección de USACHINES IA
![IA_1.png](./IA_1.png)
![IA_2.png](./IA_2.png)
![IA_3.png](./IA_3.png)
![IA_4.png](./IA_4.png)
![IA_5.png](./IA_5.png)
![IA_6.png](./IA_6.png)
![IA_7.png](./IA_7.png)
![IA_8.png](./IA_8.png)
![IA_9.png](./IA_9.png)
![IA_10.png](./IA_10.png)
![IA_11.png](./IA_11.png)
![IA_12.png](./IA_12.png)
![IA_13.png](./IA_13.png)
![IA_14.png](./IA_14.png)
![IA_15.png](./IA_15.png)
![IA_16.png](./IA_16.png)
![IA_17.png](./IA_17.png)
![IA_18.png](./IA_18.png)
![IA_19.png](./IA_19.png)
![IA_20.png](./IA_20.png)
![IA_21.png](./IA_21.png)
![IA_22.png](./IA_22.png)
![IA_23.png](./IA_23.png)
![IA_24.png](./IA_24.png)
![IA_25.png](./IA_25.png)
![IA_26.png](./IA_26.png)
![IA_27.png](./IA_27.png)
![IA_28.png](./IA_28.png)
![IA_29.png](./IA_29.png)
![IA_30.png](./IA_30.png)
![IA_31.png](./IA_31.png)
![IA_32.png](./IA_32.png)
![IA_33.png](./IA_33.png)
![IA_34.png](./IA_34.png)
![IA_35.png](./IA_35.png)
![IA_36.png](./IA_36.png)
![IA_37.png](./IA_37.png)
![IA_38.png](./IA_38.png)
![IA_39.png](./IA_39.png)
![IA_40.png](./IA_40.png)
![IA_41.png](./IA_41.png)
![IA_42.png](./IA_42.png)
![IA_43.png](./IA_43.png)
![IA_44.png](./IA_44.png)
![IA_45.png](./IA_45.png)
![IA_46.png](./IA_46.png)
![IA_47.png](./IA_47.png)
![IA_48.png](./IA_48.png)
![IA_49.png](./IA_49.png)
![IA_50.png](./IA_50.png)
![IA_51.png](./IA_51.png)
![IA_52.png](./IA_52.png)
![IA_53.png](./IA_53.png)
![IA_54.png](./IA_54.png)
![IA_55.png](./IA_55.png)
![IA_56.png](./IA_56.png)
![IA_57.png](./IA_57.png)
![IA_58.png](./IA_58.png)

| ![IA_1.png](./IA_1.png) | ![IA_10.png](./IA_10.png) | ![IA_11.png](./IA_11.png) |
| --------- | -------- | -------- |
| ![IA_12.png](./IA_12.png) | ![IA_13.png](./IA_13.png) | ![IA_14.png](./IA_14.png) |
| ![IA_15.png](./IA_15.png) | ![IA_16.png](./IA_16.png) | ![IA_17.png](./IA_17.png) |
| ![IA_18.png](./IA_18.png) | ![IA_19.png](./IA_19.png) | ![IA_2.png](./IA_2.png) |
| ![IA_20.png](./IA_20.png) | ![IA_21.png](./IA_21.png) | ![IA_22.png](./IA_22.png) |
| ![IA_23.png](./IA_23.png) | ![IA_24.png](./IA_24.png) | ![IA_25.png](./IA_25.png) |
| ![IA_26.png](./IA_26.png) | ![IA_27.png](./IA_27.png) | ![IA_28.png](./IA_28.png) |
| ![IA_29.png](./IA_29.png) | ![IA_3.png](./IA_3.png) | ![IA_30.png](./IA_30.png) |
| ![IA_31.png](./IA_31.png) | ![IA_32.png](./IA_32.png) | ![IA_33.png](./IA_33.png) |
| ![IA_34.png](./IA_34.png) | ![IA_35.png](./IA_35.png) | ![IA_36.png](./IA_36.png) |
| ![IA_37.png](./IA_37.png) | ![IA_38.png](./IA_38.png) | ![IA_39.png](./IA_39.png) |
| ![IA_4.png](./IA_4.png) | ![IA_40.png](./IA_40.png) | ![IA_41.png](./IA_41.png) |
| ![IA_42.png](./IA_42.png) | ![IA_43.png](./IA_43.png) | ![IA_44.png](./IA_44.png) |
| ![IA_45.png](./IA_45.png) | ![IA_46.png](./IA_46.png) | ![IA_47.png](./IA_47.png) |
| ![IA_48.png](./IA_48.png) | ![IA_49.png](./IA_49.png) | ![IA_5.png](./IA_5.png) |
| ![IA_50.png](./IA_50.png) | ![IA_51.png](./IA_51.png) | ![IA_52.png](./IA_52.png) |
| ![IA_53.png](./IA_53.png) | ![IA_54.png](./IA_54.png) | ![IA_55.png](./IA_55.png) |
| ![IA_56.png](./IA_56.png) | ![IA_57.png](./IA_57.png) | ![IA_58.png](./IA_58.png) |
| ![IA_6.png](./IA_6.png) | ![IA_7.png](./IA_7.png) | ![IA_8.png](./IA_8.png) |
| ![IA_9.png](./IA_9.png) |
36 changes: 36 additions & 0 deletions sources/USACHIN/IA/util3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# generar la tabla para las imagenes
import os
N_COLS = 3
def create_gallery_md(folder_path, output_md='gallery.md'):
# Obtiene la lista de todos los archivos en la carpeta especificada
all_files = os.listdir(folder_path)
# Filtra solo las imágenes (por simplicidad, vamos a suponer que son .jpg y .png)
image_files = [f for f in all_files if f.lower().endswith(('.jpg', '.png'))]

# Comienza a escribir el archivo .md con codificación UTF-8
with open(output_md, 'w', encoding='utf-8') as md_file:
# Encabezado del archivo
md_file.write("# Colección de USACHINES IA\n\n")

# Comienza la tabla
for index, image in enumerate(image_files):
# Header para renderizar la tabla
if index == 3:
md_file.write("| --------- | -------- | -------- |\n")
# Ruta relativa para Markdown
relative_path = os.path.join(folder_path, image)

# Si es el inicio de una fila
if index % N_COLS == 0:
md_file.write('| ')

# Añade la imagen
md_file.write(f'![{image}]({relative_path}) | ')

# Si es el final de una fila o es la última imagen
if (index + 1) % N_COLS == 0 or (index + 1) == len(image_files):
md_file.write('\n')

if __name__ == '__main__':
# Cambia 'ruta_de_tu_carpeta' por la ruta de tu carpeta de imágenes
create_gallery_md('./')
Binary file added sources/more_pages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a878f6e

Please sign in to comment.