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
( Simple Hex Dump ) | |
needs bad' | |
needs console' | |
8 constant (dump-width) | |
: putxt xt->d d->name puts ; | |
: hexabyte ( "hexes a byte" ) | |
dup 10 < |
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
( brute force ngaro assembler ) | |
chain: ming' | |
: nop, 0 , ; immediate | |
: drop, 3 , ; immediate | |
: pop, 6 , ; immediate | |
: ;, 9 , ; immediate | |
: !jump, 12 , ; immediate |
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
;;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
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
# 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
(defn e-tree-seq | |
"tree-seqs enlive trees/graphs, at least instaparse ones" | |
[e-tree] | |
(if (map? (first e-tree)) | |
(tree-seq (comp seq :content) :content (first e-tree)) | |
(tree-seq (comp seq :content) :content e-tree))) |
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
(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
S = AB* | |
AB = A B | |
A = 'a'+ | |
B = 'b'+ |