Skip to content

Instantly share code, notes, and snippets.

View eubide's full-sized avatar
🚀
Rocket science

Eduardo Ubide eubide

🚀
Rocket science
View GitHub Profile
@eubide
eubide / iterm2.md
Created May 5, 2022 12:40 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@eubide
eubide / text.py
Created April 10, 2020 12:13 — forked from gallir/text.py
Very fast function to get cosine similarity between 2 short texts, where counting the number of words is no needed (i.e. binary bag of words) but it works pretty well with non-ascii weird characters.
from unidecode import unidecode
import re
import sys
import inflection
import numpy as np
import math
from collections import defaultdict
# Using cosine_similarity, own faster implementation, inspired by
# https://towardsdatascience.com/calculating-string-similarity-in-python-276e18a7d33a