Skip to content

Instantly share code, notes, and snippets.

View gabriel-laddel's full-sized avatar

Gabriel Laddel gabriel-laddel

View GitHub Profile
("rbrabrfabr-afaffabffa"
"rarbarlbar-bfbafbrafb"
"lblablfabl-afabfaabfa"
"lblablfabl-abarbaarba"
"lalfalbfal-babfabbfab"
"brbrrbarrb-afabfalbfa"
"bfbafblafb-afaafabafa"
"babrabrrab-rbrfbrafbr"
"bablabllab-flfalfbalf"
"bablabllab-abafbaafba"
;;; (load "/home/francis/quicklisp/dists/quicklisp/software/slime-20131211-cvs/swank-loader.lisp")
;;; (swank-loader:init)
;;; (swank:create-server :port 4005 :style swank:*communication-style* :dont-close t)
;;;
;;; 4. M-x slime-connect RET RET
;;;
;;; (slime-eval-async '(ql:quickload 'parenscript))
;;; (slime-eval-async '(ql:quickload 'advice-giver))
;;; (ag:server-start!)
;;;
@gabriel-laddel
gabriel-laddel / gist:11320806
Created April 26, 2014 14:02
Rewrite rules rule!
(in-package vecto)
(use-package 'iterate)
(use-package 'metabang-bind)
(defun generate-instructions (n)
(iter (repeat n)
(for l initially '(:forward a) then
(alexandria:flatten (mapcar (lambda (x) (cond ((equal 'a x) '(a b :forward :right))
((equal 'b x) '(:left a :forward a :left b))
(t x))) l)))
(defmacro maybe-install-and-require (&rest packages)
"If PACKAGES are not installed, `package-install' them, then `require' all
PACKAGES"
(require 'package)
(require 'cl)
(package-initialize)
(window-configuration-to-register :prior-package-install)
(lexical-let* ((old-value package-archives)
(temp-value '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
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