Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am staypufd on github.
  • I am staypufd ( on keybase.
  • I have a public key ASCXD3EQsLw74ZdDgbVp8a8FSbdsPZTfKXFLm3H65kggqwo

To claim this, I am signing this object:

View gist:0dea840c972383162be5810e15b3d53e
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
# Colors
View gist:25ea1d2da98543b94a5ca2cedd259ddc
View .lisp
;;; 1. Example of using quicklisp to laod in
;;; cl-utilities and use one function
;;; Load in the cl-utilities package
(ql:quickload "cl-utilities")
;;; Tell the cl-user namespace to use the cl-utilities package
View gist:3d246e33051e583de09a
;; Assumes a Datomic DB where an Entity is defined that has attribute
;; :park.amenity/label of type string. Subsitute your query in place
;; of this example.
(let [vec-str (->>
(d/q '[:find ?amenity-name
:where [?e :park.amenity/label ?amenity-name]]
(sort-by first))]
(doseq [x vec-str]
View Parent with two siblings
(defn section-button-view [title-and-symbol-vector owner]
[:div {:style {:color "black"
:border "1px solid grey"
:border-radius "4px"
:padding "5px"
:margin "5px"
:text-align "center"
View gist:2194266106df07234fa6
create table quote (
id identity,
quotation varchar(1000) not null,
author varchar(100) not null,
insert into quote (quotation, author) values ('The hardest thing in the world to understand is the income tax.', 'Albert Einstein');
insert into quote (quotation, author) values ('The only thing that interferes with my learning is my education.', 'Albert Einstein');
insert into quote (quotation, author) values ('I am convinced that He (God) does not play dice.', 'Albert Einstein');
View gist:879720f29543c802bd63
Mac - Run HSQLDB
NOTE: Assumes your hsqldb is installed at the top level of your home directory.
java -cp ~/hsqldb-2.3.2/hsqldb/lib/hsqldb.jar org.hsqldb.server.Server
View gist:ec9a15321022374d01d7
Windows - Run HSQLDB
NOTE: Assumes your hsqldb is installed at c:\ on your PC
java -cp c:\hsqldb-2.3.2\hsqldb\lib\hsqldb.jar org.hsqldb.server.Server
View gist:059afe6b47cfd06637da
<table class="table table-striped">
<c:forEach items="${theQuotes }" var="aQuote">
<blockquote class="blockquote">
<p>${aQuote.quote }</p>
<c:out value="${ }"/>