This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put the CWD in the window title. | |
function chtt { | |
echo -en "\033]2;$@\007" | |
} | |
export PROMPT_COMMAND='chtt $(pwd)' | |
# Put the CWD in the window title. | |
function chtt { | |
echo -en "\033]2;$@\007" | |
} | |
export PROMPT_COMMAND='chtt $(pwd)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cd_save_hist() { | |
if [ -z "$1" ] | |
then | |
d="$HOME" | |
else | |
d="$1" | |
fi | |
builtin cd "$d" | |
dp=$(pwd) | |
history -s cd ${dp} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'complex' | |
class Array | |
# DFT and inverse. | |
# | |
# Algorithm from | |
# 'Meyberg, Vachenauer: Hoehere Mathematik II, Springer Berlin, 1991, page 332' | |
# | |
# See http://blog.mro.name/2011/04/simple-ruby-fast-fourier-transform/ |