Skip to content

Instantly share code, notes, and snippets.

View L4zzur's full-sized avatar
🐺

Popov Nikita L4zzur

🐺
View GitHub Profile
# install firstly color schemes from here: https://github.com/alacritty/alacritty-theme?tab=readme-ov-file
import = [
"~/.config/alacritty/themes/themes/ayu_dark.toml"
]
[env]
TERM = "xterm-256color"
[font]
@henry-morris
henry-morris / one_word_colors.json
Last active April 20, 2024 07:21
Array of 69 one word colors/colours.
[
"Amaranth",
"Amber",
"Amethyst",
"Apricot",
"Aquamarine",
"Azure",
"Beige",
"Black",
"Blue",
— Да?
— Алё!
— Да да?
— Ну как там с деньгами?
— А?
— Как с деньгами-то там?
— Чё с деньгами?
— Чё?
— Куда ты звонишь?
@m3nu
m3nu / simpletreemodel.py
Last active July 26, 2024 10:32
QTreeView with Custom QAbstractItemModel and Lazy Loading
"""
This is an adjusted version of the official simpletreemodel[1] that adds lazy loading and uses a dict as backend.
Instead of the dict it could also use a database or similar. Items are only loaded when expanded, which allows
for speedy startup-time, even with 2.5m items.
1: https://github.com/baoboa/pyqt5/tree/master/examples/itemviews/simpletreemodel
"""
import sys
@2ik
2ik / cmd.bat
Last active September 20, 2024 13:50
Устранение ошибки в терминале VScode при запуске virtualenv
Ошибка:
.\venv\Scripts\activate : Невозможно загрузить файл C:\path\venv\Scripts\activate.ps1, так как выполнение сценариев отключено в этой системе.
Для получения дополнительных сведений см. about_Execution_Policies по адресу http://go.microsoft.com/fwlink/?LinkID=135170.
строка:1 знак:1
.\venv\Scripts\activate
~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : Ошибка безопасности: (:) [], PSSecurityException
FullyQualifiedErrorId : UnauthorizedAccess
Решение проблемы: