Skip to content

Instantly share code, notes, and snippets.

Niklas Lochschmidt nlochschmidt

  • Frankfurt, Germany
View GitHub Profile
View onename
Verifying that +niklas_lochschmidt is my blockchain ID. https://onename.com/niklas_lochschmidt
View keybase.md

Keybase proof

I hereby claim:

  • I am nlochschmidt on github.
  • I am niklas_l (https://keybase.io/niklas_l) on keybase.
  • I have a public key ASC-norIgDRUysSY7k8Yn8u77uYwDPmygpzkm4nr3Yt_ggo

To claim this, I am signing this object:

@nlochschmidt
nlochschmidt / travis-run-tests.sh
Last active Aug 29, 2015
Filter output from sbt to reduce length of CI build log
View travis-run-tests.sh
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0
# Adapted from https://github.com/paulp/psp-std/blob/master/bin/test
runTests () {
sbt test || exit 1
echo "[info] $(date) - finished sbt test"
}
stripTerminalEscapeCodes () {
@nlochschmidt
nlochschmidt / bootstrapFieldConstructor.scala.html
Last active Dec 23, 2015
hack to use Play 2.2 form helper with Bootstrap 3
View bootstrapFieldConstructor.scala.html
@(elements: views.html.helper.FieldElements)
@**************************************************
* Generate input according twitter bootsrap rules *
**************************************************@
<div class="input-group @elements.args.get('_class) @if(elements.hasErrors) {has-error}" id="@elements.args.get('_id).getOrElse(elements.id + "_field")">
<label class="sr-only" for="@elements.id">@elements.label(elements.lang)</label>
@elements.input
<div class="control-label" for="@elements.id">@elements.errors(elements.lang).mkString(", ")</div>
You can’t perform that action at this time.