Skip to content

Instantly share code, notes, and snippets.

View eivindingebrigtsen's full-sized avatar

Eivind Ingebrigtsen eivindingebrigtsen

View GitHub Profile
bekk-64b9e8d52de0:cmdtask eivind ingebrigtsen$ brew install -vd ircii
==> Build Environment
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
LDFLAGS: -L/Users/eivind ingebrigtsen/Resources/homebrew/lib
CPPFLAGS: -isystem /Users/eivind ingebrigtsen/Resources/homebrew/include
MAKEFLAGS: -j2
CC: /usr/bin/cc
CXX: /usr/bin/c++
==> Downloading ftp://ircii.warped.com//pub/ircII//ircii-20081115.tar.bz2
PATH = 'js/mustaches';
desc 'update git repo from upstream repository'
task :up do
sh('git stash')
sh('git svn rebase')
sh('git stash apply')
end
desc 'send up code changes to upstream repository'
{
1289085236720 : {
"id": 1289085236720,
"agent" : "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7",
"browser":"1193 621"
"cookies":"__qca=P0-1252894188-1284240957673; wordpress_test_cookie=WP Cookie check; wp-settings-1=m9%3Dc%26m5%3Do%26m1%3Do%26m7%3Dc%26m6%3Dc%26m8%3Dc%26m4%3Dc%26hidetb%3D1%26m0%3Do%26m10%3Do%26m11%3Dc%26editor%3Dhtml%26imgsize%3Dfull; wp-settings-time-1=1289084434",
"language":"en-US",
"screen":"1280 716",
"window":"1193 715",
"events": [
{
1289085236720 : {
"id": 1289085236720,
"agent" : "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7",
"browser":"1193 621"
"cookies":"__qca=P0-1252894188-1284240957673; wordpress_test_cookie=WP Cookie check; wp-settings-1=m9%3Dc%26m5%3Do%26m1%3Do%26m7%3Dc%26m6%3Dc%26m8%3Dc%26m4%3Dc%26hidetb%3D1%26m0%3Do%26m10%3Do%26m11%3Dc%26editor%3Dhtml%26imgsize%3Dfull; wp-settings-time-1=1289084434",
"language":"en-US",
"screen":"1280 716",
"window":"1193 715",
"events": [
$.getAnnuiPayment = function(amount, months, rate) {
/* Calculates the monthly payment from annual percentage
rate, term of loan in months and loan amount. **/
var interest = 0.0;
var principal = 0.0;
var acc = 0;
var base = 1 + rate / 1200;
for (var i = 1; i <= months; i++) {
acc += Math.pow(base, -i);
@eivindingebrigtsen
eivindingebrigtsen / Rakefile
Created April 11, 2011 07:22
make mustache templates into a javascript object
desc "make mustache templates"
task :mustache do
src = 'window.templates = {';
length = Dir[PATH+'/*.mustache'].length;
Dir[PATH+'/*.mustache'].each do |f|
file = File.open(f, 'rb').read();
file.gsub!(/\n|\r|\t|\s\s/, '')
src += '"'+File.basename(f).gsub(/\.mustache/, '')+ '"' + " : '" + file + "',";
end
var txt = "Dette vil slette elevtelling og all tilhørende elevdata. Ønsker du å fortsette?";
function spliton30char (txt){
var arr = txt.split("");
var str = "";
var limit = 30;
var line = 0;
var ret = [];
for(var a in arr){
if(line<limit){
str += arr[a];
3297 [main] ERROR org.mortbay.log - Failed startup of context storebrand.felles.web.STBWebAppContext@1b6c184{/stb-rest-api,C:\developer\eclipse-workspaces\REST\trunk\.\src\main\webapp}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storebrand.portaler.personportalen.services.events.SpringEventDispatcher#0' defined in class path resource [spring-config/pp/personportalen-core-beans.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#
{
"id": "Safari5",
"ua": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1",
"device": "computer",
"touch": false
}, {
"id": "Firefox4",
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"device": "computer",
"touch": false
{
"id": "Safari5",
"ua": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1",
"device": "computer",
"touch": false
}, {
"id": "Firefox4",
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"device": "computer",
"touch": false