Skip to content

Instantly share code, notes, and snippets.

View epogrebnyak's full-sized avatar

Evgeny Pogrebnyak epogrebnyak

View GitHub Profile
"""A minimal version of https://github.com/PatzEdi/Stockstir/."""
import re
from dataclasses import dataclass
import httpx
@dataclass
class Provider:
@epogrebnyak
epogrebnyak / it_intro.md
Last active February 13, 2024 15:36
Учебный курс "Финансы и цифровизация"

Информационные системы, анализ данных и финансовые инновации

Курс состоит из кейсов по прикладному анализу машинночитаемых данных, основам информационных систем в корпоративном секторе и изменению структуры рынка финансовых услуг.

Также предлагается ряд занятий, позволяющих приобрести дополнительные компьютерные технические навыки.

@epogrebnyak
epogrebnyak / vtt2text.py
Created June 1, 2020 11:33 — forked from glasslion/vtt2text.py
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
@epogrebnyak
epogrebnyak / table.asciidoc
Last active September 24, 2023 19:12
try asciidoc
Table 1. This is empty table
Some Python code
import sinatra

with sinatra.pointer as p
@epogrebnyak
epogrebnyak / get_gists.py
Last active August 2, 2023 10:01 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
"""Download all gists for a specific user in a local directory using git.
Make a directory for a <user> and copy this file there before running.
mkdir <user>
cd <user>
curl https://gist.githubusercontent.com/epogrebnyak/c14d6d2ca2740d1e1018e701ea00472a/raw/ec44560c8fd8fb92ca81bafa48b0a08272138104/get_gists.py > get_gists.py
python3 get_gists.py user
"""
@epogrebnyak
epogrebnyak / digital_asset_types.md
Last active November 22, 2022 02:40
Cryptoeconomics

Value what

Adapted from Blockchain revolution:

  1. cryptocurrencies (BTC)
  2. platforms/smart contracts (ERC-20 + Cosmos, Aion, ICON)
  3. work/utility token (FileCoin, Golem) + via Selkix
  • “securitized” computing resources
@epogrebnyak
epogrebnyak / Data_Science_Roles.md
Last active September 22, 2022 23:48
Managing Data Science Teams
Component Role Result Some tools Concepts
1. Prepare data Data Engineer Clean dataset ETL
2. Look at it Business Analyst Descriptive statistics John Tukey: EDA (1977)
3. Model it Econometrician Predictive model ML+R/Eviews/gretl+julia
4. Visualise it Visualization engineer Nice graphs matplotlib, seaborn, bokeh, D3.js Leland Wilkinson: ggplot (1999)
5. Embed it Business Analyst Prof
@epogrebnyak
epogrebnyak / asciidoc_example.adoc
Last active February 19, 2022 18:44
Tools, editors, etc

AsciiDoc tutorial

AsciiDoc fills an important gap between markdown and reStructuredText

AsciiDoc seems not as common as markdown. Google lists just about 400 000 citations about it, as opposed to 16 million for markdown.

abdom
abend
abets
abhor
abide
abied
abyed
abyes
abilo
abime
@epogrebnyak
epogrebnyak / lamps.csv
Last active January 10, 2022 10:48
Lightbulb survival rate
i h f K
0 0 0 50
1 840 2 48
2 852 1 47
3 936 1 46
4 960 1 45
5 972 1 44
6 996 1 43
7 1008 1 42
8 1032 2 40