Skip to content

Instantly share code, notes, and snippets.

View klinkov's full-sized avatar

Yuriy Klinkov klinkov

  • London
  • 09:27 (UTC +01:00)
View GitHub Profile
@klinkov
klinkov / cloudSettings
Last active August 19, 2020 16:57
VSCode settings
{"lastUpload":"2020-08-19T16:57:25.812Z","extensionVersion":"v3.4.3"}
@klinkov
klinkov / js_tips.js
Last active August 23, 2021 17:18
GPB useful links
Date-fns
https://date-fns.org
https://github.com/you-dont-need/You-Dont-Need-Momentjs
Webpack
https://habr.com/ru/company/skbkontur/blog/351080/ // !!!!
https://www.excitoninteractive.com/articles/series/1002/webpack4
https://habr.com/ru/company/jugru/blog/342842/
https://medium.com/fafnur/сборка-typescript-приложения-с-помощью-webpack-8cd04eba6a8f
https://github.com/webpack-contrib/webpack-bundle-analyzer
function mockServerCall () {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
'status': 200,
'content-type': 'application/json',
'data' : {
dataOfInterest: 42
}
})
https://medium.freecodecamp.org/how-to-create-a-timeline-component-with-react-1b216f23d3d4
interface IUser
<
TName = string,
TAge = number,
TAlt = string | number
> {
name: TName;
age: TAge;
phone: TAlt;
}
@klinkov
klinkov / gist:ba61de581a9190634ce355e30c3bf964
Created February 10, 2019 11:31
SVG fill rulette effect
https://codepen.io/anon/pen/PVRWqL
@klinkov
klinkov / gist:3906133d124962bb8a5e6c797b866cee
Created January 21, 2019 09:49 — forked from shaiguitar/gist:627d52ebc0c03af488477b5d636a8909
Using docker compose to mount current working directory dynamically into the container
# mount volume PWD on host to /app in container.
shai@lappy ~/tmp/example-working-docker-compose-environment-vars [master *] ± % cat docker-compose.yml
version: "3"
services:
some_server:
...
volumes:
- $PWD:/app
sudo killall AppleCameraAssistant;sudo killall VDCAssistant
@klinkov
klinkov / README-Template.md
Created April 13, 2018 18:08 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@klinkov
klinkov / navSaga.js
Created February 2, 2018 18:02 — forked from alexrussell/navSaga.js
Idea of how I have implemented a `goBackTo` saga for react-navigation.
export const goBackTo = function * goBackTo ({ payload: { routeName } }) {
const { nav } = yield select()
let targetIndex
for (let i = nav.index; i > 0; i--) {
if (nav.routes[i].routeName === routeName) {
targetIndex = i + 1
break
}