Skip to content

Instantly share code, notes, and snippets.

@Vlad-CSA
Vlad-CSA / whiteboardCleaner.md
Created November 5, 2022 11:50 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@Vlad-CSA
Vlad-CSA / recursive-render.html
Created August 5, 2022 08:15 — forked from nkvenom/recursive-render.html
React Example Render Recursive Function
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Recursive Component in React</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.11.0/umd/react.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.11.0/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
</head>
@Vlad-CSA
Vlad-CSA / nodejs-cheatsheet.js
Created January 24, 2022 10:21 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@Vlad-CSA
Vlad-CSA / System Design.md
Created October 16, 2021 18:49 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@Vlad-CSA
Vlad-CSA / semver.sh
Created September 24, 2021 14:40 — forked from jlinoff/semver.sh
Bash function to parse major, minor and patch versions from a semantic versioning string
#!/bin/bash
#
# Function that parses semantic versioning striings of
# the form:
# MAJOR.MINOR.PATCH([+-].*)?
#
# Parse the major, minor and patch versions
# out.
# You use it like this:
@Vlad-CSA
Vlad-CSA / swagger-yaml-to-html.py
Created October 2, 2020 05:21 — forked from oseiskar/swagger-yaml-to-html.py
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
#
# Copyright 2017 Otto Seiskari
# Licensed under the Apache License, Version 2.0.
# See http://www.apache.org/licenses/LICENSE-2.0 for the full text.
#
# This file is based on
# https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0)
#
@Vlad-CSA
Vlad-CSA / комбинации-клавиш-bash.txt
Created April 17, 2020 13:49 — forked from RANUX/комбинации-клавиш-bash.txt
Комбинации клавиш для Bash
##### Перемещение курсора:
Ctrl + a — переход в начало строки
Ctrl + b — переход на 1 символ назад
Ctrl + c — посылает программе SIGINT. Обычно, прерывает текущее задание
Ctrl + d — удаляет символ под курсором (аналог delete)
Ctrl + e — переход к концу строки
Ctrl + f — переход на 1 символ вперёд
Ctrl + xx — переходит от текущей позиции курса в начало строки и обратно.
Ctrl + p — Предыдущая команда (Стрелка вверх)
@Vlad-CSA
Vlad-CSA / gist:4aeb4d1937aa6c9c8f43144c250c0509
Created March 16, 2020 15:58 — forked from bibendi/gist:7941823
Оформление коммитов

Для оформления сообщения коммита следует использовать следующий шаблон:

<type>(<scope>): <subject>
<BLANK LINE>
<body>

Заголовок

Тип коммита

Alright, detective, one of our colleagues successfully observed our target person,
Robby the robber. We followed him to a secret warehouse, where we assume to find
all the stolen stuff. The door to this warehouse is secured by an electronic
combination lock. Unfortunately our spy isn't sure about the PIN he saw, when
Robby entered it.
The keypad has the following layout:
┌───┬───┬───┐
│ 1 │ 2 │ 3 │