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 utils | |
import java.util | |
import org.apache.flink.api.common.typeutils.TypeSerializer | |
import org.apache.flink.api.table.Row | |
import org.apache.flink.core.memory.{DataInputView, DataOutputView} | |
/** |
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 sample.stream | |
import akka.actor.ActorSystem | |
import akka.stream.MaterializerSettings | |
import akka.stream.scaladsl2._ | |
object BasicTransformation { | |
def main(args: Array[String]): Unit = { | |
implicit val system = ActorSystem("Sys") |
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 sample.stream | |
import akka.actor.ActorSystem | |
import akka.stream.MaterializerSettings | |
import akka.stream.scaladsl2._ | |
object BasicTransformation { | |
def main(args: Array[String]): Unit = { | |
implicit val system = ActorSystem("Sys") |
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
import sbt._ | |
import sbt.Keys._ | |
import sbtassembly.Plugin._ | |
import AssemblyKeys._ | |
object SampleBuild extends Build { | |
lazy val module1 = Project( | |
id = "module1", | |
base = file("module1"), |
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
java.lang.AssertionError: assertion failed: List(object package$DebugNode, object package$DebugNode) | |
at scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:1678) | |
at scala.reflect.internal.Symbols$ClassSymbol.companionModule0(Symbols.scala:2988) | |
at scala.reflect.internal.Symbols$ClassSymbol.companionModule(Symbols.scala:2991) | |
at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder.genClass(GenASM.scala:1371) | |
at scala.tools.nsc.backend.jvm.GenASM$AsmPhase.run(GenASM.scala:120) | |
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1583) | |
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1557) | |
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1553) | |
at scala.tools.nsc.Global$Run.compile(Global.scala:1662) |
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
# This is the main configuration file for the application. | |
# ~~~~~ | |
# Secret key | |
# ~~~~~ | |
# The secret key is used to secure cryptographics functions. | |
# If you deploy your application to several instances be sure to use the same key! | |
application.secret="someHellOfASecret" | |
# The application languages |
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
1.EXPLAIN SELECT | |
f.title, a.first_name,a.last_name | |
FROM | |
film f | |
JOIN | |
film_actor fa USING (film_id) | |
JOIN | |
actor a USING (actor_id); | |
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
.modal { | |
width: 800px; | |
left: 40%; | |
} | |
.lightbox-content { | |
width: 100%; | |
} | |
.lightbox-image { |
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
"use strict"; | |
component.directive('fileupload', function () { | |
return { | |
restrict: 'E', | |
template: '<span>' + | |
'<label for="displayImg">Upload image</label>' + | |
'<input type="file" id="displayImg" onchange="angular.element(this).scope().setFile(this)">' + | |
'<button class="btn btn-primary" ng-click="uploadFile()">Save</button>' |
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
def addProfile = Action(parse.multipartFormData) { | |
request => | |
val formData = (request.body).asFormUrlEncoded | |
val email = formData.get("email").get(0) | |
val name = formData.get("name").get(0) | |
val userId = User.create(User(email, name)) | |
request.body.file("displayPic").map { | |
picture => | |
val fileName = businessId | |
val path="/socialize/user/" |
NewerOlder