Skip to content

Instantly share code, notes, and snippets.

View YanLobat's full-sized avatar

Yan YanLobat

  • Portugal, Lisboa
View GitHub Profile
// eslint-disable-next-line no-magic-numbers
const TOKEN_UPDATE_TIME_MS = 5 * 60 * 1e3;
const abortTimerToRefreshToken = createEvent();
const timerToRefreshToken = createEffect();
const $canRequestToken = combine(
refreshToken.pending,
@fesor
fesor / README.md
Last active November 3, 2023 06:50
What is OOP

Что такое ООП

Ссылки на материалы, позволяющее лучше понять оригинальную идею.

Quotes

Java and C++ make you think that the new ideas are like the old ones. Java is the most distressing thing to hit computing since MS-DOS.

Alan Kay

@zerobias
zerobias / h.ts
Last active April 18, 2022 08:23
Declarative stack-based DOM api
import {
createStore,
createEvent,
is,
clearNode,
forward,
sample,
Store,
Event,
launch
import React, { useLayoutEffect, useRef } from 'react'
import { useStore } from 'effector-react'
import * as effector from 'effector'
import { pathOr } from 'ramda'
const trackCreateStore = effector.createEvent('trackCreateStore')
const trackCreateEvent = effector.createEvent('trackCreateEvent')
const trackCreateEffect = effector.createEvent('trackCreateEffect')
const trackCreateStoreObject = effector.createEvent('trackCreateStoreObject')