# Lunes 2022/10/31 semana B

Seguiremos con las prácticas planteadas:

# Lab Introduction to Systems Development" and Static Generators

Lab "Introduction to Systems Development" and Static Generators

# Repaso

El Lunes pasado vimos

# Front Matter Defaults

# Build a customized 404 page

En la entrega de esta práctica deberá implementar una página 404 personalizada usando async JS y web services.

Para hacer una página 404 personalizada lea la sección

  • 404 del capítulo de Jekyll en estos apuntes

puede ver la página en funcionamiento en esta web (opens new window)

# Exercise: REST API request to GH

Make request to GitHub REST to Get the weekly commit count (opens new window) using gh, JS and thunder client for VSCode

# github cli Using GH REST API

Examples:

➜  src git:(main) ✗ gh api \
  -H "Accept: application/vnd.github+json" \
  /repos/ULL-ESIT-DMSI-2223/ull-esit-dmsi-2223.github.io/stats/participation | head -n 1
{"all":[7,2,8,10,2,3,4,0,0,9,14,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,11,14,23,9,9,6,13],"owner":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}
1
2
3
4
➜  src git:(main) ✗ gh api \
  -H "Accept: application/vnd.github+json" \
  /repos/ULL-ESIT-DMSI-2223/ull-esit-dmsi-2223.github.io/stats/participation --jq '.all[51]'
13
1
2
3
4
➜  src git:(main) ✗ gh api \
  -H "Accept: application/vnd.github+json" \
  /repos/ULL-ESIT-DMSI-2223/ull-esit-dmsi-2223.github.io/stats/participation --jq '.all[-1]'       
13
1
2
3
4
➜  src git:(main) ✗ gh api \
  -H "Accept: application/vnd.github+json" \
  /repos/ULL-ESIT-DMSI-2223/ull-esit-dmsi-2223.github.io/stats/participation --jq '.all[(.all | length)-1]'
13
1
2
3
4

# Data Files

# Nuevo Lab "Async map"

Last Updated: 3 months ago