Scalatra Version | Scala Version |
---|---|
2.5 | 2.112.12 |
This file contains hidden or 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
2017-04-14 01:34:48 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode): | |
"Attach Listener" #118 daemon prio=9 os_prio=31 tid=0x00007fdcfd42a000 nid=0x7c07 waiting on condition [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
"elasticsearch[Node 1][management][T#2]" #117 daemon prio=5 os_prio=31 tid=0x00007fdcfd07a800 nid=0x571b waiting on condition [0x000000012d58c000] | |
java.lang.Thread.State: TIMED_WAITING (parking) | |
at sun.misc.Unsafe.park(Native Method) | |
- parking to wait for <0x00000007a144caa0> (a org.elasticsearch.common.util.concurrent.EsExecutors$ExecutorScalingQueue) |
This file contains hidden or 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
select | |
x2.x3, | |
x2.x4, | |
x2.x5, | |
x2.x6, | |
x2.x7, | |
x2.x8, | |
x2.x9, | |
x2.x10, | |
x2.x11, |
The original article by nazoking on Qiita in Japanese.
http://qiita.com/nazoking@github/items/4518266ff0f4fd92bd0a
GitBucket is an open-source Git server based on Scala and JVM techinoligies. It provides features like GitHub or BitBucket and you can install it on your server easily.
This file contains hidden or 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
sealed trait |[A, B] { | |
def value: Any | |
def as[T]: T = value.asInstanceOf[T] | |
} | |
object | { | |
private case class Union[A, B](_1: Option[A], _2: Option[B]) extends |[A, B]{ | |
def value: Any = (_1 match { | |
case Some(x: |[_, _]) => Some(x.value) | |
case x => x |
This file contains hidden or 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.github.gitbucket.lfs.servlet | |
import java.nio.file.Paths | |
import javax.servlet.http.{HttpServletRequest, HttpServletResponse} | |
import org.eclipse.jgit.lfs.lib.AnyLongObjectId | |
import org.eclipse.jgit.lfs.server.fs.{FileLfsRepository, FileLfsServlet, ObjectUploadListener} | |
class GitLfsServlet extends FileLfsServlet( | |
new FileLfsRepository("http://localhost:9090/git-lfs", Paths.get("/tmp/lfs")), 30000L |
This file contains hidden or 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.actor._ | |
import akka.event._ | |
object EventBusTest extends App { | |
// message | |
trait EventMessage | |
case class PublishEventMessage() extends EventMessage | |
// event bus |
$ curl -L -O https://pantsbuild.github.io/setup/pants && chmod +x pants && touch pants.ini
$ ./pants -V
New python executable in /Users/naoki.takezoe/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.ZQsYCJ/install/bin/python2.7
Also creating executable in /Users/naoki.takezoe/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.ZQsYCJ/install/bin/python
Installing setuptools, pip, wheel...done.
Collecting pantsbuild.pants
Downloading pantsbuild.pants-1.1.0.tar.gz (874kB)
100% |████████████████████████████████| 880kB 1.4MB/s
Collecting ansicolors==1.0.2 (from pantsbuild.pants)
This file contains hidden or 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 slick.ast.{CompiledStatement, ResultSetMapping} | |
import slick.driver.{H2Driver, JdbcProfile} | |
import slick.jdbc.{JdbcBackend, JdbcResultConverterDomain} | |
import slick.lifted.Query | |
import slick.relational.{CompiledMapping, ResultConverter} | |
import slick.util.SQLBuilder | |
/** | |
* To use the blocking APIs, import BlockingH2Driver as follows: | |
* |
This file contains hidden or 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.github.takezoe.akka.http.jackson | |
import akka.http.scaladsl.marshalling.{Marshaller, _} | |
import akka.http.scaladsl.model.{HttpEntity, HttpRequest} | |
import akka.http.scaladsl.model.MediaTypes._ | |
import akka.http.scaladsl.unmarshalling._ | |
import akka.stream.Materializer | |
import com.fasterxml.jackson.databind._ | |
import com.fasterxml.jackson.module.scala.DefaultScalaModule | |
import com.fasterxml.jackson.databind.module.SimpleModule |