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
javascript:(function(){var discogsUrl=window.location['href'].match(/master.\d+$/)[0];var url="http://www.disconest.com/?discogsurl=https://www.discogs.com/"+discogsUrl;window.location=url;})(); |
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
if $VIM_PLUGINS != 'NO' | |
runtime! autoload/pathogen.vim | |
if exists('g:loaded_pathogen') | |
execute pathogen#infect('~/.vimbundles/{}', '~/.vim/bundle/{}') | |
endif | |
endif | |
syntax on | |
filetype plugin indent on |
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
(-> @db-connection | |
jdbc/get-connection | |
(.getMetaData) | |
(.getTables nil nil nil (into-array ["TABLE" "VIEW"])) | |
resultset-seq | |
doall) |
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
Should you happen to be possessed of a certain verbal acuity coupled with a | |
relentless, hair-trigger humor and surface cheer spackling over a chronic | |
melancholia and loneliness – a grotesquely caricatured version of your deepest | |
Self which you trot out at the slightest provocation to endearing and glib | |
comic effect, thus rendering you the kind of fellow who is beloved by all yet | |
loved by none, all of it to distract, however fleetingly, from the cold and | |
dead-faced truth that with each passing year you face the unavoidable certainty | |
of a solitary future in which you will perish one day while vainly attempting | |
the Heimlich maneuver on yourself over the back of a kitchen chair – then this | |
confirmation that you have triumphed again and managed to gull yet another |
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
def deep_fetch(*keys, &default) | |
keys.inject(self) do |hsh, key| | |
hsh.fetch(key, &(proc { |*args| return default.call(*args) } if default)) | |
end | |
end |
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
function drip | |
{ | |
BASE="$HOME/src/drip/drip" | |
cd $BASE | |
vagrant up | |
tmux start-server | |
if tmux has-session -t drippin | |
then | |
tmux attach-session -t drippin |
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 as.rn | |
(:require [clojure.xml :as xml] | |
[clojure.zip :as zip] | |
[clojure.data.zip.xml :as zip-xml]) | |
(:import org.jruby.javasupport.JavaEmbedUtils)) | |
(def runtime (JavaEmbedUtils/initialize '())) | |
(let [evaler (JavaEmbedUtils/newRuntimeAdapter) | |
eval-rb* (fn [expr] (.eval evaler runtime expr))] |
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- with-test-db* [db f] | |
(let [schema (slurp "resources/project/schema.sql")] | |
(jdbc/with-connection db | |
(jdbc/transaction | |
(jdbc/set-rollback-only) | |
(apply jdbc/do-commands | |
(clojure.string/split schema #";")) | |
(f))))) | |
(defmacro with-test-db [[bound db] & body] |
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
(storm/defspout amqp-spout ["message"] {:params [queue]} | |
[conf context collector] | |
(let [[conn ch] (connect-to-queue queue) | |
qcs (QueueingConsumer. ch)] | |
(lb/consume ch queue qcs | |
:exclusive false | |
:auto-delete false | |
:persistent true | |
:durable true) | |
(storm/spout |