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
println("Hello World") | |
// Vars / static types | |
var v1: String = "Test" | |
v1 = "Test 2" | |
//v1 = 2 -> Fehler, da va bereits Type String | |
// Type inference | |
var v2 = "Variable 2" |
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
case class Score(p1: Int, p2: Int) | |
// Alles ist eine Expression | |
val score = Score(5, 1) | |
val winner = if (score.p1 > score.p2) "Player 1" else "Player 2" | |
val looser = if (score.p1 > score.p2) "Player 2" else "Player 1" | |
// Tupel | |
val winnerLooser = |
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
package controllers | |
import java.io.Writer | |
import io.prometheus.client.CollectorRegistry | |
import io.prometheus.client.exporter.common.TextFormat | |
import play.api.libs.iteratee.Concurrent | |
import play.api.mvc.{Action, Controller} | |
/* |
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
Terraform Version: 0.10.8 | |
Resource ID: aws_launch_configuration.master_launch_configuration | |
Mismatch reason: extra attributes: image_id | |
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"security_groups.#":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "security_groups.63137120":*terraform.ResourceAttrDiff{Old:"", New:"sg-04a1226e", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "root_block_device.0.volume_size":*terraform.ResourceAttrDiff{Old:"", New:"20", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "root_block_device.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, |