- Install postgres with homebrew.
brew install postgres
- Add
/usr/local/bin
to the head of your$PATH
to ensure the homebrew version of postgres is used.
Add this to your .bashrc
or .zshrc
depending on your preferred shell.
module Hexable | |
def self.included(base) | |
base.class_eval do | |
before_create :generate_hex | |
attr_accessible :hex | |
end | |
end | |
def to_param | |
self.hex |
gem 'memcachier' | |
gem 'dalli' |
irb(main):017:0> (1..10).last # OK | |
=> 10 | |
irb(main):019:0> (1...10).to_a.last # OK | |
=> 9 | |
irb(main):018:0> (1...10).last # WAT | |
=> 10 | |
irb(main):020:0> |
I hereby claim:
To claim this, I am signing this object:
file taken from http://cdn.cognitect.com/stateofclojure/2014/clj-feature.txt
$ cat /tmp/clj-feature.txt | grep -v '^$' | sort | uniq -c | sort -nr | head
10 "feature expressions"
7 "Types"
5 "pattern matching"
5 "fast startup"
5 "Feature expressions"
4 "debugger"
;; version 1 i.e. [[a] [b] [c] [d] [e] [f]] | |
{:app/schema | |
{:txes [[{:db/id #db/id [:db.part/db] | |
:db/ident :something/title | |
:db/valueType :db.type/string | |
:db/cardinality :db.cardinality/one | |
:db/index false | |
:db.install/_attribute :db.part/db}]] | |
[{:db/id #db/id [:db.part/db] |
(require '[clojure.test :refer [is]]) | |
(require '[datomic.api :as d]) | |
(def url "datomic:mem://localhost:4334/test") | |
(d/create-database url) | |
(def conn (d/connect url)) | |
(def schema [{:db/id #db/id[:db.part/db] | |
:db/ident :person/name | |
:db/valueType :db.type/string |
$ lein --version | |
Leiningen 2.6.1 on Java 1.8.0_66 Java HotSpot(TM) 64-Bit Server VM | |
$ lein cljsbuild auto dev | |
Compiling "resources/public/js/main.js" failed. | |
java.lang.NoSuchMethodError: com.google.common.base.CharMatcher.javaUpperCase()Lcom/google/common/base/CharMatcher; | |
JsDocInfoParser.java:1216 com.google.javascript.jscomp.parsing.JsDocInfoParser.validTemplateTypeName | |
JsDocInfoParser.java:946 com.google.javascript.jscomp.parsing.JsDocInfoParser.parseAnnotation | |
JsDocInfoParser.java:283 com.google.javascript.jscomp.parsing.JsDocInfoParser.parseHelperLoop | |
JsDocInfoParser.java:273 com.google.javascript.jscomp.parsing.JsDocInfoParser.parse |