- Казан (3л)
- Мясо (600г)
- Рис (300г)
- Лук
- Морковь
- Масло подсолнечное
- Чеснок
- Приправы, соль
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
function getNoun(number, one, two, five) { | |
let n = Math.abs(number); | |
n %= 100; | |
if (n >= 5 && n <= 20) { | |
return five; | |
} | |
n %= 10; | |
if (n === 1) { | |
return one; | |
} |
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
'use strict'; | |
const signals = [ | |
'SIGUSR1', | |
'SIGTERM', | |
'SIGINT', | |
'SIGPIPE', | |
'SIGHUP', | |
'SIGTERM', | |
'SIGINT', |
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
'use strict'; | |
/* | |
If you are using docker, you must change CMD from | |
CMD node www-server.js | |
to | |
CMD ["node", "www-server.js"] | |
*/ | |
require('http-shutdown').extend() | |
var http = require('http'); |
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
alias grep='grep --color=auto' | |
alias ls='ls --color=auto' | |
#PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] ' | |
git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'; } | |
BRANCH='\033[00;33m$(git_branch)\033[0m' | |
PSC() { echo -ne "\[\033[${1:-0;38}m\]"; } | |
PR="1;36" # default color used in prompt is green | |
if [ "$(id -u)" = 0 ]; then |
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
function abstractMethod() { | |
return function (target, propertyKey: string, descriptor: PropertyDescriptor) { | |
console.log("am(): called"); | |
function abstractMethod() { | |
throw new TypeError('It is abstract method, this error should never be thrown') | |
} | |
abstractMethod.__abstractMethod = true; | |
descriptor.value = abstractMethod; | |
} | |
} |
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
stages: | |
- clean | |
- build | |
- check | |
variables: | |
## docker image names inside the YML file to use | |
CI_REGISTRY_IMAGE_c: $CI_REGISTRY_IMAGE/dev:${CI_COMMIT_SHORT_SHA} | |
CI_REGISTRY_IMAGE_l: $CI_REGISTRY_IMAGE/dev:latest | |
CI_REGISTRY_IMAGE_i: services_${CI_BUILD_ID}_api_v2 |
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
#!/usr/bin/env bash | |
i=0 | |
sp='/-\|' | |
n=${#sp} | |
STATUS='Created' | |
while [[ $STATUS == 'InProgress' || $STATUS == 'Created' ]] | |
do | |
sleep 1 |
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.7' | |
services: | |
test-node: | |
image: node:10 | |
environment: | |
NODE_ENV: ${NODE_ENV:-dev} | |
PORT: 8080 | |
working_dir: /home/node/app | |
volumes: |