protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I/usr/local/Cellar/protobuf/2.6.1/include \
--go_out=grpc:. \
uuid.proto
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
. | |
./out | |
./out/result.log | |
./hello | |
./hello/.git | |
./hello/.git/refs | |
./hello/.git/refs/heads | |
./hello/.git/refs/heads/master | |
./hello/.git/refs/tags | |
./hello/.git/refs/remotes |
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 example; | |
import lombok.Value; | |
import javax.validation.ConstraintViolation; | |
import javax.validation.Validator; | |
import javax.validation.constraints.AssertTrue; | |
import java.time.LocalDateTime; | |
import java.util.ArrayList; | |
import java.util.List; |
2016/04/02時点
- ES5までに無い構文
- 何れ覚える必要があるので、ESに関しては学習コストが無いに等しい
- ESには無いTypeScriptの構文理解
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 class FileSystemTest { | |
@Test | |
public void t1() throws Exception { | |
long startModified = f.lastModified(); | |
Observable.interval(5, TimeUnit.SECONDS) | |
.map(i -> { | |
System.out.println("map "); | |
long l = f.lastModified(); | |
if (l % 3 == 0) { |
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 java.nio.file.WatchEvent; | |
public class FileSystemEvent { | |
WatchEvent<?> watchEvent; | |
FileSystemEvent(WatchEvent<?> watchEvent) { | |
this.watchEvent = watchEvent; | |
} |
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 rxjava; | |
import com.google.common.base.Stopwatch; | |
import org.junit.Test; | |
import org.junit.experimental.runners.Enclosed; | |
import org.junit.runner.RunWith; | |
import rx.Notification; | |
import rx.Observable; | |
import rx.Observer; | |
import rx.Subscriber; |
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
@Test | |
public void Functionのdefaultメソッド() throws Exception { | |
Function<String, String> s1 = s -> s + "1"; | |
Function<String, String> s2 = s -> s + "2"; | |
Function<String, String> s3 = s -> s + "3"; | |
// andThen | |
String res1 = s1.andThen(s2).andThen(s3).apply("start:"); | |
assertThat(res1, is("start:123")); |