Skip to content

Instantly share code, notes, and snippets.

View mugan86's full-sized avatar
💻
💪💪

Anartz Mugika Ledo mugan86

💻
💪💪
View GitHub Profile
@mugan86
mugan86 / article.md
Last active March 13, 2024 06:58 — forked from anartzdev/article.md
Article information - ESLint + Prettier + Husky + Gitflow in Angular

El objetivo principal de este artículo es proporcionar los pasos a seguir con las instrucciones detalladas y necesarias para poder configurar un proyecto de Angular con las herramientas que nos va a ayudar a trabajar con buenas prácticas.

Estas buenas prácticas que queremos aplicar se realizarán tanto en la escritura del código, siguiendo una línea estable de escritura con unas normas preestablecidas y también en lo que respecta a la adición de mensajes de commit donde realizaremos las configuraciones necesarias con el objetivo de respetar la convención para escribir los mensajes de commit siguiendo una estructura común que se usará en infinidad de proyectos, con lo que esto proporcionará una forma de trabajar estable y correcta mediante git flow escribiendo mensajes de commit.

Preparativos para empezar a trabajar

El tutorial **se desarrollará con una aplicación Angular en la ver

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 / take-all-branches.sh
Created April 21, 2020 23:35
Descargar todas las ramas remotas a local
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@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 }
}}