This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
# These are my favorite git aliases | |
alias gs='git status ' | |
alias gl=' git log --graph --oneline --decorate --all ' | |
alias ga='git add ' | |
alias gb='git branch ' | |
alias gc='git commit' | |
alias gd='git diff' | |
alias go='git checkout ' | |
alias gk='gitk --all&' |
import csv | |
import json | |
csvfile = open('voronoid-graph.csv', 'r') | |
jsonfile = open('output.json', 'w') | |
fieldnames = ("gene","subcategory","category") | |
categories = {} |
/** | |
* To get started: | |
* git clone https://github.com/twitter/algebird | |
* cd algebird | |
* ./sbt algebird-core/console | |
*/ | |
/** | |
* Let's get some data. Here is Alice in Wonderland, line by line | |
*/ |
1) Download JDK7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html | |
2) On your ~/.bash_profile do | |
# For Java 7 | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
# For Java 8 | |
export JAVA_HOME=`/usr/libexec/java_home` |
From http://miniaturegiantspacehamster.blogspot.ch/2011/03/building-word-clock-part-1-genetic.html | |
Version 1 | |
NSEVENFOURC | |
FELEVENOTWO | |
TWELVEFIVEV | |
TEIGHTENONE | |
TNINETHREEL | |
SIXHALFIFTY |
This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
Oozie Example: Hive Actions |
// Elasticsearch 2.x *copies* joda-time code and patch it into their codebase. It causes several issues | |
// see https://www.elastic.co/blog/to-shade-or-not-to-shade | |
// assemblyShadeRules in assembly := Seq( | |
// ShadeRule.rename("org.joda.time.base.**" -> "org.elasticsearch.joda.time.@1").inLibrary("org.elasticsearch" % "elasticsearch" % "2.1.1").inProject | |
// ) | |
~ |
{ | |
"checks": { | |
"cron": { | |
"command": "check-process.rb -p cron", | |
"standalone": true, | |
"interval": 60, | |
"handlers": ["default", "debug"] | |
} | |
} | |
} |
git clean -ffxd | |
SPARK_VERSION="1.5.1" | |
git checkout -f "v$SPARK_VERSION" -- | |
sh dev/change-scala-version.sh 2.11 | |
export MAVEN_OPTS="-Xmx4g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m -XX:+CMSClassUnloadingEnabled" | |
mvn clean | |
./make-distribution.sh --tgz --skip-java-test -Pscala-2.11 -Pyarn -Phadoop-2.6 -DskipTests -Dspark.version=$SPARK_VERSION -Dscala.version=2.11.7 -DautoVersionSubmodules=true -U -Djline.version=2.13 -Djline.groupid=jline |