Skip to content

Instantly share code, notes, and snippets.

View everget's full-sized avatar
🎯
Focusing

Alex Orekhov everget

🎯
Focusing
View GitHub Profile
@KiT-Maverik
KiT-Maverik / AI prompt for React component review.md
Created September 8, 2024 08:36
This prompt is written for JetBrains IDE, so it uses $SELECTION variable. If you are planning to use this prompt somewhere else, replace it with statement, which matches your context.

Persona: You are an experienced React developer, well-versed in React, JavaScript, and TypeScript best practices. You understand how to optimize performance, manage state effectively, and handle lifecycle methods in functional components.

Task: Please review the following React component. Your goal is to check for potential problems and suggest improvements based on the following criteria:

  1. Best Practices: Ensure that React, JavaScript, and TypeScript best practices are being followed. Point out any areas where the code could be improved in terms of structure, logic, or performance.

  2. Hook Dependencies:

@KiT-Maverik
KiT-Maverik / Cover letter GPT assistant prompt.txt
Last active October 10, 2024 01:20
GPT assistant for writing tailored cover letters based on job description. To achieve maximum. eficiency, add a file describing your profile in knowledge base.
You are a rockstar TS developer. Your traits are precisely described in a profile.json file. Information from that file describes your personal and professional characteristics. All of them are true, and you can refer to them in further discussion.
You will be provided with job descriptions. Your mission is to initiate a discussion with a posting company. You want to get the best possible first impression. Read carefully the job description. Identify company needs. Find anything that matches your profile and put it in a "company needs" list. Now re-read this list. Some items may be more desirable than others. Usually meat bags label them with words like: "must have", "is a must", "preferable", "good to have" (keep it in mind, that it is not the complete list - there may be other wordings). If you find any list items like this, put them in detached "top priority needs" list.
Now, it's time to construct your letter. You're going to keep it short. Your limit is 3 paragraphs, up to 5 sentences each, where eac
@kaigouthro
kaigouthro / Pine_Script_5_Mini_Reference.md
Last active March 12, 2025 06:27
A minimal reference to pine script v5

Pine Script Mini-Reference

This document provides a concise reference for Pine Script, a programming language specifically designed for trading strategies and indicators within TradingView.

Operators

Arithmetic Operators

Operator Description

defaults:

  • npm config set init-author-name ""
  • npm config set init-author-url ""
  • npm config set init-author-email ""
  • npm config set init-license "ISC"
  • npm config set init-version "1.0.0"

custom (example)

  • npm config set init-author-name "Tierney Cyren"
  • npm config set init-author-url "https://bnb.im"
@taliesinb
taliesinb / math-unicode-symbols.txt
Last active January 12, 2025 04:47
List of useful mathematical unicode symbols
ALMOST EQUAL TO ≈
ANGLE ∠
ASTERISK OPERATOR ∗
ASYMPTOTICALLY EQUAL TO ≃
BALLOT X ✗
BLACK RIGHTWARDS ARROWHEAD ➤
BLACK SQUARE ■
BOTTOM SQUARE BRACKET ⎵
CHECK MARK ✓
CIRCLED PLUS ⊕

Various command line applications use an Interpreter Directive to define how they should be run.

#! js -m foo
#! node foo
@zmts
zmts / tokens.md
Last active April 27, 2025 21:01
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@getify
getify / number-prototype-iterator.js
Created January 25, 2017 23:52
Make JavaScript Great Again
Object.defineProperty(Number.prototype,Symbol.iterator,{
*value({ start = 0, step = 1 } = {}) {
var inc = this > 0 ? step : -step;
for (let i = start; Math.abs(i) <= Math.abs(this); i += inc) {
yield i;
}
},
enumerable: false,
writable: true,
configurable: true
@wojteklu
wojteklu / clean_code.md
Last active April 25, 2025 12:19
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active April 7, 2025 02:00
Vanilla JavaScript Quick Reference / Cheatsheet