Skip to content

Instantly share code, notes, and snippets.

View timseriakov's full-sized avatar
💬
In git we trust

Tim Seriakov timseriakov

💬
In git we trust
View GitHub Profile
@mikeslattery
mikeslattery / .idea-lazy.vim
Last active May 15, 2025 13:21
LazyVim mappings for Jetbrains IDEs
" ~/.idea-lazy.vim
" LazyVim mappings for Jetbrains IDEs
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle
" IDEAVim
" Which-Key
" IdeaVim-Sneak
" To install, add this to the top of your ~/.ideavimrc:
@renerbaffa
renerbaffa / extends.ts
Last active September 4, 2023 15:24
What to extend in order to support spread props with typescript
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
icon: React.ReactNode
// ...other props
}
interface CustomDivProps extends React.HTMLAttributes<HTMLDivElement> {
content: string
// ...other props
}
@baumandm
baumandm / Chakra-UI x React-datepicker.md
Last active May 29, 2024 05:29
Chakra-UI x React-datepicker

⚠️ I'd recommend using this fork by @igoro00 which has better theme support.


Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.

<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
@kasymovga
kasymovga / RexuizServerSetup.md
Last active January 26, 2024 20:49
Rexuiz Server Setup

Requirements:

  • Any modern linux distribution with systemd (CentOS Stream, Oracle Linux 8, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04).
  • Public IP address
  • Basic skills of working with linux console

Step 0. Prepare your system

Disable or setup firewall. For CentOS:

@jeffreymeng
jeffreymeng / useAuthState-introduction.md
Last active September 4, 2023 15:27
Gatsby React Firebase Authentication Hook

As opposed to useAuthState in react-firebase-hooks (which doesn't work with gatsby builds), this is designed to work with gatsby-plugin-firebase.

Requires React and firebase

Usage example:

import firebase from "gatsby-plugin-firebase"
import useAuthState from ...
@dsafreno
dsafreno / firebase-hook.js
Created January 14, 2020 16:52
React Hooks for loading Firebase Data
import React, { useReducer, useEffect, useRef } from 'react';
import firebase from 'firebase/app';
import equal from 'deep-equal';
function filterKeys(raw, allowed) {
if (!raw) {
return raw;
}
let s = new Set(allowed);
return Object.keys(raw)
@hacknug
hacknug / tailwind.config.js
Created February 8, 2019 16:54
TailwindCSS default config
/*
Tailwind - The Utility-First CSS Framework
A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
Welcome to the Tailwind config file. This is where you can customize
Tailwind specifically for your project. Don't be intimidated by the
length of this file. It's really just a big JavaScript object and
@KRostyslav
KRostyslav / tsconfig.json
Last active May 3, 2025 13:15
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".
@neretin-trike
neretin-trike / pug.md
Last active April 29, 2025 08:20
Туториал по HTML препроцессору Pug (Jade)
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active April 28, 2025 16:22
Vanilla JavaScript Quick Reference / Cheatsheet