Skip to content

Instantly share code, notes, and snippets.

View vitalybaev's full-sized avatar

Vitaly Baev vitalybaev

View GitHub Profile
@vitalybaev
vitalybaev / install-gnustep.sh
Created December 3, 2020 15:41 — forked from starbugs/install-gnustep.sh
A tiny shell script for installing GNUstep and libobjc2 automatically on Ubuntu 12. I recommend that you download this script to a distinct folder "gnustep-installer". It will download and unpack a couple of tar packages. For more information see my blog post http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-…
#!/bin/bash
#
# Written by Tobias Lensing, http://tlensing.org
# For more information see http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-objective-c-2-0-blocks-runtime-gcd-on-ubuntu-12-04/
#
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' curl | grep "install ok installed")
echo Checking for curl: $PKG_OK
if [ "" == "$PKG_OK" ]; then
sudo apt-get install curl -y
@vitalybaev
vitalybaev / .eslintrc.js
Created October 4, 2021 11:32 — forked from azinit/.eslintrc.js
imports-linting: order, access
/** Разрешенные импорты (для сортировки) */
const ALLOWED_PATH_GROUPS = ["pages/**", "features/**", "entities/**", "shared/**"].map(
(pattern) => ({
pattern,
group: "internal",
position: "after",
}),
);
/** Для запрета приватных путей */
@vitalybaev
vitalybaev / createDebouncedAsyncThunk.ts
Created August 29, 2022 18:06 — forked from sarakusha/createDebouncedAsyncThunk.ts
A debounced analogue of `createAsyncThunk` from `@reduxjs/toolkit`
import { createAsyncThunk, AsyncThunkPayloadCreator, AsyncThunk } from '@reduxjs/toolkit';
type DebounceSettings = {
/**
* The maximum time `payloadCreator` is allowed to be delayed before
* it's invoked.
* @defaultValue `0`
*/
maxWait?: number;
/**