Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mathrik on github.
  • I am mathrik (https://keybase.io/mathrik) on keybase.
  • I have a public key ASCQkpwNKsYTR6iH0BoJpadqJBCb7fERLpC_TxSJmpDk4go

To claim this, I am signing this object:

@mathrik
mathrik / Haskell Example
Last active January 11, 2018 21:35
Interview Code Samples
plus :: Int -> Int -> Int
plus = (+)
plusPlus :: Int -> Int -> Int -> Int
plusPlus a b c = a + b + c
main = do
let res = plus 1 2
putStrLn $ "1+2 = " ++ show res
@mathrik
mathrik / Bounded Type Parameters Part 1
Created March 7, 2014 19:55
Lesson on Java Generics from Oracle Java Tutorials
public class Box<T> {
private T t;
public void set(T t) {
this.t = t;
}
public T get() {
return t;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.axis41.cqcert.replication;
import com.day.cq.replication.Agent;
import com.day.cq.replication.AgentIdFilter;
import com.day.cq.replication.ReplicationActionType;
import com.day.cq.replication.Replicator;