This file contains hidden or 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
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> |
This file contains hidden or 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
<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 %> |
This file contains hidden or 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
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" + |
This file contains hidden or 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
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) | |
} |
This file contains hidden or 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
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 |
This file contains hidden or 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
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) |
This file contains hidden or 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
java -Xmx512M -jar -Dsbt.log.noformat=true `dirname $0`/sbt-launch.jar "$@" |
This file contains hidden or 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
#!/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 $*" |
This file contains hidden or 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
<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> |
This file contains hidden or 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
<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> |