"""Loading logic for loading documents from a git directory respecting .gitignore files.""" | |
import logging | |
import fnmatch | |
from pathlib import Path | |
from typing import List, Type, Union | |
from langchain.docstore.document import Document | |
from langchain.document_loaders.base import BaseLoader | |
from langchain.document_loaders.html_bs import BSHTMLLoader | |
from langchain.document_loaders.text import TextLoader |
import numpy as np | |
import cvxpy as cp | |
import itertools | |
# Problem data | |
global_indices = list(range(4)) | |
# 0 = TOKEN-0 | |
# 1 = TOKEN-1 | |
# 2 = TOKEN-2 |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
bash 24-bit-color.sh
Quick guide on how to setup git signing. Information is aggregated from following sources:
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
Why customize? I love the window management with i3 and productivity that comes with associating certain applications to windows (now workspaces), and I've mostly setup i3 but am still figuring some things out. Also because I've spent the past week tweaking i3 when I should be studying for interviews... Hopefully by using these tweaks, it will improve your workflow and boost productivity.
To mimic i3 windows where you have to press Super + 1
to go to Window 1 etc.
Why? I love the window management with i3 and productivity that comes with associating certain applications to windows (now workspaces), and I've mostly setup i3 but am still figuring some things out.
- disable the
Super + {1..9}
keys that launch apps on the dock
-
edit keymap on tmk keyboard editor, and download the
layout.hex
file -
get dfu-programmer using apt, or downloading from source and building
Method 1 (APT): sudo apt install dfu-programmer
Method 2 (building from source)
Speed up training using FP16 https://www.youtube.com/watch?v=ks3oZ7Va8HU
Common Mistakes https://www.youtube.com/watch?v=O2wJ3tkc-TU
Data Augmentation https://www.youtube.com/watch?v=Zvd276j9sZ8