Skip to content

Instantly share code, notes, and snippets.

View k8adev's full-sized avatar
🎯
Working to change the community

Keit Oliveira k8adev

🎯
Working to change the community
View GitHub Profile
@k8adev
k8adev / npm-8.md
Created November 23, 2023 11:31
npm 8
  • Node.js Compatibility: npm 8 is included with Node.js 16 and is expected to be included with Node.js 17. It drops support for Node.js 10, which is no longer maintained.

  • Package Lockfile Format: npm 8 uses package-lock.json format v2 by default, which is backwards compatible with npm 7.

  • Override Option: npm 8 introduces the --override option, which allows you to individually override the configurations in the .npmrc files.

  • Updated Dependencies: npm 8 updates many dependencies and removes others, which can lead to different behaviors and new features.

  • Strict Peer Dependencies: npm 7 introduced automatic installation of peer dependencies, which continues in npm 8. However, npm 8 has made this installation stricter. If a package cannot be installed due to a conflicting peer dependency, npm 8 will block the installation.

@k8adev
k8adev / promote-dev-cool-project.yml
Created July 3, 2020 16:00
Example of workflow for monorepo with GitHub Action 📦
name: promote-dev-cool-package
on:
push:
paths:
- packages/cool-package/**
branches-ignore:
- master
- refs/tags/*
@k8adev
k8adev / .hyper.js
Last active November 4, 2019 21:10
My personal settings for Hyper ✨
/**
* @see {@link https://hyper.is/}
*/
module.exports = {
config: {
updateChannel: 'stable',
fontSize: 14,
fontFamily: 'Operator Mono',
fontWeight: 'normal',
fontWeightBold: 'bold',
@k8adev
k8adev / svgfixer.js
Created June 17, 2016 01:23 — forked from leonderijke/svgfixer.js
Fixes references to inline SVG elements when the <base> tag is in use.
/**
* SVG Fixer
*
* Fixes references to inline SVG elements when the <base> tag is in use.
* Firefox won't display SVG icons referenced with
* `<svg><use xlink:href="#id-of-icon-def"></use></svg>` when the <base> tag is on the page.
*
* More info:
* - http://stackoverflow.com/a/18265336/796152
* - http://www.w3.org/TR/SVG/linking.html

Sometimes I read about..

The light version of What I learned today by a front-end developer without time to learn something new about development all day.

@k8adev
k8adev / bins-elo.md
Last active August 1, 2023 14:44
Bins para validação de cartões de crédito ELO

Validação para cartão de crédito ELO

Bins

Os bins foram ordenados pelo início dos 4 primeiros dígitos.

  • 4011
  • 4389 3 5
  • 4514 1 6
  • 4576