Skip to content

Instantly share code, notes, and snippets.

View mychaelstyle's full-sized avatar

Masanori Nakashima mychaelstyle

View GitHub Profile
@mychaelstyle
mychaelstyle / build.gradle
Created January 20, 2014 13:16
gradleを利用した並行テストのススメ(1) ref: http://qiita.com/mychaelstyle/items/c5def5241e96cab3d2a7
test {
maxParallelForks 10
}
@mychaelstyle
mychaelstyle / Build.scala
Created February 24, 2014 10:09
Playframework2.2でmemcachedを利用する ref: http://qiita.com/mychaelstyle/items/00e2699ad740ca5c9738
val appDependencies = Seq(
"com.github.mumoshu" %% "play2-memcached" % "0.3.0.2"
)
val main = play.Project(appName, appVersion, appDependencies).settings(
resolvers += "Spy Repository" at "http://files.couchbase.com/maven2"
)
@mychaelstyle
mychaelstyle / command
Created March 4, 2014 11:27
PlayFramework2.x ログの設定でSyslogAppenderを使う ref: http://qiita.com/mychaelstyle/items/e9e9df1582aa3e7a7e47
./target/universal/stage/bin/[yourapp] -Dlogger.resource=logger-prod.xml
@mychaelstyle
mychaelstyle / build.gradle
Created March 28, 2014 06:04
Example Gradle build Java with FindBugs and PMD and CPD
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "maven"
apply plugin: "findbugs"
apply plugin: "pmd"
def defaultEncoding = 'UTF-8'
[compileJava, compileTestJava]*.options*.encoding = defaultEncoding
sourceCompatibility = 1.7
@mychaelstyle
mychaelstyle / Build.scala
Last active August 29, 2015 13:58
Play Framework 2.2でFindBugsとJaCoCo, PMD, CPDを利用してJenkinsで表示 ref: http://qiita.com/mychaelstyle/items/da627864247472bb94c5
import sbt._
import Keys._
import play.Project._
import de.johoop.jacoco4sbt._
import JacocoPlugin._
import de.johoop.findbugs4sbt._
import de.johoop.findbugs4sbt.FindBugs._
import de.johoop.cpd4sbt.CopyPasteDetector._
object ApplicationBuild extends Build {
@mychaelstyle
mychaelstyle / file0.txt
Last active August 29, 2015 14:02
Apache Spark ドキュメント和訳 - Apache Spark on AWS EC2 ref: http://qiita.com/mychaelstyle/items/b752087a0bee6e41c182
./spark-ec2 -k <keypair> -i <key-file> -s <num-slaves> launch <cluster-name>
@mychaelstyle
mychaelstyle / Python
Last active August 29, 2015 14:02
Apache Spark ドキュメント和訳 - Quick Start ref: http://qiita.com/mychaelstyle/items/46440cd27ef641892a58
>>> textFile.filter(lambda line: "Spark" in line).count() # How many lines contain "Spark"?
15
@mychaelstyle
mychaelstyle / file0.txt
Created June 11, 2014 12:03
Apache Spark ドキュメント和訳 - Submitting Applications ref: http://qiita.com/mychaelstyle/items/0a1a9ba99bdd0b253d66
./bin/spark-submit \
--class <main-class>
--master <master-url> \
--deploy-mode <deploy-mode> \
... # other options
<application-jar> \
[application-arguments]
@mychaelstyle
mychaelstyle / .travis.yml
Last active January 19, 2017 02:30
Playframework2.5 Java+PostgreSQLアプリケーションをTravis-CIでテスト自動化してみた話 ref: http://qiita.com/mychaelstyle/items/68cf895b2d4f014045fc
script:↲
- ./bin/activator test↲
@mychaelstyle
mychaelstyle / Install_pyenv_to_macosx_5.2.0.sh
Last active October 10, 2018 04:02
Install pyenv and anaconda3-5.2.0 to mac os x
#!/bin/bash
# pyenvのインストール
brew install pyenv
# anacondaのインストール
pyenv install anaconda3-5.2.0
# 環境変数の設定
cat << EOF >> ${HOME}/.bash_profile
export PYENV_ROOT=\${HOME}/.pyenv
export PATH=\${PYENV_ROOT}/bin:\${PATH}
eval "\$(pyenv init -)"