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
name := "akka-http-websockets" | |
version := "1.0" | |
scalaVersion := "2.11.6" | |
libraryDependencies ++= Seq( | |
"com.typesafe.akka" %% "akka-stream-experimental" % "1.0-RC2", | |
"com.typesafe.akka" %% "akka-http-core-experimental" % "1.0-RC2", | |
"com.typesafe.play" %% "play-json" % "2.3.4" |
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 Boot | |
import akka.actor.{Cancellable, Actor, ActorSystem, Props} | |
import akka.stream.{OverflowStrategy, ActorFlowMaterializer} | |
import akka.stream.actor.ActorSubscriberMessage.{OnComplete, OnNext} | |
import akka.stream.actor.{ActorSubscriber, OneByOneRequestStrategy, RequestStrategy} | |
import akka.stream.scaladsl._ | |
import org.akkamon.core.exporters.StatsdExporter | |
import org.akkamon.core.instruments.{CounterTrait, LoggingTrait, TimingTrait} |
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
# Based on: https://gist.github.com/aslakknutsen/2422117 | |
GIT_REPO=$1 | |
START_TAG=$2 | |
MVN_COMMAND="mvn clean install -fn" | |
SONAR_COMMAND="mvn org.codehaus.sonar:sonar-maven3-plugin:3.7:sonar" | |
if [ -z "$GIT_REPO" ]; then | |
echo "Missing program argument: repository" | |
echo "Usage: ./sonar_history.sh git_repository_path [start-tag]" |
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
<p simple-directive="some configuration"></p> |
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
<div class="row"> | |
<div class="large-12 columns"> | |
<div class="panel"> | |
<h3>{{title}}</h3> | |
<p>Counter from interval: {{count}}</p> | |
<div> | |
<progressbar value="count / 100"/> | |
</div> | |
<div class="row"> | |
<div><div class="large-4 medium-4 columns tile" ng-include="'templates/tile.html'"/></div> |
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
<!DOCTYPE html> | |
<html ng-app="helloworld"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Minimal angular.js</title> | |
<link rel="stylesheet" href="css/foundation.css" /> | |
<style> | |
.tile { | |
background: #ffeeee; | |
} |
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 helloworld | |
import com.greencatsoft.angularjs.core._ | |
import org.scalajs.dom.Element | |
import org.scalajs.dom.raw.HTMLElement | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.scalajs.js | |
import scala.scalajs.js.JSApp | |
import com.greencatsoft.angularjs._ |
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
enablePlugins(ScalaJSPlugin) | |
name := "scalajs" | |
version := "1.0" | |
scalaVersion := "2.11.5" | |
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.8.0" | |
libraryDependencies += "com.greencatsoft" %%% "scalajs-angular" % "0.4-SNAPSHOT" |
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 ( | |
"encoding/json" | |
"fmt" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
"io" | |
"math/rand" | |
"net/http" |
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
import akka.actor.ActorSystem | |
import akka.http.Http | |
import akka.stream.FlowMaterializer | |
import akka.http.model._ | |
import akka.stream.scaladsl._ | |
import akka.stream.scaladsl.Source | |
import akka.stream.scaladsl.FlowGraphImplicits._ | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.Future |