create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| // Файл "tsconfig.json": | |
| // - устанавливает корневой каталог проекта TypeScript; | |
| // - выполняет настройку параметров компиляции; | |
| // - устанавливает файлы проекта. | |
| // Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта. | |
| // Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта. | |
| // Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга. | |
| // Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути. | |
| // Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию. | |
| // Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json". |
| import React from 'react'; | |
| import { connect } from 'formik'; | |
| class ErrorFocus extends React.Component { | |
| componentDidUpdate(prevProps) { | |
| const { isSubmitting, isValidating, errors } = prevProps.formik; | |
| const keys = Object.keys(errors); | |
| if (keys.length > 0 && isSubmitting && !isValidating) { | |
| const selector = `[id="${keys[0]}"]`; | |
| const errorElement = document.querySelector(selector); |
| ( | |
| /** | |
| * @param {object} window - Reference to window object to make method shorter. | |
| * @param {object} document - Reference to the element that will contain the script tag and to make method shorter. | |
| * @param {string} scriptTagName - Contains the word 'script' to make method shorter. | |
| * @param {string} scriptAddress - The address of the main script that we need to load. | |
| * @param {string} globalName - This allows dynamically define global variable name to avoid conflicts with other SDKs. | |
| * @param {object} scriptElement - Stores the element that will be created later (result variable to avoid declaration within the method body) | |
| * @param {object} otherScriptElement - The script tag that already located in the body before which we'll inject a newly created script tag (result variable to avoid declaration within the method body) | |
| */ |
| const { resolve } = require('path'); | |
| /** | |
| * Resolve tsconfig.json paths to Webpack aliases | |
| * @param {string} tsconfigPath - Path to tsconfig | |
| * @param {string} webpackConfigBasePath - Path from tsconfig to Webpack config to create absolute aliases | |
| * @return {object} - Webpack alias config | |
| */ | |
| function resolveTsconfigPathsToAlias({ | |
| tsconfigPath = './tsconfig.json', |
| import gulp from 'gulp'; | |
| import sourcemaps from 'gulp-sourcemaps'; | |
| import buffer from 'gulp-buffer'; | |
| import uglify from 'gulp-uglify'; | |
| import tap from 'gulp-tap'; | |
| import browserify from 'browserify'; | |
| import babel from 'babelify'; | |
| gulp.task('build', () => { |
| sass/ | |
| | | |
| |– base/ | |
| | |– _reset.scss # Reset/normalize | |
| | |– _typography.scss # Typography rules | |
| | ... # Etc… | |
| | | |
| |– components/ | |
| | |– _buttons.scss # Buttons | |
| | |– _carousel.scss # Carousel |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| !!! 5 | |
| html(class='no-js') | |
| head | |
| meta(charset='utf-8') | |
| meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
| title | |
| meta(name='description', content='') | |
| meta(name='viewport', content='width=device-width, initial-scale=1') |