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 | |
project_name="MyProject" | |
if [ $# -gt 0 ]; then | |
project_name="$1" | |
fi | |
mkdir -p src/{main,test}/{java,resources,scala} | |
mkdir lib project target | |
# create build.sbt |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define POP_SIZE 4096 | |
#define STEP 96 | |
#define UNIFORM_RATE 0.5 | |
#define MUTATION_RATE 0.15 | |
#define TOURNAMENT_SIZE 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
package clusterserver | |
import akka.actor._ | |
class Logger extends Actor with ActorLogging { | |
log.info("Logger started!") | |
def receive = { | |
case msg => log.info("Got msg: {}", msg) | |
} |