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
@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 28, 2025 20:09
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 22, 2025 07:51
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

@KRostyslav
KRostyslav / tsconfig.json
Last active May 19, 2025 05:04
tsconfig.json с комментариями.
// Файл "tsconfig.json":
// - устанавливает корневой каталог проекта TypeScript;
// - выполняет настройку параметров компиляции;
// - устанавливает файлы проекта.
// Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта.
// Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта.
// Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга.
// Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути.
// Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию.
// Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json".