- Install IntelliJ + Scala Plugin
- Don’t do the Coursera courses yet.
- Don’t do the “red book” Functional Programming in Scala yet.
- Do: http://underscore.io/books/
- Essential Scala
- Essential Play
- Essential Slick
- Do Scala for the Impatient: https://www.amazon.com/Scala-Impatient-Cay-S-Horstmann/dp/0321774094
- The Neophyte’s Guide to Scala http://danielwestheide.com/scala/neophytes.html
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
val InputRegex = "(\\d+)-(\\d+),(\\d+)-(\\d+)".r | |
def matchFullContain(str: String): Boolean = str match { | |
case InputRegex(t1, t2, e1, e2) => | |
(t1.toInt <= e1.toInt && e2.toInt <= t2.toInt) || | |
(e1.toInt <= t1.toInt && t2.toInt <= e2.toInt) | |
case _ => false | |
} | |
def matchOverlap(str: String): Boolean = str match { |
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 io.feoktant.path | |
package domain | |
import scala.annotation.tailrec | |
object App extends App { | |
println(Sample.UserFields.emailAddress.id) | |
println(Sample.UserFields.emails(3).value) | |
} |
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
create table category | |
( | |
category_id serial primary key, | |
title varchar not null | |
); | |
create table post | |
( | |
post_id serial primary key, | |
category_id int not null references category, |
- Install IntelliJ + Scala Plugin
- Don’t do the Coursera courses yet.
- Don’t do the “red book” Functional Programming in Scala yet.
- Do: http://underscore.io/books/
- Essential Scala
- Essential Play
- Essential Slick
- Do Scala for the Impatient: https://www.amazon.com/Scala-Impatient-Cay-S-Horstmann/dp/0321774094
- The Neophyte’s Guide to Scala http://danielwestheide.com/scala/neophytes.html
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
import akka.http.scaladsl.model.HttpRequest | |
import akka.http.scaladsl.server.Directive0 | |
import akka.http.scaladsl.server.directives.{DebuggingDirectives, LoggingMagnet} | |
import akka.http.scaladsl.unmarshalling.Unmarshal | |
import akka.stream.Materializer | |
import org.slf4j.Logger | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.{Failure, Success} |
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
public WebConferenceProvider resolve(String providerId) { | |
VideoProviderEntity providerEntity = VideoProviderEntity.findById(providerId).orElseThrow(() -> | |
new ServiceInternalException("Cannot resolve provider with id: " + providerId) | |
); | |
return applicationContext.getBean(providerEntity.getProviderClass()); | |
} | |
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 com.timetrade.wciservice.controller; | |
import com.timetrade.wciservice.config.ConfigurationResolver; | |
import com.timetrade.wciservice.config.properties.LicenseeAdminConfigData; | |
import com.timetrade.wciservice.domain.VerifyConfigurationResponse; | |
import com.timetrade.wciservice.domain.VideoProviderEntity; | |
import com.timetrade.wciservice.exceptions.WCIException; | |
import com.timetrade.wciservice.provider.ProvidersResolver; | |
import com.timetrade.wciservice.provider.WebConferenceProvider; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="notepadplusplus" /> | |
<package id="vim" /> | |
<package id="7zip" /> | |
<package id="python" /> | |
<package id="pip" /> | |
<package id="putty" /> | |
<package id="Console2"> | |