This file contains 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
export PS1="\u:\W 🔒 " | |
export SUDO_PS1="\u:\W ‼🔓 ‼ " |
This file contains 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
S = AB* | |
AB = A B | |
A = 'a'+ | |
B = 'b'+ |
This file contains 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
(defn caseify [string] | |
(apply str (map (fn [foo] (apply str ["(" "'" (upper-case foo) "'" "|" "'" foo "'" ")"])) | |
(rest (split string #""))))) |
This file contains 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
(defn caseify [string] | |
(💬 (apply str (🌍 (fn [foo] (str "(" "'" (upper-case foo) "'" "|" "'" foo "'" ")")) | |
(rest (split string #"")))))) |
This file contains 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
# Fancy jump script | |
export MARKPATH=$HOME/.marks | |
function jump { | |
cd -P $MARKPATH/$1 2> /dev/null || echo "No such mark: $1" | |
} | |
function jp { | |
cd -P $MARKPATH/$1 2> /dev/null || echo "No such mark: $1" | |
} | |
function mark { |
This file contains 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
pat pan par pag | |
pit pin pir pig | |
pot pon por pog | |
put pun pur pug | |
mat man mar mag mit min mir mig |
This file contains 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
;;The User Button | |
(setq ns-function-modifier 'hyper) ; Jedi Superpowers activate | |
(setq max-specpdl-size 100000 | |
max-lisp-eval-depth 100000) ;give your lisp a brain | |
(add-to-list 'load-path "~/.emacs.d/el-get/el-get") |
This file contains 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
(defn seq-string | |
"make a string seqable by character" | |
[split-me] | |
(seq (drop 1 (clojure.string/split split-me #"")))) |
This file contains 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
#lazyfuncs for dotting and undotting stuff | |
function dt { | |
for file in "$@"; do | |
if [[ ${file:0:1} != "." ]] | |
then mv $file ".$file" | |
else echo "$file is already dotted" | |
fi | |
done | |
} |
This file contains 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
#Essential jump code | |
export MARKPATH=$HOME/.marks | |
#jump to a directory | |
function jump { | |
cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1" | |
} | |
#mark the current directory as a jump destination | |
function mark { |