I hereby claim:
- I am ashabhasa on github.
- I am ashabhasa (https://keybase.io/ashabhasa) on keybase.
- I have a public key whose fingerprint is CBE9 AE23 8A50 C16F 51F3 CA5E 4634 DC07 5883 B280
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x
package fpmax | |
import scala.util.Try | |
import scala.io.StdIn.readLine | |
object App0 { | |
def main: Unit = { | |
println("What is your name?") | |
val name = readLine() |
#!/bin/sh | |
# The script was first published here http://mpas.github.io/blog/2015/06/11/setting-up-docker-rabbitmq-with-predefined-users/vhosts/ | |
# Create Default RabbitMQ setup | |
( sleep 10 ; \ | |
# Create users | |
# rabbitmqctl add_user <username> <password> | |
rabbitmqctl add_user test_user test_user ; \ | |
rabbitmqctl add_user guest guest ; \ |
FROM rabbitmq:3-management | |
# The script was first published here http://mpas.github.io/blog/2015/06/11/setting-up-docker-rabbitmq-with-predefined-users/vhosts/ | |
# Add script to create default users / vhosts | |
ADD init.sh /init.sh | |
# Set correct executable permissions | |
RUN chmod +x /init.sh | |
# Define default command | |
CMD ["/init.sh"] |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.box_check_update = false | |
config.vm.hostname = "mobydick" | |
config.vm.network "forwarded_port", guest: 15672, host: 15672 | |
config.vm.network :forwarded_port, guest: 4369, host: 4369 | |
config.vm.network :forwarded_port, guest: 5672, host: 5672 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.