Skip to content

Instantly share code, notes, and snippets.

@EvgenyOrekhov
EvgenyOrekhov / Playwright - separate tests for mobile and desktop.md
Last active June 14, 2023 20:45
Playwright - separate tests for mobile and desktop
View Playwright - separate tests for mobile and desktop.md

<name>.mobile.spec.ts files will run only on mobile browsers.

<name>.desktop.spec.ts files will run only on desktop browsers.

@EvgenyOrekhov
EvgenyOrekhov / ESLint overrides formatter.md
Last active January 4, 2022 11:05
ESLint formatter that outputs an "overrides" array with rules turned off
View ESLint overrides formatter.md
npx eslint --format ./eslint-overrides-formatter.js .
@EvgenyOrekhov
EvgenyOrekhov / .asoundrc
Last active June 14, 2023 20:48
Settings
View .asoundrc
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:
@EvgenyOrekhov
EvgenyOrekhov / challenge.sh
Last active March 14, 2018 10:48
POSIX shell scripting challenge
View challenge.sh
#!/bin/sh
set -eu
FILES=$(find . -maxdepth 1 -type f | sort)
# -------------- #
# FIX ME #
# vvvvvvvvvvvvvv #
@EvgenyOrekhov
EvgenyOrekhov / work-n-rest.md
Last active May 17, 2020 08:36
work-n-rest.sh - a POSIX shell script for executing long running tasks with pauses
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'
@EvgenyOrekhov
EvgenyOrekhov / Вёрстка глазами программиста.md
Last active January 9, 2024 04:05
Вёрстка глазами программиста
View Вёрстка глазами программиста.md

Вёрстка глазами программиста

Проблемы и их возможные решения

Проблема 1: высокая взаимозависимость между HTML и CSS

  • При необходимости изменить положение элементов на странице возникает необходимость изменять их положение в HTML-коде.
  • При необходимости изменить размеры элементов возникает необходимость изменять вложенность HTML-тегов и их классы.
@EvgenyOrekhov
EvgenyOrekhov / Data manipulation exercise.md
Last active May 17, 2020 09:01
Data manipulation exercise
View Data manipulation exercise.md

Data manipulation exercise

На любом языке программирования написать функцию, которая высчитывает количество задач по каждому статусу для каждого проекта.

Пример входных данных:

projects = [
    {"id": 2, "title": "Canape CRM"},
    {"id": 3, "title": "Мастер"},
View 1-hello-world.js
/*jslint node, es6, maxlen: 80 */
"use strict";
function upperCaser(input) {
return input.toUpperCase();
}
module.exports = upperCaser;
@EvgenyOrekhov
EvgenyOrekhov / A simple Docker and Docker Compose install script for Ubuntu.md
Last active February 4, 2024 21:19
A simple Docker and Docker Compose install script for Ubuntu
View A simple Docker and Docker Compose install script for Ubuntu.md

A simple Docker and Docker Compose install script for Ubuntu

Usage

  1. sh install-docker.sh
  2. log out
  3. log back in

Links