Skip to content

Instantly share code, notes, and snippets.

View bjartek's full-sized avatar
💭
No power in the verse can stop me

Bjarte S. Karlsen bjartek

💭
No power in the verse can stop me
  • Shiny && Find && Versus
  • Lillesand, Norway
  • X @0xBjartek
View GitHub Profile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Akka Scala Samples Module
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/se/scalablesolutions/akka/akka-kernel/0.6/akka-kernel-0.6.pom
Downloading: file:///Users/bjartek/dev/scala/akka/samples-scala/../embedded-repo/se/scalablesolutions/akka/akka-kernel/0.6/akka-kernel-0.6.pom
Downloading: http://scala-tools.org/repo-snapshots/se/scalablesolutions/akka/akka-kernel/0.6/akka-kernel-0.6.pom
Downloading: http://scala-tools.org/repo-releases/se/scalablesolutions/akka/akka-kernel/0.6/akka-kernel-0.6.pom
Downloading: http://www.lag.net/repo/se/scalablesolutions/akka/akka-kernel/0.6/akka-kernel-0.6.pom
diff --git a/lift/src/main/scala/net/liftweb/http/SHtml.scala b/lift/src/main/scala/net/liftweb/http/SHtml.scala
index 2239ab3..3a761f1 100644
--- a/lift/src/main/scala/net/liftweb/http/SHtml.scala
+++ b/lift/src/main/scala/net/liftweb/http/SHtml.scala
@@ -377,19 +377,7 @@ object SHtml {
*/
def ajaxSelectObj[T](options: Seq[(T, String)], default: Box[T],
onSubmit: T => JsCmd, attrs: (String, String)*): Elem = {
-
- val secure = options.map{case (obj, txt) => (obj, randomString(20), txt)}
<lift:surround with="default" at="content">
<lift:comet type="Chat" name="demo"></lift:comet>
</lift:surround>
Set() ++ ( for{
header <- headers firstHeader "Allow"
key <- header.direction.keySet
value <- Method.valueOf(key)
} yield {
Set(value)
})
Set() ++ ( for{
header <- headers firstHeader "Allow"
key <- header.direction.keySet
} yield {
Set(key, Method.valueOf(key))
})
<html>
<body>
<a href="rat">rat</a>
<a href="donkey">doneky</a>
<script type="text/javascript">
var anchors = document.getElementsByTagName("a");
ssh-dss
AAAAB3NzaC1kc3MAAACBAOAcr60BAr9VoCjGqAdhpaxgVCkdjiy8Z2j+48lIJCe8YwSsxYEJV03w9t0xye2zUDW+FVYz5i1Rr+YXZ5crMWaBdXJ53S0xYG++vGz80XnnpyrHUnp5IhEqU7wgtRJuyMXkkQWxVVzZKrQVOX9C/JW7RDPdoOtxABn2nfu3ThgpAAAAFQD1Pk88f5HEOBy6w/Dp5Wc1iFsQnwAAAIAjoVL58ceyBR2guwXZDH62hWnINbvlXJ8oF0QCF1bLxT0gyzyH782QZ2PsSerL9MIH5Piq2Azudjhq3AZODvCzetmNTsDrEEYBQgRQP7PcWU3cFhU5OqvG5wKfJMjf5+SyrL6dfqvocUx0a7jbHiZdJV9u7rpwI0YRgZLXguu5SQAAAIAOvKuSoGXv7CyAdt+A+Isgi0BvB6c85RdbMdGKhgR3mXh2FONgbccjij1wNb6RT4JTxwiSatiMiVVIzIJftRCJko9+BTXRdLwySvIAfqR06eXplg7moSolA1Ev8x5lkWrSwKYxlT6yMdQThVliSwdGaQ6e7quGeYA9XPY9MXYuZg==
[email protected]
~/dev/scala/auctionNet> mvn jetty:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] org.apache.maven.plugins: checking for updates from scala-tools.org
[INFO] org.codehaus.mojo: checking for updates from scala-tools.org
[INFO] artifact org.scala-tools:maven-scala-plugin: checking for updates from scala-tools.org
[INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for updates from scala-tools.org
[INFO] artifact net.sf.alchim:yuicompressor-maven-plugin: checking for updates from scala-tools.org
[INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for updates from scala-tools.org
[INFO] ------------------------------------------------------------------------
import _root_.java.net.{URLConnection, URL}
import scala.xml._
class PlanetScala {
def feed():Elem = {
val url = new URL("http://www.drmaciver.com/planetscala/atom.xml")
val conn = url.openConnection
val atom = XML.load(conn.getInputStream)