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

@evantancy
evantancy / ubuntu-config.md
Last active March 27, 2022 07:36
ubuntu 20.04 configuration

Ubuntu Config

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.

Workspace shortcuts

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.

  1. disable the Super + {1..9} keys that launch apps on the dock
@evantancy
evantancy / leopold-hasu-controller.md
Last active April 16, 2022 12:45
How to flash your Leopold FC660C keyboard with the Hasu controller (ATMega32U4) for customizing any key

Leopold FC660C Hasu controller

  1. edit keymap on tmk keyboard editor, and download the layout.hex file

  2. get dfu-programmer using apt, or downloading from source and building

Method 1 (APT): sudo apt install dfu-programmer

Method 2 (building from source)

@evantancy
evantancy / deep-learning-resources.md
Last active April 16, 2022 12:50
deep learning resources