Skip to content

Instantly share code, notes, and snippets.

View nickkaczmarek's full-sized avatar
🌊

Nick Kaczmarek nickkaczmarek

🌊
View GitHub Profile
@nickkaczmarek
nickkaczmarek / UISlider.swift
Created June 27, 2020 22:28 — forked from westerlund/UISlider.swift
Snapping UISlider in Swift
final class SnappingSlider: UISlider {
override var value: Float {
set { super.value = newValue }
get {
return round(super.value * 1.0) / 1.0
}
}
}
@nickkaczmarek
nickkaczmarek / tmux.md
Created May 25, 2019 20:35 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@nickkaczmarek
nickkaczmarek / tmux_commands.md
Last active July 30, 2018 14:58 — forked from Alek-S/tmux_commands.md
tmux Commands

Start new named session:

tmux new -s [session name]

List sessions:

tmux ls

Attach to named session:

tmux a -t [name of session]

Kill named session:

# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
MAGENTA=$(tput setaf 9)
ORANGE=$(tput setaf 172)