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
(defmethod menu :breakfast | |
[_] | |
["scrambled eggs" | |
"french toast" | |
"full english"]) |
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
https://raw.github.com/gist/1605054/1cfcd32a3d31a3cad62111ff6d27e62378e68ef4/gistfile1.txt | |
https://github.com/mikaelj/snippets/raw/master/lisp/spellcheck/spellcheck.lisp | |
http://lib.store.yahoo.net/lib/paulgraham/acl2.lisp | |
http://lib.store.yahoo.net/lib/paulgraham/onlisp.lisp | |
http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=blob_plain;f=arrays.lisp;hb=HEAD;js=1 | |
http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=blob_plain;f=binding.lisp;hb=HEAD;js=1 | |
http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=blob_plain;f=conditions.lisp;hb=HEAD;js=1 | |
http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=blob_plain;f=control-flow.lisp;hb=HEAD;js=1 | |
http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=blob_plain;f=definitions.lisp;hb=HEAD;js=1 | |
http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=blob_plain;f=features.lisp;hb=HEAD;js=1 |
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
(defun y (func) | |
((lambda (x) (funcall x x)) | |
(lambda (y) | |
(funcall func | |
(lambda (&rest args) | |
(apply (funcall y y) args)))))) |
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
termcapinfo xterm ti@:te@ | |
hardstatus alwayslastline "%{= ky}%?%-Lw%?%{ky}[%{=br bk}%n*%f %t%?(%u)%?%{-b yk}]%?%+Lw%{yk} " |
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
(define-minor-mode teleprompt2-mode | |
"Teleprompt mode" | |
nil | |
" Teleprompt" | |
`((,(kbd "<prior>") . (lambda () (interactive) (scroll-down 1))) | |
(,(kbd "<next>") . (lambda () (interactive) (scroll-up 1))))) | |
(defun teleprompt-roll () | |
(interactive) |
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
*#*# | |
.*#* | |
*~ | |
.*~ | |
tmp/ | |
build/ |
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
(ns sudoku | |
(:require [clojure.contrib.seq-utils :as su])) | |
(defn cross [A B] | |
(for [a A b B] (str a b))) | |
(def rows "ABCDEFGHI") | |
(def cols "123456789") | |
(def digits "123456789") |
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
(defmulti foo (fn [a & more] a)) | |
(defmethod foo :bar | |
([a] (println "a 1")) | |
([a b] (println "a 2"))) | |
(comment | |
> (foo :bar) | |
a 1 | |
nil |
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
; cc -m64 -fPIC -o /home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel /home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c: In function ‘main’: | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c:69: warning: cast from pointer to integer of different size | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c:75: warning: cast from pointer to integer of different size | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c:80: warning: cast from pointer to integer of different size | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c:85: warning: cast from pointer to integer of different size | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c:90: warning: cast from pointer to integer of different size | |
/home/abhishek/Shed/cl-proc/darcs/cl-proc/src/grovel.c:95: warning: cast from pointer to integer of different size | |
/home/ab |
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 hello-route [request] | |
((GET "/" | |
{:status 200 | |
:headers {} | |
:body "Hello World"}) request)) |
NewerOlder