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
    
  
  
    
  | ## Pre-install package | |
| https://github.com/jonmosco/kube-ps1 | 
  
    
      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
    
  
  
    
  | apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: testing | |
| labels: | |
| component: db | |
| spec: | |
| template: | |
| metadata: | |
| labels: | 
  
    
      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
    
  
  
    
  | jupyter: | |
| image: jupyter/datascience-notebook | |
| environment: | |
| - PASSWORD=${PASSWORD} | |
| nginx: | |
| image: nginx | |
| links: | |
| - jupyter | 
  
    
      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
    
  
  
    
  | // k-mean | |
| import org.apache.spark.mllib.clustering.{KMeans, KMeansModel} | |
| import org.apache.spark.mllib.linalg.Vectors | |
| import org.apache.spark.mllib.regression.LabeledPoint | |
| case class Data(userId: String, videoId: String, isKid: String) | |
| val raw_data = sc.textFile("/Users/zzchen/Downloads/locked_video_up5.csv").map { line => | |
| val f = line.split(",") | |
| Data(f(0),f(1).split("=")(1),f(5)) | 
  
    
      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
    
  
  
    
  | ./bin/spark-shell -packages redis.clients:jedis:2.7.2,com.redislabs:spark-redis:0.5.1 --repositories https://raw.github.com/RedisLabs/spark-redis/mvn-repo/ | |
| bad option: '-packages' | 
  
    
      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 main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| log "github.com/cihub/seelog" | |
| ) | 
  
    
      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 main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "github.com/ant0ine/go-json-rest/rest" | |
| log "github.com/cihub/seelog" | |
| ) | 
  
    
      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 main | |
| import ( | |
| "io" | |
| "log" | |
| ) | |
| import "net/http" | |
| func indexHandler(w http.ResponseWriter, req *http.Request) { | |
| //expire := time.Now().AddDate(0, 0, 1) | 
  
    
      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
    
  
  
    
  | #export GOPATH="$JENKINS_HOME/workspace/project" | |
| ls -alh $WORKSPACE | |
| export GOPATH="$WORKSPACE" | |
| export PATH="$PATH:$GOPATH/bin" | |
| #go get github.com/ant0ine/go-json-rest/rest | |
| # Build Binary | |
| go get github.com/tools/godep | 
  
    
      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
    
  
  
    
  | #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| error_log /tmp/nginx_debug_error.log debug; | |
| #pid logs/nginx.pid; | 
NewerOlder