This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Original version (C) 2011 by jonasvp | |
# Modified version by danwerner | |
# Save this file as .git/hooks/pre-commit, make it executable, and it will | |
# thank you by saving you from common mistakes *before* deployment. | |
# Conflict markers | |
git diff --cached --diff-filter=ACMR | awk '/\+(<<<[<]<<<|>>>[>]>>>|===[=]===$)/ { exit 1 }' | |
CODE=$? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.stubs | |
import scala.util.Random | |
object IntStub extends IntegralStub[Int] { | |
override def nextRandom(): Int = Random.nextInt() | |
override def nextRandom(upperBound: Int): Int = Random.nextInt(upperBound) | |
} |