-
아카 리더, 할리 지인 Konrad의 "The best is yet to come - State of Akka in 2017" http://event.scaladays.org/scaladays-cph-2017#!#schedulePopupExtras-8119
-
스칼라 매스크로 창시자, Eugene의 "Building code analysis tools at Twitter" http://event.scaladays.org/scaladays-cph-2017#!#schedulePopupExtras-8130
-
스칼라 컴파일시간 줄일수 있는 팁을 준다함 http://event.scaladays.org/scaladays-cph-2017#!#schedulePopupExtras-8141
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 org.junit.Test; | |
import java.time.Instant; | |
import java.time.OffsetDateTime; | |
import java.time.ZonedDateTime; | |
import java.time.format.DateTimeParseException; | |
public class Java8TimeTest { | |
private String instantFormat = "2007-12-03T10:14:30.000Z"; |
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
object TwiiterScalaFutureOps { | |
import TwitterScalaFutureConverters._ | |
implicit class ScalaToTwitterFuture[T](f: Future[T]) { | |
def toTwitterFuture: twitter.Future[T] = scalaToTwitterFuture(f) | |
} | |
implicit class TwitterToScalaFuture[T](f: twitter.Future[T]) { | |
def toScalaFuture: Future[T] = twitterToScalaFuture(f) | |
} |
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 org.reactivestreams.{Processor, Publisher, Subscriber, Subscription} | |
// 데이터 생성 | |
val publisher = new Publisher[Int] { | |
def subscribe(s: Subscriber[_ >: Int]) = { | |
(1 to 100).foreach { x => | |
s.onNext(x) | |
} | |
s.onComplete() | |
} |
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
String foo() { | |
return "abc"; | |
} | |
String foo(Supplier<String> s) { | |
System.out.println(s); | |
return "abc " + s.get(); | |
} | |
@Test |
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
org.hamcrest:hamcrest:2.1 | |
variant "default" [ | |
org.gradle.status = release (not requested) | |
] | |
org.hamcrest:hamcrest:2.1 | |
\--- org.awaitility:awaitility:4.0.1 | |
\--- allDependencies (requested org.awaitility:awaitility) | |
org.hamcrest:hamcrest-core:1.3 |
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
# git checkout remote pull request to local branch and track it with FZF-TMUX | |
# Requirements: | |
# - hub : https://github.com/github/hub | |
# - fzf-tmux : https://github.com/junegunn/fzf#fzf-tmux-script | |
pr() { | |
local pr_list pr_id origin branch_name | |
pr_list=$(cat /dev/null | hub pr list -f "%pC%>(8)%i%Creset %t @%au %l%n") | |
result=$? | |
if [[ $pr_list == *"github.com username:"* ]]; then | |
echo "Please run 'hub pr list' to login GitHub" |
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 category | |
import java.util.concurrent.CompletableFuture | |
object Functors { | |
// Monad 핵심: 많이 쓰인다. | |
// A => B, F[A] => (A => B), => F[B] | |
// Map Pair(A, B) | |
// type class, 특정 타입에 기반된 행위 |
OlderNewer