Taken from Rich Hickey's day 2 keynote at Clojure Conj 2010.
This file contains hidden or 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
{"spec": "(spec-tools.core/spec {:spec (clojure.spec.alpha/keys :req-un [:app.route.api/x :app.route.api/y]), :type :map, :leaf? false})", | |
"problems":[{"path":["y"],"pred":"clojure.core/int?","val":"a","via":["app.route.api/plus-request","app.route.api/y"],"in":["y"]}], | |
"type":"reitit.coercion/request-coercion", | |
"coercion":"spec", | |
"value":{"x":"2","y":"a"}, | |
"in":["request","query-params"]} |
This file contains hidden or 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
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
This file contains hidden or 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
;; For inspecting datastructure: | |
;; https://clojure.github.io/clojure/clojure.inspector-api.html#clojure.inspector/inspect-tree | |
(defn repl-settings! | |
[] | |
;; Watch out -- this affects `pr-str` | |
(do (alter-var-root #'*print-length* (constantly 20)) | |
(alter-var-root #'*print-level* (constantly 6)))) | |
;; A library that can be used to render typical Clojure data structures using Graphviz. |
FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
This file contains hidden or 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
CREATE EXTERNAL TABLE IF NOT EXISTS checkins ( | |
id int | |
user_id int, | |
venue_id int, | |
date timestamp | |
) | |
ROW FORMAT SERDE | |
'org.openx.data.jsonserde.JsonSerDe' | |
LOCATION | |
's3://YOUR_BUCKET/checkins' |
This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Auto scaling deploy example", | |
"Parameters": { | |
"AvailabilityZone": { | |
"Type": "String", | |
"Default": "us-west-1a" | |
}, | |
"ImageId": { | |
"Type": "String" |
This file contains hidden or 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
FROM ubuntu | |
MAINTAINER "Bobby Wilson" | |
RUN apt-get update | |
RUN apt-get install curl -y | |
RUN cd /usr/local; curl -O http://nodejs.org/dist/v0.10.16/node-v0.10.16-linux-x64.tar.gz | |
RUN cd /usr/local; tar xzf node-v0.10.16-linux-x64.tar.gz | |
ENV PATH /usr/local/bin:/usr/sbin:/bin:/usr/local/node-v0.10.16-linux-x64/bin | |
ADD . /app | |
EXPOSE 8000:8000 | |
ENV PORT 8000 |
This file contains hidden or 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
$ go install code.google.com/p/go.tools/cmd/vet | |
go install code.google.com/p/go.tools/cmd/vet: open /usr/local/go/pkg/tool/linux_amd64/vet: permission denied | |
$ sudo su - root | |
# GOPATH=/tmp/go /usr/local/go/bin/go get code.google.com/p/go.tools/cmd/cover | |
# GOPATH=/tmp/go /usr/local/go/bin/go get code.google.com/p/go.tools/cmd/vet | |
# rm -r /tmp/go | |
# exit |
This file contains hidden or 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
# define some variables | |
variable "aws_ubuntu_ami" { | |
default = "ami-972444ad" | |
} | |
variable "aws_keypair" { | |
default = "xxxx" | |
} | |
# AWS account details |
NewerOlder