function isSubset(array1, array2) {
const filterdArray2Set = [...new Set(array2)]; // return uniq array
let subset = false
filterdArray2Set.forEach((item) => {
subset = array1.includes(item)
if (!subset) return;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :ios, '9.0' | |
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
def add_flipper_pods!(versions = {}) | |
versions['Flipper'] ||= '~> 0.33.1' | |
versions['DoubleConversion'] ||= '1.1.7' | |
versions['Flipper-Folly'] ||= '~> 2.1' | |
versions['Flipper-Glog'] ||= '0.3.6' | |
versions['Flipper-PeerTalk'] ||= '~> 0.0.4' | |
versions['Flipper-RSocket'] ||= '~> 1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
const codeSplittingHoc = impoertComponent => | |
class componentName extends React.Component { | |
state = { | |
component: null // default state for component | |
} | |
async componentDidMount() { | |
const { default: component } = await impoertComponent(); // import default from function and assign it to component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zsh | |
sudo apt install zsh | |
# If you have problem with adminstration folder | |
# remove lock folder from desk and cash follow next setps (optioal) | |
sudo rm /var/lib/apt/lists/lock | |
#remove from cash | |
sudo rm /var/cache/apt/archives/lock | |
sudo rm /var/lib/dpkg/lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# instructio of first using postger | |
# OPEN CLI AS ROOT | |
sudo -u postgres psql | |
#command above open cli as super admin | |
#CREATE USER | |
sudo -u postgres createuser <username> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ngix + required packages | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install curl git-core nginx build-essential tcl8.5 -y | |
sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev | |
# mysql |