curl -L https://bit.ly/poejp4 | bash
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 $cp.`terminal-2.68.jar` | |
import $ivy.`com.googlecode.lanterna:lanterna:3.1.1` | |
import com.jediterm.terminal.TerminalColor | |
import com.jediterm.terminal.model.TerminalModelListener | |
import scala.util.Using | |
import com.jediterm.terminal.model.CharBuffer | |
import com.jediterm.terminal.util.CharUtils | |
import com.jediterm.terminal.{StyledTextConsumer, TerminalMode, TextStyle} | |
import com.googlecode.lanterna |
I hereby claim:
- I am atty303 on github.
- I am atty303 (https://keybase.io/atty303) on keybase.
- I have a public key whose fingerprint is 1D6A D7CA 1500 4605 8A4D BC16 ABB1 431F ED97 453A
To claim this, I am signing this object:
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
# JMH version: 1.21 | |
# VM version: JDK 11.0.8, OpenJDK 64-Bit Server VM, 11.0.8+10-LTS | |
# VM invoker: /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java | |
# VM options: -Xss128m -Xmx2g | |
# Warmup: 3 iterations, 10 s each | |
# Measurement: 3 iterations, 10 s each | |
# Timeout: 10 min per iteration | |
# Threads: 1 thread, will synchronize iterations | |
# Benchmark mode: Throughput, ops/time | |
# Benchmark: zio.ArrayFillBenchmark.catsArrayFill |
Run below at Elevated PowerShell console.
Set-ExecutionPolicy RemoteSigned
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/atty303/c643eb0d0efddfc754deed74c2d211de/raw/8ca40b5d5ecd73a42d71a4e44a658368bd57eeda/base.ps1 -DisableReboots
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.finagle.consul | |
/** | |
* @see https://github.com/kachayev/finagle-consul/blob/master/src/main/scala/com/twitter/finagle/consul/ConsulQuery.scala | |
*/ | |
case class ConsulQuery(hosts: String, | |
name: String, | |
tags: Set[String], | |
dc: Option[String], | |
near: Option[String]) |
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.adtdp.tenma.shared.spark.app | |
import scala.util.Try | |
/** | |
* Spark アプリケーションを表現する trait | |
*/ | |
trait SparkApp { | |
/** | |
* アプリケーションのエントリポイント |
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 org.apache.spark.streaming | |
import org.apache.spark.util.ManualClock | |
/** | |
* A `Clock` whose time can be manually set and modified. Its reported time does not change | |
* as time elapses, but only as its time is modified by callers. This is mainly useful for | |
* testing. | |
* | |
* private[spark] である ManualClock を外から扱えるようにする proxy class. |
NewerOlder