Skip to content

Instantly share code, notes, and snippets.

View Jonatandb's full-sized avatar
👨‍🚀
Working from home

Jonatandb Jonatandb

👨‍🚀
Working from home
View GitHub Profile
@Jonatandb
Jonatandb / git-tag-delete-local-and-remote.sh
Created November 28, 2022 18:05 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@Jonatandb
Jonatandb / esm-package.md
Created May 15, 2022 14:57 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package linked to from here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@Jonatandb
Jonatandb / Sobre_Gist.md
Created May 3, 2022 19:22 — forked from renatojobal/Sobre_Gist.md
¿Qué es un gist en GitHub?

¿Qué es un Gist en GitHub y para qué sirve?

Un gist es una forma que se tiene para poder compartir código usando GitHub.

Cuando tenemos un código que no es lo suficientemente grande para crear un repositorio, entonces creamos un gist. Aunque gist funciona básicamente cómo un repositorio, ya que se le puede hacer un fork o clonarlo. Así mismo se puede editar y las personas pueden comentar el gist.

Usos del gist

Muchas personas usan gist cómo un portapapeles. Para subir código que siempre sueles usar en diferentes proyectos. También se suele usar cómo una forma de hacer posts. Cómo este que estas viendo.

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?