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
// Ее нужно поставить через твою среду разработки | |
#include <AccelStepper.h> | |
// Encoder | |
boolean TurnDetected; | |
boolean Up; | |
const int PinCLK = 18; | |
const int PinDT = 17; | |
const int PinSW = 16; |
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
// Ее нужно поставить через твою среду разработки, ну или положить рядом с проектом | |
#include <AccelStepper.h> | |
#include <AceButton.h> | |
using namespace ace_button; | |
// Encoder | |
boolean TurnDetected; | |
boolean Up; |
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
[user] | |
name = Alexey Kalmakov | |
email = [email protected] | |
[core] | |
mergeoptions = --no-ff | |
pager = less -r | |
[alias] | |
vlog = log --pretty='%h (%an) %s' --graph | |
st = status | |
co = checkout |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Early returns comparison</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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
// Нужно написать функцию банкомат | |
// * первым аргументом ты передаешь ей сколько ты хочешь снять | |
// * вторым массив доступным банкнот в баномате | |
// Функция должна вернуть массив из банкнот сумма которых ровна первому аргументу | |
// Желательно вернуть как можно меньше банкнот, тоесть не выдавать 100 рублей по рублю если есть 10тки. | |
// Пример | |
atm(301, [100,50,20,5,1]) // => [100, 100, 100, 1] |
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
func minOperations(logs []string) int { | |
deep := 0 | |
for _, log := range logs { | |
if log == "./" { | |
continue | |
} | |
if log == "../" { | |
if deep != 0 { | |
deep = deep - 1 |
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
func pop(alist *[]int) int { | |
f := len(*alist) | |
rv := (*alist)[f-1] | |
*alist = append((*alist)[:f-1]) | |
return rv | |
} | |
func calc(b int, a int, f string) int { |
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
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; } | nc -l -p 3000 -c ; done |
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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Alexey Kalmakov", | |
"label": "Fullstack/DevOps open to relocation on a global level", | |
"image": "", | |
"email": "[email protected]", | |
"phone": "", | |
"url": "", | |
"summary": "I’m a full stack web developer / devops who can build apps and infrastracure from the ground up.", |
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
import fs from 'fs'; | |
import { parseSyml } from '@yarnpkg/parsers'; | |
import path from 'path'; | |
let file = fs.readFileSync('yarn.lock', 'utf8'); | |
let json = parseSyml(file); | |
// function make map with all packages and their versions. |