This file contains 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
@groovy.transform.EqualsAndHashCode | |
class Relation { | |
def entityUUID | |
} | |
def rows = [ | |
[entityUUID: "uuid 1"], | |
[entityUUID: "uuid 2"] | |
] |
This file contains 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 | |
find . -name '*' -type f -print0 | xargs --null grep -n "$1" --color=always |
This file contains 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
#!/usr/bin/env groovy | |
/* | |
* A very simple script to create a Builder from a Java source code file. The | |
* builder contains a method for each private field in a class and may be created | |
* on a subdirectory "builder" from the package of the class passed as parameter. | |
* | |
* It is a quick-and-dirty script; not expected to be a full parser. | |
* | |
* Accepts a file name and an optional "--create" param: |
This file contains 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
import java.util.concurrent.* | |
interface SingleResultCallback<T> { | |
void onResult(T result, MongoException m) | |
} | |
interface MongoFuture<T> extends java.util.concurrent.Future { | |
void register(SingleResultCallback s) | |
} |
This file contains 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
class A { | |
def foo() { 'foo' } | |
} | |
class B extends A { | |
def bar() { 'bar' } | |
} | |
A.metaClass.foobar { 'foobar' } |