Skip to content

Instantly share code, notes, and snippets.

View mugan86's full-sized avatar
💻
💪💪

Anartz Mugika Ledo mugan86

💻
💪💪
View GitHub Profile

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">
@mugan86
mugan86 / hello.tsx
Created July 2, 2023 17:19
Qwik library
import { component$ } from "@builder.io/qwik";
export interface HelloProps {
name: string;
age?: number;
}
export const Hello = component$((props: HelloProps) => {
const { name, age } = props;
return (
<div>
@mugan86
mugan86 / bajo_deba.geojson
Created December 28, 2022 18:26
GeoJSON - Turismo / Gastronomía
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mugan86
mugan86 / overpass_tourism_mapcss.txt
Created December 28, 2022 18:16
Map CSS - Tourism
{{style:
node[tourism=museum]
{ color:blue; fill-color:blue; }
node[tourism=motel]
{ color:red; fill-color:red; fill-opacity: 0.5}
node[tourism=hostel], node[tourism=hotel]
{ color: yellow; fill-color: green }
}}
@mugan86
mugan86 / index_spec.ts
Created December 4, 2022 10:37
Basic testing with Angular Schematics
import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
const collectionPath = path.join(__dirname, '../collection.json');
describe('hello', () => {
it('Execute with default args', async () => {
const runner = new SchematicTestRunner('schematics', collectionPath);
const tree = await runner
@mugan86
mugan86 / donostia-sport-stadiums.geojson
Created October 24, 2022 17:46
Donostia Sport Stadiums
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.