Skip to content

Instantly share code, notes, and snippets.

😀

Ikhun Um ikhoon

😀
Block or report user

Report or block ikhoon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View newmac.sh
#!/bin/bash
# zsh
echo "Installing zsh..."
chsh -s `which zsh`
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
# homebrew, pip
echo "Installing homebrew, pip..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@ikhoon
ikhoon / reactive-stream-example.scala
Last active May 3, 2018
Reactive Stream을 활용 예제
View reactive-stream-example.scala
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()
}
View scala-fp-books.md
@ikhoon
ikhoon / learning-shapeless.md
Last active Oct 18, 2018
Learning Materials for generic & dependent programming using shapeless
View learning-shapeless.md
@ikhoon
ikhoon / Contravariant.scala
Last active Jul 10, 2017
왜 함수의 input은 반공변성인가?
View Contravariant.scala
// https://twitter.github.io/scala_school/type-basics.html
// 트위터 스칼라 스쿨에 나오는 자료구조를 활용해보겠다.
class Animal { val sound = "rustle" }
class Bird extends Animal { override val sound = "call" }
class Chicken extends Bird { override val sound = "cluck" }
class Duck extends Bird { override val sound = "duck" }
def foo(tweet: Bird => String) = {
tweet(new Bird)
View TwiiterScalaFutureOps.scala
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)
}
@ikhoon
ikhoon / scaladays2017_cph.md
Created Feb 12, 2017
스칼라데이즈 2017 코펜하겐
View scaladays2017_cph.md
@ikhoon
ikhoon / must-watch-talks.md
Last active Mar 21, 2019
Must watch talks - reddit /r/scala
View must-watch-talks.md
@ikhoon
ikhoon / Java8TimeTest.java
Created Aug 31, 2016
Java8 Time API 기능 비교
View Java8TimeTest.java
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";
You can’t perform that action at this time.