Skip to content

Instantly share code, notes, and snippets.

View gabriel-laddel's full-sized avatar

Gabriel Laddel gabriel-laddel

View GitHub Profile
@gabriel-laddel
gabriel-laddel / kkk.lisp
Created March 12, 2018 18:51
A 1/3 or less of the way reimplementation of kkk.lisp, which (used to be) utilities for hacking on SBCL / writing a good deal less CL / a "metaprogramming core" for Cl, seeing as people don't really metaprogram that much
;; http://cincyisit.com/events-and-learning
;; https://www.cintrifuse.com/cintrifuse-role-for-greater-cincinnati/
(defvar metaprogamming-systems
'(:anaphora :cl-ppcre :optima :fare-quasiquote :named-readtables :fare-utils
:fare-utils :optima.ppcre :FARE-QUASIQUOTE-OPTIMA :FARE-QUASIQUOTE-readtable
:sb-introspect))
(defvar graphics-systems
'(:mcclim :mcclim-bezier :mcclim-bezier-clx :mcclim-clx-fb :clim-widgets
:climacs :clouseau :clim-listener))
https://twitter.com/kevinlange
https://github.com/pyb/zen
http://dl.acm.org/citation.cfm?id=542141
http://carlo-hamalainen.net/blog/2012/08/15/kogges-the-architecture-of-symbolic-computers-1991
http://cm.bell-labs.com/who/ken/trust.html
http://www.amazon.com/Odd-Man-Out-Truman-Origins/dp/1574883437
#setopt VERBOSE
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="clean"
plugins=(git)
setxkbmap -option "ctrl:nocaps"
setxkbmap us -variant colemak
  1. Download emacs 24.x

  2. Start emacs

  3. hit 'C-h i', where 'C' stands for 'control' and then 'Shift-6' until you hit the top level of the info nodes - which will look like this:

File: dir,	Node: Top	This is the top of the INFO tree
1) Download emacs 24.x
2) Start emacs
3) hit 'C-h i', where 'C' stands for 'control' and then 'Shift-6' until
you hit the top level of the info nodes - which will look like this:
```
File: dir, Node: Top This is the top of the INFO tree
@gabriel-laddel
gabriel-laddel / gist:7694998
Last active December 29, 2015 16:08
#Emacs hack for sane `rgrep' of #clojure library sources
;;; TODO, Thu Nov 28 2013, Francis Wolke
;;; Should this clear out the newly created files from the directory when finished with the grep process?
(defadvice rgrep
(before decompress-jars first (regexp &optional files dir confirm))
"Decompresses all jars in specifed directory in a synchronous manner. Use with
`rgrep' so that you can search clojure library sources with (almost) the same
ease that you can search Common Lisp sources."
(shell-command-to-string
(concat "cd " dir " && for f in *.jar; do jar -xf $f; done")))
(defn m->ds
"Accepts a hashmap, which is then converted into its destructuring syntax."
[m]
(loop [ks (keys m)
acc {}]
(if (empty? ks)
acc
(recur (rest ks)
(let [fk (first ks)
v (get m fk)