Skip to content

Instantly share code, notes, and snippets.

View pridees's full-sized avatar
🥌

Alexo pridees

🥌
View GitHub Profile
@pridees
pridees / FetchedResultsPublisher.swift
Created February 7, 2022 08:01 — forked from darrarski/FetchedResultsPublisher.swift
Swift-Combine-CoreData-Fetched-Results-Publisher
import Combine
import CoreData
public final class FetchedResultsPublisher
<ResultType>
: Publisher
where
ResultType: NSFetchRequestResult
{
import logo from './logo.svg';
import './App.css';
import { useCallback, useEffect, useState } from 'react'
type ObjectDidChange = (forceUdpateValue: number) => void
type ForceUpdateKey = number
class Model {
private forceUdpateKey: number = 0
public objectDidChangeListeners: ObjectDidChange[] = []
@pridees
pridees / .zshrc
Last active October 5, 2021 10:00
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="~/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
// let assert = require('assert').strict;
const tree = {
name: "Program Files",
type: "directory",
size: undefined,
children: [
{
name: "File2",
type: "file",
// REDUX
// Action
type Action<T = any> = {
actionType: T
}
type AnyAction<Payload = any> = Action & {
payload: Payload
}
@pridees
pridees / Color+Extension.swift
Created December 19, 2020 10:13
SwiftUI Color Extension
//
// Color+Extension.swift
// Helpers pack with:
//
// 1 - encode/decode RGBA
// 2 - accessibleFontColor depends on background color
// 3 - isLightColor - color lightness detection
//
// Created by Alexo on 19.12.2020.
//
# Привет тегов
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Из джуниора в сеньора: 9 переживаний на пути к мастерству">
<meta name="twitter:description" content="Если в своих карьерных мечтах вы стремитесь превратиться в сеньора, будьте готовы пережить эти девять волн">
<meta name="twitter:image" content="https://techrocks.ru/wp-content/uploads/2018/07/senior-developer-435x218.png">
<!-- /JM Twitter Cards by Julien Maury 9.4 -->
<meta property="og:image" content="https://techrocks.ru/wp-content/uploads/2018/07/senior-developer.png" /><link rel="icon" type="image/png" href="https://techrocks.ru/wp-content/uploads/2017/07/favicon-16x16.png">
<!-- This site is optimized with the Yoast SEO plugin v9.4 - https://yoast.com/wordpress/plugins/seo/ -->
<meta name="description" content="Статья расскажет о девяти ситуациях, в которые вы обязательно попадете, поднимаясь к вершинам мастерства. Некоторые из них приятные, другие неудобные."/>
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
@pridees
pridees / tslint.json
Last active March 21, 2018 16:26
tslint.json
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"no-empty-interface": true,
"no-console": false,
"no-unused-variable": false,