npx eslint --format ./eslint-overrides-formatter.js .
View ESLint overrides formatter.md
View .asoundrc
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
ctl.equal { | |
type equal; | |
} | |
pcm.plugequal { | |
type equal; | |
# Modify the line below if you do not | |
# want to use sound card 0. | |
#slave.pcm "plughw:0,0"; | |
# by default we want to play from more sources at time: |
View Unofficial POSIX Shell Strict Mode.md
Unofficial POSIX Shell Strict Mode
Inspired by:
View challenge.sh
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 | |
set -eu | |
FILES=$(find . -maxdepth 1 -type f | sort) | |
# -------------- # | |
# FIX ME # | |
# vvvvvvvvvvvvvv # |
View work-n-rest.md
work-n-rest.sh
A POSIX shell script for executing long running tasks with pauses.
Usage examples
Work for 10 seconds, then rest for 10 seconds:
./work-n-rest.sh find ./ -name '*.log'
View Вёрстка глазами программиста.md
Вёрстка глазами программиста
Проблемы и их возможные решения
Проблема 1: высокая взаимозависимость между HTML и CSS
- При необходимости изменить положение элементов на странице возникает необходимость изменять их положение в HTML-коде.
- При необходимости изменить размеры элементов возникает необходимость изменять вложенность HTML-тегов и их классы.
View Data manipulation exercise.md
Data manipulation exercise
На любом языке программирования написать функцию, которая высчитывает количество задач по каждому статусу для каждого проекта.
Пример входных данных:
projects = [
{"id": 2, "title": "Canape CRM"},
{"id": 3, "title": "Мастер"},
View 1-hello-world.js
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
/*jslint node, es6, maxlen: 80 */ | |
"use strict"; | |
function upperCaser(input) { | |
return input.toUpperCase(); | |
} | |
module.exports = upperCaser; |
View A simple Docker and Docker Compose install script for Ubuntu.md
A simple Docker and Docker Compose install script for Ubuntu
Usage
sh install-docker.sh
- log out
- log back in
Links
View A POSIX shell script for running command-line tools in containers.md
A POSIX shell script for running command-line tools in containers
Install
-
Clone this repo
git clone https://gist.github.com/82a78debf7dea8ab1dd4da9c034aee14.git docker-run
-
Create a link to
docker-run
in your/usr/local/bin/
NewerOlder