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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta name="viewport" content="width=320; user-scalable=no" /> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>PhoneGap Android App</title> | |
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var showMessageBox = function() { | |
navigator.notification.alert("Hello World of PhoneGap"); |
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 sbt | |
import scala.slick.model.codegen.SourceCodeGenerator | |
import scala.slick.model.Model | |
/** | |
* | |
* | |
* User: filip | |
* Date: 01.01.14 |
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
slick <<= slickCodeGenTask | |
lazy val slick = TaskKey[Seq[File]]("gen-tables") | |
lazy val slickCodeGenTask = (baseDirectory, dependencyClasspath in Compile, runner in Compile, streams) map { | |
(dir, cp, r, s) => | |
println() | |
val outputDir = (dir / "app" ).getPath // place generated files in app sources folder | |
val url = "jdbc:postgresql://host:port/database" | |
val jdbcDriver = "org.postgresql.Driver" |