Skip to content

Instantly share code, notes, and snippets.

View mugan86's full-sized avatar
💻
💪💪

Anartz Mugika Ledo mugan86

💻
💪💪
View GitHub Profile
@mugan86
mugan86 / 1.md
Last active February 16, 2025 10:42
Umbral Lactico

El documento "Umbral Láctico: Bases fisiológicas y aplicación al entrenamiento" escrito por José López Chicharro y Davinia Vicente Campos, aborda los fundamentos fisiológicos del umbral láctico y su aplicación en el entrenamiento deportivo. A continuación, se presenta un resumen de los puntos más importantes:

1. Introducción al Umbral Láctico

  • El umbral láctico (UL) es un concepto clave en la fisiología del ejercicio, relacionado con la transición entre el metabolismo aeróbico y anaeróbico durante el ejercicio.
  • Se define como la intensidad de ejercicio en la que la concentración de lactato en sangre comienza a aumentar de manera significativa.
  • El UL es un indicador importante para evaluar el rendimiento en deportes de resistencia y para planificar el entrenamiento.

2. Bases Fisiológicas del Umbral Láctico

  • Producción de lactato: Durante el ejercicio, el lactato se produce como resultado de la glucólisis anaeróbica, especialmente cuando la demanda de energía supera l
@mugan86
mugan86 / gpx_create.js
Last active July 21, 2024 20:07
Track Points and Waypoints
// Array de puntos de track
const trackPoints = [
{"lat":43.178246,"lon":-2.417373,"ele":117.428,"time":"2024-07-20T18:05:57.140Z"},
{"lat":43.178197,"lon":-2.417127,"ele":119.989,"time":"2024-07-20T18:06:37.140Z"},
// ... otros puntos
{"lat":43.178248,"lon":-2.417394,"ele":117.181,"time":"2024-07-20T19:27:17.141Z"}
];
// Array de waypoints
const waypoints = [
Dinamyc form, pendiente de mejorar para incluso meter FormArray
https://stackblitz.com/edit/angular-ivy-p1g3rk?file=src%2Fapp%2Fdynamic-form%2Fdynamic-form.component.html
Desde un JSON:
https://stackblitz.com/edit/angular-ivy-sjwjqn?file=src%2Fapp%2Fjson-form%2Fjson-form.component.html
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, map, of, switchMap } from 'rxjs';
import { forkJoin } from 'rxjs/internal/observable/forkJoin';
@Injectable({
providedIn: 'root',
})
export class AppService {
constructor(private http: HttpClient) {}
@mugan86
mugan86 / activity_factor.json
Last active July 13, 2024 17:24
Factor de actividad
[
{
"id": 1,
"activity_es": "Inactiva",
"activity_en": "Inactive",
"details_es": "Inactiva total, encamado",
"details_en": "Total inactivity, bedridden",
"factor": 1.2
},
{

To calculate the pacing needed to run the second half of a half marathon faster than the first, we need to consider the total time to complete the race and the percentage decrease in time per lap.

Given:

Total time to complete the race: 4620 seconds Decrease percentage per lap: 3% Distance of a half marathon: 21.0975 kilometers Assuming that the race is divided into two equal halves, the distance for each half would be 21.0975/2 = 10.54875 kilometers.

Let’s denote the time taken to run the first half as T1 and the time taken to run the second half as T2. Since the total time is 4620 seconds, we have:

<!DOCTYPE html>
<html>
<head>
<title>Noticias</title>
<style>
.section {
width: 30%;
float: left;
padding: 10px;
}
@mugan86
mugan86 / hooks_useLocalstorage.tsx
Last active November 12, 2023 09:22
Bookmark Project
import { $, useSignal, useStore, useVisibleTask$} from "@builder.io/qwik";
export function useLocalStorage(key: string, loadingValue: boolean = true) {
const data = useStore<{key: string, value: any[]}>({
key,
value: []
});
const loading = useSignal(loadingValue);
useVisibleTask$(() => {
@mugan86
mugan86 / index.css
Last active October 29, 2023 09:53
Formulario básico
/* https://formbold.com/templates/newsletter-subscription-form*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
@mugan86
mugan86 / index-start.tsx
Last active October 28, 2023 17:40
Newsletter subscription Form with Qwik (With validations)
import {
component$
} from '@builder.io/qwik';
import type { DocumentHead } from '@builder.io/qwik-city';
export default component$(() => {
return (
<form>
<div class="field">
<div class="field__head">