Skip to content

Instantly share code, notes, and snippets.

View vovs03's full-sized avatar
💭
λ Functional Pro | Haskell

Vλadimir Pavλychev vovs03

💭
λ Functional Pro | Haskell
View GitHub Profile
@vovs03
vovs03 / gopath_terraform.md
Last active November 6, 2020 07:53
Как настроить окружение GOLAND для тестирования Terraform?

GOPATH for Terraform testing

А будет ли пример по написанию тестов(или есть ли такой) для терраформ-кода? ("т.к. тесты пишутся на GOLANG, то предлагается хранить проекты по указанному пути $GOPATH/src/<your_project>" иначе тесты не запустить.)

🅰️

(Второй возникающий вопрос:

@vovs03
vovs03 / README.md
Last active October 15, 2020 08:03
Blender 3D
@vovs03
vovs03 / docker-compose-version.md
Created August 11, 2020 12:28
Какую API версию docker compose использовать?
@vovs03
vovs03 / COVID19_INFO_bot.md
Last active April 7, 2020 18:13
В телеграм боте выполняются две функции одновременно. Что делать? (Python)

В телеграм боте выполняются две функции одновременно. Что делать?

Вопрос - ссылка

Jfr0s @Jfr0s

python

PYTHON TELEGRAM БОТЫ

@vovs03
vovs03 / gitlab-conf.yaml
Created March 12, 2020 09:19
Bola-config
front:deploy:
extends:
- .for_all
- .with_node
stage: deploy-hotfix
before_script:
- подготовка окружения
script:
- основные скрипты
artifacts:
@vovs03
vovs03 / Traffic-lights-6.rb
Created September 22, 2019 09:45
Traffic-light-plus-arrow
a = ['Green', 'Yellow', 'Red']
b = ['Red', 'Green']
c = ['Green', 'Yellow', 'Red', 'Rigth-arrow']
variant =[a, b, c]
txt = "Use variant "
def switch_color(variant)
10.times do
puts variant.sample
# sleep 5
@vovs03
vovs03 / elevator-emulator.rb
Created September 22, 2019 09:11
elevator simulator
# task get 2019-09-22 11:36
@vovs03
vovs03 / traffic-lights.rb
Created September 22, 2019 08:33
Traffic-ligths.rb
# Эмулятор работы светофора:
# Переключение рандомного цвета
# с интервалом через 5 секунд.
puts "Traffic-light is works!"
puts ""
sleep 2
def switch_color
light = ['Green', 'Yellow', 'Red']
10.times do
@vovs03
vovs03 / add-p.md
Created September 4, 2019 15:22 — forked from mattlewissf/add-p.md
Lightning Talk: Git add -p

git add -p is your friend

git add -p is basically "git add partial (or patch)"

Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.

It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:

from the command line, either use

  • git add -p