Skip to content

Instantly share code, notes, and snippets.

View irradev's full-sized avatar
🎯
Focusing

Israel Vazquez irradev

🎯
Focusing
View GitHub Profile
@irradev
irradev / configurar-node-ts.md
Created August 31, 2024 04:21 — forked from Klerith/configurar-node-ts.md
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@irradev
irradev / can-reconfigure.js
Created October 11, 2022 19:47
Exercise 25 advent.js
import { describe, expect, it } from 'vitest'
const canReconfigure = (from, to) => {
if (typeof from !== 'string') throw new Error('from is not a string')
if (typeof to !== 'string') throw new Error('from is not a string')
const hasSameLength = from.length === to.length
if (!hasSameLength) return false
const fromLetters = new Set(from)
@irradev
irradev / Title.js
Created September 7, 2022 17:07 — forked from azamatsmith/Title.js
Reusable media queries with Styled Components
import styled from 'styled-components';
import { media } from 'utils/mediaQuery';
const Title = styled.h1`
font-size: 24px;
${media.medium`
font-size: 30px;
`}
${media.large`
font-size: 36px;
@irradev
irradev / reset.css
Created September 7, 2022 14:11 — forked from DavidWells/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,