Taken from Rich Hickey's day 2 keynote at Clojure Conj 2010.
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 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 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 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 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 |
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
defmodule JSON do | |
import String | |
def parse( content ) do | |
case parse_content(content) do | |
{ value, "" } -> value | |
{ _, _ } -> raise "crap" | |
end | |
end |
As configured in my dotfiles.
start new:
tmux
start new with session name:
- @fergbyrne
- HTM = Hierarchical Temporal Memory
- Slides
- big data is like teenage sex
- noone knows how to do it
- everyone thinks everyone else is doing it
This post inspired me : http://www.krisbuytaert.be/blog/docker-vs-reality-0-1 !
When people say real world, they actually mean the sick, bitter and desperate world they imagined for you.
So how to produce "ahoy:234" with "ahoy:" and [1,2,3] ??
The idea [1] is "a program is composed of severals one-liners", lets try to port this one liner into several popular languages. :)
NewerOlder