Skip to content

Instantly share code, notes, and snippets.

@iwilliams
iwilliams / simplify_path.gd
Created March 9, 2022 23:44
Ramer–Douglas–Peucker 3D path simplification
# simplify_path.gd
#
# Simplification of a 3D-polyline.
# A port of https://gist.github.com/yageek/287843360aeaecdda14cb12f9fbb60dc
# which is port of https:#github.com/hgoebl/simplify-java for Swift
#
#
# The MIT License (MIT)
#
# Swift port by Lachlan Hurst on 10/02/2015.
alias ls="ls -GFA"
# Taken from Arch linux wiki at https://wiki.archlinux.org/index.php/Color_Bash_Prompt
PS1="\[\e[1;32m\][\u]\[\e[1;32m\]:\[\e[0;31m\]\W\[\e[1;32m\] \$\[\e[0;33m\] "
# This resets the ehcho text to whit after the input is set to yellow above
trap 'echo -ne "\033[0m"' DEBUG
@iwilliams
iwilliams / .tmux.conf
Created September 10, 2015 18:57
Dev configs
# https://wiki.archlinux.org/index.php/Tmux
set -g default-terminal "xterm-256color"
set -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# Set window index to 1
set -g base-index 1