Skip to content

Instantly share code, notes, and snippets.

@stassats
stassats / post.lisp
Created August 17, 2011 04:06
Postage tracking
(eval-when (:compile-toplevel :load-toplevel :execute)
(:asd :drakma)
(:asd :babel)
(:asd :cl-json))
(defpackage post
(:use :cl))
(in-package :post)
@stassats
stassats / gist:741780
Created December 15, 2010 08:41
lisp file analyzer
;;; Usage (percentage (analyze-systems '(a b c d))) => 42.23
(eval-when (:compile-toplevel :load-toplevel :execute)
(when (asdf:find-system :named-readtables nil)
(asdf:load-system :named-readtables)))
(defun analyze-form (form)
(typecase form
(symbol
(when (eql (symbol-package form) (find-package 'cl))