Skip to content

Instantly share code, notes, and snippets.

upstream backend {
server 127.0.0.1:5000;
}
server {
listen 80;
server_name my_site.localhost.com;
set $static /home/taar/git/MySite/my_site/admin/static;
root $static;
keepalive_timeout 60;
@chris-zen
chris-zen / condel-calc.scala
Created April 16, 2015 16:44
Apache Spark prototypes
package org.upf.bg.condel.calc
import org.apache.spark.{ SparkConf, SparkContext}
import org.apache.spark.SparkContext._
import org.apache.hadoop.conf.Configuration
import org.bson.BSONObject
import org.bson.BasicBSONObject
import org.json4s._
apply plugin: 'java'
apply plugin: 'scala'
// For those using Eclipse or IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20(){
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for(playExec in ['play.bat', 'play.sh', 'play']){
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0
# Adapted from https://github.com/paulp/psp-std/blob/master/bin/test
runTests () {
sbt test || exit 1
echo "[info] $(date) - finished sbt test"
}
stripTerminalEscapeCodes () {