Skip to content

Instantly share code, notes, and snippets.

View mauhiz's full-sized avatar
💭
inline

Vincent PÉRICART mauhiz

💭
inline
View GitHub Profile
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.BodyTagSupport;
@mauhiz
mauhiz / NotSoSafeMapping.scala
Last active August 29, 2015 14:07
Unsafe form mappings for play forms which have > 22 fields
import java.lang.reflect.Constructor
import play.api.data._
import play.api.data.validation.Constraint
import scala.reflect.ClassTag
import scala.util.Try
/**
* Workaround the annoying limit of 22 for argument lists. See https://github.com/mandubian/shapeless-rules for a better way to do it.

Keybase proof

I hereby claim:

  • I am mauhiz on github.
  • I am mauhiz (https://keybase.io/mauhiz) on keybase.
  • I have a public key whose fingerprint is C14B 3BCB B604 7F0F F616 1A9E 189B DC42 5DF1 74B2

To claim this, I am signing this object:

[info] Loading global plugins from /Users/jp20688/.sbt/0.13/plugins
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1747)
at java.util.regex.Matcher.reset(Matcher.java:402)
at java.util.regex.Matcher.<init>(Matcher.java:244)
at java.util.regex.Pattern.matcher(Pattern.java:1100)
at java.util.regex.Pattern.split(Pattern.java:1213)
at java.util.regex.Pattern.split(Pattern.java:1280)
at sbt.IO$.pathSplit(IO.scala:744)
at sbt.IO$.parseClasspath(IO.scala:859)
@mauhiz
mauhiz / .gitconfig
Created August 25, 2016 01:05
git aliases
[alias]
s = status
c = checkout
ci = commit
cp = cherry-pick
b = branch
ss = stash save
dw = diff --word
dc = diff --cached
dch = diff --cached HEAD^