Skip to content

Instantly share code, notes, and snippets.

View denisso's full-sized avatar
🎯
Focusing

Denis (mr_dramm) denisso

🎯
Focusing
View GitHub Profile
// 'use strict';
module.exports = async function ({ minPrice, maxPrice, catalog }) {
const activeProducts = [];
async function processCategory(category) {
try {
const isActive = await checkIsActive(category);
if (isActive) {
const children = await getChildren(category);
await processChildren(children);
<style>
body {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
margin: 0;
background: wheat;
}
<body>
<div class="wrapper">
<header>
<p>
<a href="index.php">
ColorEyesKeeper :)
</a>
</p>
</header>
<div id='navbar'>
<div style='width:20%; margin-left:80%; min-height:3em; border:thin solid black; background-color:#7777aa; color:white;'>
<span id='timer'>
</span>
<!--<br>
<button style='border:1px solid white;' onclick=''></button>-->
</div>
<input id="distance" placeholder="Расстояние в см">
<button id="subm">
подтвердить
<fieldset id="central" style="display:none">
<fieldset class="fields">Поле: <input name="field"><br>
<span>Цвет стимула:</span><br>
r:
<select name="color_r">
<option value="">Выберите</option>
<option value="0">0</option>
<option value="32">32</option>
<option value="64">64</option>
<option value="96">96</option>
@wojteklu
wojteklu / clean_code.md
Last active July 4, 2025 12:37
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules