Skip to content

Instantly share code, notes, and snippets.

Sam Griffith Jr staypufd

Block or report user

Report or block staypufd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

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:

staypufd / gist:0dea840c972383162be5810e15b3d53e
Last active May 16, 2017
.bashrc that has config for virtual environments to be required and a nice little script 'eve' that tries to activate python virtualenv and if not prints a informative error
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
staypufd / .lisp
Created Feb 5, 2016
Example of using SPLIT-SEQUENCE from cl-utilities package for Common Lisp
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
staypufd / gist:3d246e33051e583de09a
Created Oct 22, 2015
Print out Datomic Query Results Nicely in REPL
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]
staypufd / Parent with two siblings
Last active Sep 23, 2015
This is the parent with the state that I want one child to be able to change and that triggers the render which looks at local state and then changes
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="${ }"/>
You can’t perform that action at this time.