Skip to content

Instantly share code, notes, and snippets.

View evantancy's full-sized avatar

evan evantancy

  • vim
View GitHub Profile
@evantancy
evantancy / git_directory_loader.py
Created June 9, 2023 05:44 — forked from justinrfenn/git_directory_loader.py
LangChain Directory Loader that respects .gitignore files
"""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
@evantancy
evantancy / arbitrage.py
Created January 30, 2023 19:22 — forked from noxx3xxon/arbitrage.py
CFMM Routing Arbitrage Example
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
@evantancy
evantancy / tmux-cheatsheet.markdown
Created June 22, 2022 13:50 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@evantancy
evantancy / alacritty-tmux-vim_truecolor.md
Created May 3, 2022 04:25 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

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).

Testing colors

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
@evantancy
evantancy / how-to-setup-verified-commits.md
Created April 16, 2022 12:50 — forked from Beneboe/how-to-setup-verified-commits.md
How to Setup Verified Commits on Github

Conventional Commit Messages

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

Commit Formats

Default