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 util | |
import java.util.Date | |
import scala.collection.mutable.ListBuffer | |
import scala.collection.mutable.MutableList | |
object Benchmark { | |
val END = 10000000 |
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
2014/08/19 10:19:40 org.apache.catalina.core.AprLifecycleListener init | |
情報: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_14/jre/lib/i386/server:/usr/local/jdk1.6.0_14/jre/lib/i386:/usr/local/jdk1.6.0_14/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib | |
2014/08/19 10:19:41 org.apache.coyote.AbstractProtocol init | |
情報: Initializing ProtocolHandler ["http-bio-8080"] | |
2014/08/19 10:19:41 org.apache.coyote.AbstractProtocol init | |
情報: Initializing ProtocolHandler ["ajp-bio-8009"] | |
2014/08/19 10:19:41 org.apache.catalina.startup.Catalina load | |
情報: Initialization processed in 913 ms | |
2014/08/19 10:19:41 org.apache.catalina.core.StandardService startInternal | |
情報: サービス Catalina を起動します |
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
docker-attach() | |
{ | |
id=$(docker inspect --format '{{.Id}}' $1) | |
root=/var/lib/docker/execdriver/native/$id | |
sudo sh -c "cd $root && $GOPATH/bin/nsinit exec $2" | |
} |
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
java.util.NoSuchElementException: None.get | |
at scala.None$.get(Option.scala:322) | |
at scala.None$.get(Option.scala:320) | |
at app.RepositoryViewerControllerBase$$anonfun$16$$anonfun$apply$22$$anonfun$apply$23$$anonfun$apply$24.apply(RepositoryViewerController.scala:198) | |
at app.RepositoryViewerControllerBase$$anonfun$16$$anonfun$apply$22$$anonfun$apply$23$$anonfun$apply$24.apply(RepositoryViewerController.scala:195) | |
at scala.Option.map(Option.scala:145) | |
at app.RepositoryViewerControllerBase$$anonfun$16$$anonfun$apply$22$$anonfun$apply$23.apply(RepositoryViewerController.scala:195) | |
at app.RepositoryViewerControllerBase$$anonfun$16$$anonfun$apply$22$$anonfun$apply$23.apply(RepositoryViewerController.scala:192) | |
at util.ControlUtil$.using(ControlUtil.scala:26) | |
at app.RepositoryViewerControllerBase$$anonfun$16$$anonfun$apply$22.apply(RepositoryViewerController.scala:192) |
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.text._ | |
import java.util.Date | |
object HelloWorld extends App { | |
val d = { val d = new SimpleDateFormat("yyyyMMdd"); d.setLenient(false); d } | |
def fmt = (x: Int) => { "%04d".format(x) } | |
def parse(in: String): Option[Date] = try { |
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 LegalTender extends App { | |
val yenCoins = List(1, 5, 10, 50, 100, 500) | |
implicit val yenMax = 20 // デフォルト値定義してるのでコレをコメントアウトしても動く | |
implicit class Coin(x: Int) { | |
def rcptMax(implicit max: Int = 20) = { x * max } | |
} | |
val sumCoins = (coins: List[Int]) => Option(coins map (_ rcptMax) sum) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from gcloud import datastore | |
import os | |
project = os.environ.get('GAE_PROJECT') | |
print "target : " + project | |
client = datastore.Client(project) |
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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: azure-vote-back | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: azure-vote-back |
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
## #bq_sushi & dataflow DOGRUN | |
### #bq_sushi の始まり | |
BigQuery Analyticsの読書会 | |
六本木のまっちゃんという寿司屋で打ち上げが行われた | |
### QA |