Skip to content

Instantly share code, notes, and snippets.

View Kurzdor's full-sized avatar

Paul Ekshmidt Kurzdor

  • Uzhgorod, Ukraine
View GitHub Profile
@Kurzdor
Kurzdor / external.json
Last active February 16, 2024 20:01
Presence TweakVar External Data
{
"battleTypes/300": "To The Mars!",
"version": 1
}
@Kurzdor
Kurzdor / README.md
Last active February 10, 2021 20:07
@scarf/scarf mock

I created a gist which can patch Scarf Analytics (@scarf/scarf on npm) with this Gist that replaces this lib on postinstall because NPM/Yarn gives you an ability to install any gist or repository like any package to node_modules folder.

Before you install it, delete @scarf/scarf folder in your local project node_modules folder if present (probably you are using some of this packages) or if you are going to install any of those packages in your current project.

Install mock version from Gist instead of local project version which sends your data with this commands depending of what package manager you use:

npm install --save-dev gist:bd5c18861b76eb34f068bf2ed7de903e
yarn add gist:bd5c18861b76eb34f068bf2ed7de903e --dev
pnpm install --save-dev gist:bd5c18861b76eb34f068bf2ed7de903e
@Kurzdor
Kurzdor / routers.api.md
Last active June 19, 2020 14:17
Most popular routers API

React-router

Component-based + Hooks-based API

import React from "react";
import {
  BrowserRouter as Router,
  Switch,
  Route,
  Link
@Kurzdor
Kurzdor / useElYOverflow.js
Created May 30, 2019 19:07
useElYOverflow
const useElYOverflow = (ref, offset) => {
useEffect(() => {
const checkOverflow = () => {
const isOverflowing =
ref.current.offsetHeight + offset * 2 > window.innerHeight
if (isOverflowing) {
ref.current.classList.add('overflowing')
return
<style>
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}