Skip to content

Instantly share code, notes, and snippets.

@lian-rr
lian-rr / address.py
Created February 13, 2025 21:25
Naive address splitting
import pandas as pd
addresses = {
"1234567890": "742 Evergreen Terrace, Apt 5B, Springfield, IL 62704",
"1122334455": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"6677889900": "1 Infinite Loop, Cupertino, CA 95014",
"1029384756": "350 Fifth Avenue, Apt 12F, New York, NY 10118",
"5647382910": "4059 Mt Lee Dr, Hollywood, CA 90068",
"1928374655": "500 S Buena Vista St, Apt 4H, Burbank, CA 91521",
"9182736450": "600 Congress Ave, Austin, TX 78701",
@lian-rr
lian-rr / yabairc
Created July 25, 2022 03:01
yabai config
#!/usr/bin/env sh
# the scripting-addition must be loaded manually if
# you are running yabai on macOS Big Sur. Uncomment
# the following line to have the injection performed
# when the config is executed during startup.
#
# for this to work you must configure sudo such that
# it will be able to run the command without password
#
@lian-rr
lian-rr / skhdrc
Created July 25, 2022 03:00
skhd config
#SKHD STUFF
# if you're having troubles finding key codes for a key just type skhd --observe in a terminal and type a key. Pretty cool! Or just check the wiki.
## HYPER == SHIFT + CMD + ALT + OPTION
## Quickly restart the yabai launch agent
ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"
## Close active application
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# new window in current path
bind c new-window -c "#{pane_current_path}"
# split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
@lian-rr
lian-rr / alacritty.yml
Created October 21, 2021 23:24
Alacritty.yml
colors:
# Default colors
primary:
background: "#1e2127"
# background: "#2E3440"
foreground: "#D8DEE9"
# Normal colors
normal:
black: "#3B4252"
@lian-rr
lian-rr / .vimcr
Created July 19, 2021 16:40
VIM Config
call plug#begin('~/.vim/plugged')
Plug 'preservim/NERDTree'
Plug 'itchyny/lightline.vim'
Plug 'kien/ctrlp.vim'
Plug 'dracula/vim', { 'as': 'dracula' }
@lian-rr
lian-rr / install_python3.6_ubuntu.txt
Created March 2, 2019 03:29
Steps for installing python3.6 and pip3 in ubuntu 16.04
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6
sudo apt install python3.6-dev
sudo apt install python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
@lian-rr
lian-rr / install_python3.6_ubuntu.txt
Created March 2, 2019 03:29
Steps for installing python3.6 and pip3 in ubuntu 16.04
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6
sudo apt install python3.6-dev
sudo apt install python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
@lian-rr
lian-rr / tmux-cheatsheet.markdown
Created July 28, 2018 01:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lian-rr
lian-rr / Tarea.pde
Created March 30, 2016 05:05
Tarea #1. Calculadora. Procesing Visual-Struct
Panel panel;
double result = 0;
double newValue = 0;
String lastOpe = "equal";
int decimals = 0;
double test = 5;
double PI = 3.1415926;