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 { | |
maxParallelForks 10 | |
} |
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
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" | |
) |
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
./target/universal/stage/bin/[yourapp] -Dlogger.resource=logger-prod.xml |
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
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 |
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 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 { |
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
./spark-ec2 -k <keypair> -i <key-file> -s <num-slaves> launch <cluster-name> |
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
>>> textFile.filter(lambda line: "Spark" in line).count() # How many lines contain "Spark"? | |
15 |
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
./bin/spark-submit \ | |
--class <main-class> | |
--master <master-url> \ | |
--deploy-mode <deploy-mode> \ | |
... # other options | |
<application-jar> \ | |
[application-arguments] |
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
script:↲ | |
- ./bin/activator test↲ |
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
#!/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 -)" |
OlderNewer