Skip to content

Instantly share code, notes, and snippets.

View fuzzyalej's full-sized avatar
🎯
Focusing

Alejandro Andrés fuzzyalej

🎯
Focusing
View GitHub Profile
@fuzzyalej
fuzzyalej / gist:11258873
Created April 24, 2014 15:29
CL DSL for generation API documentation
(generate-api-documentation
:base "http://api.test.com"
:title "API Documentaition for TEST"
:author "fuzzyalej"
(with-endpoint "/book"
:method "GET"
:description "This will fetch a book from the database"
(parameters
(id
:type "String"
@fuzzyalej
fuzzyalej / histogram.lisp
Created April 17, 2014 16:05
Histogram exercise to learn arrays. Example from "Common Lisp: A gentle introduction to symbolic computation"
(defvar *total-points* nil)
(defvar *hist-array* nil)
(defun record-value (n)
(if (or (> n 10)
(< n 0))
(break "The supplied argument is not between 0 and 10"))
(setf (aref *hist-array* n) (+ 1 (aref *hist-array* n)))
(setf *total-points* (+ 1 *total-points*)))
@fuzzyalej
fuzzyalej / about.md
Created February 2, 2012 09:28 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer