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 util.matcher; | |
import java.util.function.Function; | |
import org.hamcrest.BaseMatcher; | |
import org.hamcrest.Description; | |
public class LambdaMatcher<T> extends BaseMatcher<T> { | |
private final Function<T, Boolean> matcher; | |
private final String description; |
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
# commit with juira-ticket-id shortcut | |
# | |
# install via `cat commit.bash >> ~/.bashrc` | |
# Use: | |
# Assuming you are in a git repository of a bitbucket / jira branch using the atlassian jira git flow conventions | |
# example "feature/EXP-1337-cool-new-feature | |
# | |
# > commit -a | |
# will call | |
# > git commit -em "EXP-1337: " -a |
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
# ported from http://www.gizma.com/easing/ to https://gist.github.com/th0ma5w/9883420 | |
# added some from https://gist.github.com/cleure/e5ba94f94e828a3f5466 | |
# added some from http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js | |
import math | |
def easeLinear(t, b, c, d): | |
return c*t/d + b | |
def easeInQuad(t, b, c, d): |
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
/** | |
* Shim the require function used in node.js | |
*/ | |
(function() { | |
if (window.require !== undefined) | |
throw 'RequireException: \'require\' already defined in global scope'; | |
window.require = function(module) { | |
var url = window.require.resolve(module); |
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
require 'formula' | |
class Osmium < Formula | |
head 'https://github.com/joto/osmium.git' | |
homepage 'http://wiki.openstreetmap.org/wiki/Osmium' | |
md5 'dce9eb59d86caf1186fc93567b94feed' | |
depends_on 'boost' | |
depends_on 'lzlib' | |
depends_on 'shapelib' |