Skip to content

Instantly share code, notes, and snippets.

View eneepo's full-sized avatar

eneepo eneepo

View GitHub Profile

TypeVar is a generic type variable that allows you to create a placeholder for a type. It is typically used when you want to define a generic function or class that can operate on different types without specifying them explicitly. It allows you to introduce a type variable that can be used as a type annotation for function arguments, return values, or class attributes.

Here's an example of how TypeVar can be used:

from typing import List, TypeVar

T = TypeVar('T')

def reverse_list(items: List[T]) -> List[T]:
@eneepo
eneepo / stop_words_german.txt
Created August 11, 2021 13:37
A List of German Stopwords
ab
aber
abermaliges
abermals
abgerufen
abgerufene
abgerufener
abgerufenes
abgesehen
acht
@eneepo
eneepo / stop_words_english.txt
Created August 10, 2021 15:31
A List of English Stopwords
'd
'll
'm
're
's
't
've
i
a
a's
@eneepo
eneepo / Install PyQt5 on Ubuntu with python3 .md
Created November 5, 2019 20:46 — forked from r00tdaemon/Install PyQt5 on Ubuntu with python3 .md
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation

Installation

pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal

@eneepo
eneepo / visual-studio-code.md
Created November 1, 2019 05:16
Visual Studio Code Essential Extensions
# code --list-extensions 

aaron-bond.better-comments
arcticicestudio.nord-visual-studio-code
CoenraadS.bracket-pair-colorizer
dbaeumer.vscode-eslint
esbenp.prettier-vscode
felixfbecker.php-debug
felixfbecker.php-intellisense