Skip to content

Instantly share code, notes, and snippets.

View webistomin's full-sized avatar
💙
Wondering why my code works.

Alexey Istomin webistomin

💙
Wondering why my code works.
View GitHub Profile
@kettanaito
kettanaito / README.md
Last active May 20, 2026 04:59
Publishing to npm in 2026

Prerequisites

  • Use Node.js v24. Trusted Publishing does not work on earlier versions of Node.js.

Steps

  1. Go to "Account > Access Tokens" and click "Generate Access Token".
  2. Give the new token "read and write" persmissions to "All packages".
  3. If you have 2FA enabled on npm (which you should), check the "Bypass 2FA" checkbox neatly hidden in the UI. Otherwise, npm will fail with an error demanding an OTP during automatic publishing.
  4. Create the token.
@KiT-Maverik
KiT-Maverik / Prompt for generating commit messages.txt
Created September 7, 2024 11:43
AI prompt for generating commit messages. (Currently available in JetBrains IDE)
Analyze the code changes provided and generate a commit message. The message should consist of two parts:
A short description (no more than 50 characters) summarizing the most important change.
Three sentences explaining the changes in detail, focusing on what was changed, why it was changed, and its impact on the codebase.
Separate the short description and detailed explanation with an empty line.
@edtoken
edtoken / Javascript-Typescript-Knowledge-NOTE-v2.md
Last active June 14, 2025 18:05
Javascript-Typescript-Knowledge-NOTE-v2.md

See outdated v1 here

Description

Hello, my name is Ed. I am working on that document that aimed at assisting developers and myself in refreshing our knowledge related to our work with Typescript, Javascript, and other related technologies.

Think of this document as a "database" filled with useful resources. Some of the links may cover basic concepts; however, they could still prove to be valuable for some individuals!


@sindresorhus
sindresorhus / esm-package.md
Last active June 20, 2026 16:20
Pure ESM package

Pure ESM package

The package that linked you 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.
@dominikwilkowski
dominikwilkowski / README.md
Last active May 20, 2026 13:57
ANSI codes for cli controled output

ANSI escape sequences

ANSI escape sequences can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.

A great article about it can be found here.

Content

@modjke
modjke / app.js
Last active September 24, 2020 12:49 — forked from adriandmitroca/app.js
Lottie, automatically fixing SVG scaling issue on Internet Explorer 11, but it's actually runnable on Internet Explorer 11 and no jQuery
function lottieIeFixer (el, perspective) {
if (typeof perspective === 'undefined') {
perspective = 'width';
}
if (!window.navigator.userAgent.indexOf('Windows') > -1 &&
!window.navigator.userAgent.indexOf('rv:11.0') > -1) {
return;
}
@ai
ai / requirements.md
Last active December 30, 2024 23:34
Website requirements

Amplifr logo

Amplifr Landings Rules

Amplifr’s rules for landing pages created by outsource.

Requirements