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
1. Installer MacFuse : http://code.google.com/p/macfuse/
2. Installer brew : https://github.com/mxcl/homebrew
3. brew install python && brew install pip
4. Sette path til brew sin python
5. sudo touch /usr/include/osreldate.h
#fordi macfuse av en eller annen grunn sier at den er FreeBSD og da forventer fuse-ptyhon at den filen skal finnes
6. pip install beautifulsoup && pip install fuse-ptyhon
7. git clone <nrkfs>
8. ./nrkfs-py <mappe å mounte til>
<form method="POST" action="<%= url_for :action => :update %>">
<input type="hidden" name="id" value="<%= @question.object %>"/>
<h1 class="groupTitle"><%= @question.q %></h1>
<ul>
<li>
<label for="question[answer]">Eagle</label>
<% if @question.answer == "eagle" %>
<input type="radio" name="question[answer]" checked="checked" value="eagle"/>
<% else %>
for{
event <- events
diff <- event.notifyList
val now = new DateTime().plusDays(diff)
if (now.getMonthOfYear == event.month && now.getDayOfMonth == event.date)
} {
hits = hits + 1
Mailer.mail("Reminder: " + event.name + " (" + event.textualDate + ")",
"The event '" + event.name + "' occurs " + event.textualDate + ".\n" +
def join(list : List[Int]) : String = list match {
case List() => ""
case List(x) => x.toString
case List(x,y) => x + " and " + y
case List(x,y,z) => x + ", " + y + ", and " + z
case _ => list(0) + ", " + join(list.tail)
}
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
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)
java -Xmx512M -jar -Dsbt.log.noformat=true `dirname $0`/sbt-launch.jar "$@"
@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 $*"
<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>