Skip to content

Instantly share code, notes, and snippets.

Thomas Skardal tskardal

Block or report user

Report or block tskardal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am tskardal on github.
  • I am tskardal (https://keybase.io/tskardal) on keybase.
  • I have a public key whose fingerprint is F4A5 0F16 7E6A 3430 9CA3 89DD 57AE EC00 C398 EE24

To claim this, I am signing this object:

@tskardal
tskardal / bowling.clj
Last active Aug 29, 2015
Solving the bowling kata i Clojure
View bowling.clj
(ns kata-bowling.bowling)
(defn- last-frame? [x y z]
(some nil? [x y z]))
(defn- spare? [x y]
(= (+ x y) 10))
(defn- strike? [x]
(= x 10))
View gist:e733256417a3d757a2de
### Keybase proof
I hereby claim:
* I am tskardal on github.
* I am tskardal (https://keybase.io/tskardal) on keybase.
* I have a public key whose fingerprint is 21DF AF14 4741 50C7 F536 BCA0 0EA2 1ACE 1D0C 981C
To claim this, I am signing this object:
@tskardal
tskardal / EntityTest.java
Last active Dec 17, 2015
Test case to catch GWT serialization errors due to missing empty constructor
View EntityTest.java
package org.example;
import java.util.Set;
import org.junit.Test;
import org.reflections.Reflections;
/*
Entity is something like this --> public interface Entity extends Serializable { }
*/
@tskardal
tskardal / SalatTest.scala
Created Sep 23, 2012
scala-salat: can't serialize class org.joda.time.DateTime (FIXED)
View SalatTest.scala
package domain
import com.mongodb.casbah.Imports._
import com.novus.salat.global._
import com.novus.salat._
import org.bson.types.ObjectId
import com.mongodb.casbah.MongoConnection
import org.scala_tools.time.Imports._
import com.mongodb.casbah.commons.conversions.scala.{RegisterConversionHelpers, RegisterJodaTimeConversionHelpers}
View .vimrc
set expandtab
set tabstop=4
set shiftwidth=4
let moria_style = 'dark'
colo moria
syntax on
set backspace=2
set nocompatible
set number
@tskardal
tskardal / .emacs
Created Apr 3, 2010
Emacs settings
View .emacs
(set-default-font "Monospace-10")
(require 'color-theme)
(color-theme-robin-hood)
(autoload 'linum-mode "linum" "toggle line numbers on/off" t)
(global-set-key (kbd "C-<f5>") 'linum-mode)
(require 'ecb)
(require 'yasnippet)
You can’t perform that action at this time.