Skip to content

Instantly share code, notes, and snippets.

View kolemannix's full-sized avatar

Koleman Nix kolemannix

  • patterndata.ai
  • Richmond, VA
View GitHub Profile
def day6fast(chars: Iterator[Char], targetNum: Int): Option[Int] = {
val buffer = scala.collection.mutable.ListBuffer.empty[Char]
try {
var i = 0
while (true) {
val c = chars.next()
if (buffer.length == targetNum) {
buffer.dropInPlace(1)
}
buffer.append(c)
@kolemannix
kolemannix / gist:3d18d0f22b90edda9ce896626dd15f56
Created October 3, 2023 15:40
kitty_like_tmux_snippet.conf
# Emulate tmux default bindings for tabs
# n and p for next/prev
map ctrl+a>n next_tab
map ctrl+a>p previous_tab
map ctrl+a>, set_tab_title
# 'c' for create
map ctrl+a>c new_tab
map ctrl+a>x close_tab
# 'zoom' in tmux
map ctrl+a>z toggle_layout stack