Skip to content

Instantly share code, notes, and snippets.

Avatar

Evgeny Pogrebnyak epogrebnyak

View GitHub Profile
@Bodigrim
Bodigrim / cabal.project
Last active March 20, 2022 12:07
Template cabal.project with text-2.0 support
View cabal.project
packages: .
constraints: text >= 2.0
allow-newer:
aur:text,
aura:hashable,
aura:text,
cborg-json:text,
feed:text,
@dutc
dutc / 1.py
Created March 3, 2021 02:50
`pandas` problem of the day: analysis (with `numpy.meshgrid`‽)
View 1.py
from pandas import Series
s = Series({
4: 89.00,
6: 109.99,
8: 149.14,
10: 218.99,
12: 239.09,
14: 279.99,
16: 329.99,
18: 409.99,
@GhostofGoes
GhostofGoes / .gitignore
Created October 4, 2018 04:29
Basic .gitignore template for Python projects
View .gitignore
# Editors
.vscode/
.idea/
# Vagrant
.vagrant/
# Mac/OSX
.DS_Store
@dvf
dvf / python-setup.md
Last active December 6, 2022 13:20
Running Python locally without driving yourself insane
View python-setup.md

This is my highly opinionated way of developing with Python locally. Use it, don't use it. But you probably know that it's a PITA to manage different projects with different dependencies targeting different Python versions, and there are different ways of installing Python too:

  • Using the interpreters preinstalled in the OS 😵
  • Using brew (or apt etc.) 😅
  • Using the binaries from www.python.org 😫
  • Using pyenv 😎
@briandominick
briandominick / asciidoc-static.adoc
Last active March 22, 2023 19:20
Static Site Generators with AsciiDoc Support
View asciidoc-static.adoc

There are 24 static site generators that support AsciiDoc sourcing.

@glasslion
glasslion / vtt2text.py
Last active March 26, 2023 10:12
This script convert youtube subtitle file(vtt) to plain text.
View vtt2text.py
"""
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.
@bmaupin
bmaupin / free-backend-hosting.md
Last active March 30, 2023 11:39
Free backend hosting
View free-backend-hosting.md
@sliceofbytes
sliceofbytes / txt-to-google-keep-notes.py
Created February 14, 2018 22:16
Add Text Files as Google Keep Notes
View txt-to-google-keep-notes.py
#Import a directory of text files as google keep notes.
#Text Filename is used for the title of the note.
import gkeepapi, os
username = 'username@gmail.com'
password = 'your app password'
keep = gkeepapi.Keep()
success = keep.login(username,password)
@ljvmiranda921
ljvmiranda921 / Makefile
Last active September 10, 2018 10:58
Contains a minimal workflow for compiling LaTeX documents
View Makefile
# A Simple Makefile for LaTeX
# Author: Lester James V. Miranda
# E-mail: ljvmiranda@gmail.com
# Default variables which can be edited via the terminal
BUILDDIR = _build
COMPILER = pdflatex
PROJECT = main
BIBLIOGRAPHY = bibliography