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._ | |
| import akka.http.model.HttpMethods._ | |
| import akka.http.model._ | |
| import akka.stream.scaladsl._ | |
| import akka.stream.scaladsl.Flow | |
| import play.modules.reactivemongo.json.BSONFormats | |
| import reactivemongo.bson.BSONDocument | |
| import scala.concurrent.Future | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import play.api.libs.json._ |
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._ | |
| import akka.http.model.HttpMethods._ | |
| import akka.http.model._ | |
| import akka.stream.scaladsl._ | |
| import akka.stream.scaladsl.Flow | |
| import play.modules.reactivemongo.json.BSONFormats | |
| import reactivemongo.bson.BSONDocument | |
| import scala.concurrent.Future | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import play.api.libs.json._ |
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 com.typesafe.sbt.SbtAspectj._ | |
| name := "http-akka" | |
| version := "1.0" | |
| scalaVersion := "2.11.5" | |
| libraryDependencies ++= Seq( | |
| "com.typesafe.akka" %% "akka-http-core-experimental" % "1.0-M2", |
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 reactivemongo.api._ | |
| import reactivemongo.api.collections.default.BSONCollection | |
| import reactivemongo.bson.BSONDocument | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import scala.concurrent.Future | |
| object Database { | |
| val collection = connect() |
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 |
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
| 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 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
| <!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
| <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> |
OlderNewer