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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>Chat demo</title>
<script id="jquery" src="/classpath/jquery.js" type="text/javascript"></script>
</head>
<body>
<lift:bind name="content" />
//imports class
Chat extends CometActor with CometListener {
private var msgs: List[String] = Nil
def render =
<div>
<ul> { msgs.reverse.map( m => <li>{m}</li> ) } </ul>
{ ajaxText("", s => {ChatServer ! s; Noop}) }
</div>
<lift:surround with="default" at="content">
<lift:comet type="Chat"></lift:comet>
</lift:surround>
@bjartek
bjartek / log
Created September 22, 2009 00:10
Welcome to Scala version 2.7.5.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :load sake.scala
Loading sake.scala...
import sake.Project._
buildDir: java.lang.String = build/
distDir: java.lang.String = ../../dist/
showStackTracesOnFailures: Boolean = false
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/">
<head> <!-- header stuff --> </head>
</head>
<body>
<div class="container">
<div class="column span-12 last" style="text-align: right"><h1 class="alt">sermo</h1></div>
<hr/>
<div class="column span-6 colborder sidebar"><hr class="space" />
<lift:Menu.builder />
<div><lift:snippet type="msgs"/><hr class="space" /></div>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/">
<head> <!-- header stuff --> </head>
</head>
<body>
<div class="container">
<div class="column span-12 last" style="text-align: right"><h1 class="alt">sermo</h1></div>
<hr/>
<div class="column span-6 colborder sidebar"><hr class="space" />
<lift:Menu.builder />
<div><lift:snippet type="msgs"/><hr class="space" /></div>
@bjartek
bjartek / s
Created February 20, 2010 12:06
#!/bin/bash
#just a quick script to alias svn pull to svn up and redirect everything else to svn command.
#alias svn=s in your .bashrc or something
if [ $# -eq 1 ] && [ $1 == "pull" ]; then
eval "svn up";
exit 0;
fi
eval "svn $*"
java -Xmx512M -jar -Dsbt.log.noformat=true `dirname $0`/sbt-launch.jar "$@"
org.jboss.seam.InstantiationException: Could not instantiate Seam component: es.processInstanceListForCompany
at org.jboss.seam.Component.newInstance(Component.java:2144)
at org.jboss.seam.Component.getInstance(Component.java:2021)
at org.jboss.seam.Component.getInstance(Component.java:1983)
at org.jboss.seam.Component.getInstance(Component.java:1977)
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
at org.jboss.seam.Namespace.get(Namespace.java:28)
at org.jboss.seam.el.SeamELResolver.resolveInNamespace(SeamELResolver.java:172)
at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:54)
class Chat extends CometActor with CometListener {
private var msgs: List[ChatCmd] = Nil
private var bindLine: NodeSeq = Nil
def registerWith = ChatServer
override def lowPriority = {
case m: List[ChatCmd] => {
val delta = m diff msgs
msgs = m