Skip to content

Instantly share code, notes, and snippets.

View ivan-kleshnin's full-sized avatar
🏠
Working from home

Ivan Kleshnin ivan-kleshnin

🏠
Working from home
View GitHub Profile

Quest for a good UI library

Quick notes for myself.

MUI

  • Emotion based 📝
  • Large ecosystem 👍
  • A lot of components 👍
  • Also hooks and utils 👍
@ivan-kleshnin
ivan-kleshnin / course.md
Last active November 10, 2024 10:23
Some courses I've finished (a sample of a full list, as of now)
const experiences = [
// all `nulls`s
{id: 1, name: "FOO", startDateYear: null, startDateMonth: null, endDateYear: null, endDateMonth: null},
// three `null`s
{id: 2, name: "FOO", startDateYear: 2022, startDateMonth: null, endDateYear: null, endDateMonth: null},
{id: 3, name: "FOO", startDateYear: null, startDateMonth: 2, endDateYear: null, endDateMonth: null},
{id: 4, name: "FOO", startDateYear: null, startDateMonth: null, endDateYear: 2022, endDateMonth: null},
{id: 5, name: "FOO", startDateYear: null, startDateMonth: null, endDateYear: null, endDateMonth: 2},
@ivan-kleshnin
ivan-kleshnin / react-query-checks.tsx
Last active December 25, 2021 07:02
React-Query-Checkx
/*
Check this: https://tkdodo.eu/blog/status-checks-in-react-query
Check this: https://github.com/ivan-kleshnin/react-query-status-checks
*/
// TWO PARALLEL QUERIES, RESULTS ARE RENDERED SEPARATELY
export function Controller() : JSX.Element {
const query1 = useQuery("...first")
const query2 = useQuery("...second")

paqmind

ФУЛЛСТЕК РАЗРАБОТКА для продвинутых

Утомили пересказы документации и Hello-World туториалы?

На Paqmind регулярно публикуем уникальный авторский контент по
веб-разработке и программированию для уровней Junior+, Middle и выше.

  • современные технологии и тренды
@ivan-kleshnin
ivan-kleshnin / promise.js
Created June 19, 2019 11:33 — forked from vkarpov15/promise.js
Simple Promises/A+ Compliant Promise
const assert = (v, err) => {
if (!v) {
throw err;
}
};
let counter = 0;
class Promise {
constructor(executor) {
@ivan-kleshnin
ivan-kleshnin / design-for-non-designers.md
Last active May 20, 2019 08:59
Design resources for non-designers
function swap(i1, i2, xs) {
if (i1 == i2) return xs
return xs.reduce((z, x, i) => {
return i == i1 ? z :
i == i2 ? (i1 > i2 ? [...z, xs[i1], x] : [...z, x, xs[i1]]) :
[...z, x]
}, [])
}
// Например, переставить 'B' с i1 = 1 на i2 = 4

A tale of SSR

Attempts to recover our SSR functionality.

  1. After.js [-]
  • Semi-dead project. Suggest to switch to Razzle (its core)
  1. Razzle [-]