Skip to content

Instantly share code, notes, and snippets.

View bsamaripa's full-sized avatar
💩
λ

Byron Samaripa bsamaripa

💩
λ
View GitHub Profile
@bsamaripa
bsamaripa / alacritty-tmux-vim_truecolor.md
Created April 18, 2024 22:36 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

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
@bsamaripa
bsamaripa / keybase.md
Last active April 12, 2017 15:42
keybase.md

Keybase proof

I hereby claim:

  • I am bsamaripa on github.
  • I am bsamaripa (https://keybase.io/bsamaripa) on keybase.
  • I have a public key whose fingerprint is A3D6 A6BF E694 A9CE 6716 6FD0 1EAC 733A E185 2032

To claim this, I am signing this object:

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x