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
resolvers += Classpaths.typesafeResolver | |
addSbtPlugin("com.typesafe.sbteclipse" %% "sbteclipse-plugin" % "2.0.0-M3") | |
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % (v+"-0.2.10")) |
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
// need this if you want to browse code | |
EclipseKeys.withSource := true | |
version := "1.0" | |
scalaVersion := "2.9.1" | |
name := "Test sbt" | |
liftVersion := "2.4" |
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
val liftVersion = SettingKey[String]("lift-version") | |
val jettyVersion = SettingKey[String]("jetty-version") |
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
$.ajax({ | |
url: "test.html", | |
success: function(){ | |
$(this).addClass("done"); | |
} | |
}); |
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 net.liftweb.http._ | |
import S._ | |
import js._ | |
import JsCmds._ | |
import JE._ | |
import net.liftweb.util._ | |
import Helpers._ | |
import scala.xml.Text | |
class AjaxCall { |
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
<div class="lift:surround?with=default;at=content"> | |
<b>Ajax Example</b> | |
<br /> | |
<div class="lift:ajaxCall.sample"> | |
<div id="script"></div> | |
<textarea id="ajax_question" rows="8" cols="50"></textarea> | |
<br /> | |
<button id="button">Click Me</button> | |
</div> | |
</div> |
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
$( "#city" ).autocomplete({ | |
source: function( request, response ) { | |
$.ajax({ | |
url: "http://ws.geonames.org/searchJSON", | |
dataType: "jsonp", | |
data: { | |
featureClass: "P", | |
style: "full", | |
maxRows: 12, | |
name_startsWith: request.term |
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
<div class="lift:surround?with=default;at=content"> | |
<div class="lift:jsonAutocomplete"> | |
<script id="script"></script> | |
<div class="demo"> | |
<div class="ui-widget"> | |
<label for="city">Your city: </label> | |
<input id="city" /> | |
</div> | |
</div> | |
</div> |
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 net.liftweb.http._ | |
import S._ | |
import js._ | |
import JsCmds._ | |
import JE._ | |
import net.liftweb.textile._ | |
import net.liftweb.common._ | |
import net.liftweb.util._ | |
import Helpers._ | |
import scala.xml._ |
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
case class Line(id : Long, yesNo : Boolean, name : String, optional : Option[String], amount : Double) | |
object SimpleImport { | |
// Create the field regex so you can compose them | |
//and be able to simply extract the information | |
val sourceFolder : String = "/home/sofoklis/Desktop" | |
val digit = """~(\d*)~""" | |
val double = """([-+]?[\d]*\.?[\d]+)*""" | |
val text = """~([^~]*)~""" | |
val separator = """\^""" |
OlderNewer