Skip to content

Instantly share code, notes, and snippets.

View egorsmkv's full-sized avatar
🌍
world, hello

Yehor Smoliakov egorsmkv

🌍
world, hello
View GitHub Profile
@egorsmkv
egorsmkv / metrials-go.md
Last active April 20, 2024 12:43
Материалы по Go (golang): мануалы, статьи, книги и ссылки на сообщества

Материалы по Go (golang)

На русском языке

Мануалы и туториалы

  • [Введение в программирование на Go][1]
  • [Маленькая книга о Go][3]
  • [Эффективный Go][2]
  • Есть еще [Краткий пересказ Effective Go на русском языке][4], но 2009 года
@egorsmkv
egorsmkv / build-git.md
Last active May 5, 2023 04:19
Build git from source code on CentOS 7

Build git from source code

1) Go to https://git-scm.com/ and check out the latest version of Git

Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/
@egorsmkv
egorsmkv / list.md
Last active March 14, 2023 22:25
Це список платіжних агрегаторів та еквайрингів, які надають послуги з прийому платежів в Україні.
Назва Сайт Тарифи Платіжні картки
LiqPay https://www.liqpay.ua/uk/ https://www.liqpay.ua/uk/tariffs Visa, Mastercard
Portmone https://www.portmone.com.ua/r3/uk/ecommerce https://www.portmone.com.ua/r3/uk/ecommerce Visa, Mastercard, ПРОСТІР
UA Pay http://acquiring.uapay.ua/ у договорі Visa, Mastercard, ПРОСТІР
Platon https://platon.ua/ua https://platon.ua/ua Visa, Visa Checkout, Mastercard, Masterpass, ПРОСТІР
FONDY https://fondy.ua/uk/ https://fondy.ua/uk/tariffs-fondy/ Visa, Mastercard, ПРОСТІР
@egorsmkv
egorsmkv / flashlight-coreweave.md
Last active July 9, 2022 12:59
Installation of Facebook's Flashlight (former wav2letter++), install CUDA 10 on Ubuntu 18.04, tested with a Tesla V100 on CoreWeave GPU Cloud
  • GPU: Tesla v100
  • Ubuntu 18.04
apt update
apt install cmake gcc-7 liblzma-dev libbz2-dev

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
import torchaudio
from speechbrain.pretrained import VAD
VAD = VAD.from_hparams(source="speechbrain/vad-crdnn-libriparty", savedir="pretrained_models/vad-crdnn-libriparty")
test_file = 'a.wav'
boundaries = VAD.get_speech_segments(test_file)
segments = VAD.get_segments(boundaries, test_file)
"""
Python implementation of Viterbi algorithm for word segmentation
A clean-up of this: http://norvig.com/ngrams/ch14.pdf
-
You also need 'unigrams.txt' and 'bigrams.txt' to run the segmentation. The ngrams
used in this implementation is from the 'count_1w.txt' and 'count_2w.txt' provided
here: http://norvig.com/ngrams/
-
Usage:
>>> from segment import viterbi
@egorsmkv
egorsmkv / mphdict_words_forms.py
Created April 28, 2021 14:39
mphdict words forms generator in python
"""
Generator of words forms for LinguisticAndInformationSystems/mphdict
Source code: https://github.com/LinguisticAndInformationSystems/mphdict/blob/master/src/mphdict/mphDb.cs#L214
License: https://github.com/LinguisticAndInformationSystems/mphdict/blob/master/LICENSE.txt
Copyright: uSofTrod
Output is like the following:
@egorsmkv
egorsmkv / quantum_resources.md
Last active March 21, 2021 10:13
This is my list of resources on the Quantum Technologies topic. You can suggest your links in the Comments section.

Quantum Resources

Websites

  • [Full-Stack Quantum Computation][3]
  • [Quantum Computing on Stack Exchange][15]

Social Groups

  • [Quantum Computing][4]
@egorsmkv
egorsmkv / algo.py
Last active August 31, 2020 10:15
An algorithm to search longest date intervals among a list of dates in Python (currently searches longest date intervals in months)
from datetime import datetime
from typing import List
def solve(date_items: List[datetime]):
"""
Get the longest date interval from the date_items list.
:param date_items:
:return: