This file contains hidden or 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
/** | |
* @see https://github.com/babel/babel-loader/issues/171#issuecomment-464721341 | |
*/ | |
const transpileDependencies = ['regexpu-core']; | |
const include = new RegExp( | |
`node_modules/(${transpileDependencies.join('|')})/.*` | |
); | |
config.module.rules.push({ |
This file contains hidden or 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
/** | |
* Генерировать ID | |
* | |
* Первая часть ID основана на Math.random, вторая часть основана | |
* на текущем времени обращения пользователя к функции. ID состоит из символов | |
* 36-ти значной системы счисления. | |
* | |
* Нельзя использовать только Math.random | |
* @see https://www.tomanthony.co.uk/blog/googlebot-javascript-random/ | |
*/ |
Requirements
- homebrew
- fly
mkdir ~/.bin
cp fly ~/.bin/
echo "export PATH=$PATH:~/.bin" >> .bash_profile
fly completion --shell bash > $(brew --prefix)/etc/bash_completion.d/fly
Нужно подключение к интернету, чтобы успешно выполнить в терминале команды, которые создадут глобальный gitignore-файл:
echo -e '# This file based on https://github.com/github/gitignore' > ~/.gitignore_global
echo -e '\n\n### MacOS\n' >> ~/.gitignore_global
curl https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore >> ~/.gitignore_global
echo -e '\n\n### Linux\n' >> ~/.gitignore_global
curl https://raw.githubusercontent.com/github/gitignore/master/Global/Linux.gitignore >> ~/.gitignore_global
echo -e '\n\n### Windows\n' >> ~/.gitignore_global
curl https://raw.githubusercontent.com/github/gitignore/master/Global/Windows.gitignore >> ~/.gitignore_global
This file contains hidden or 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
version: '3' | |
services: | |
nginx: | |
image: 'nginx:alpine' | |
ports: | |
- 80:80 | |
volumes: | |
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro | |
- ./out:/usr/share/nginx/html:ro |
This file contains hidden or 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 * as React from "react"; | |
import { CSSProperties, HTMLProps, memo, useCallback, useState } from "react"; | |
const createElevator = (isFull = false) => ({ | |
/** | |
* Лифт активирован кнопкой | |
*/ | |
isActive: false, | |
/** |
This file contains hidden or 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
# Usage: IE={box} vagrant up | |
# | |
# Eg. IE=XPIE6 vagrant up | |
boxes = { | |
"XPIE6" => "http://aka.ms/vagrant-xp-ie6", | |
"XPIE8" => "http://aka.ms/vagrant-xp-ie8", | |
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7", | |
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8", | |
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9", |