- 2 lbs Italian sausage
- 2 medium onions, chopped
- 1 cup celery, chopped
- 2 cups lentils
- 28 oz (2 x 14) of stewed tomatoes
- 30 oz (2 x 15) of tomato sauce
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
Started by upstream project "pipeline/publish-the-world" build number 148 | |
originally caused by: | |
Started by user [ME] | |
Obtained jenkinsfiles/FFF from git git@XXX | |
Running in Durability level: PERFORMANCE_OPTIMIZED | |
Loading library pipeline@release/2.x | |
Attempting to resolve release/2.x from remote references... | |
> git --version # timeout=10 | |
using GIT_SSH to set credentials SSH key for Gitlab | |
> git ls-remote -h git@XXX # timeout=10 |
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
package serializers; | |
import java.util.Arrays; | |
import com.jenkov.iap.ion.read.IonObjectReader; | |
import com.jenkov.iap.ion.write.IonObjectWriter; | |
import data.media.MediaContent; | |
/** |
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 com.ning.tr13.KeyValueSource; | |
import com.ning.tr13.impl.bytes.BytesValueReader; | |
import com.ning.tr13.impl.bytes.SimpleBytesTrieBuilder; | |
import org.iq80.leveldb.CompressionType; | |
import org.iq80.leveldb.DB; | |
import org.iq80.leveldb.DBIterator; | |
import org.iq80.leveldb.Options; | |
import org.iq80.leveldb.impl.Iq80DBFactory; | |
import java.io.*; |
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.nio.charset.Charset; | |
import java.util.Arrays; | |
/** | |
* Trie container/wrapper, in this case implements Enum-value lookup. | |
* Sample code to possibly use for streamlined-lookup by dictionary, using | |
* UTF-8 bytes of {@link Enum#name()} as the key. | |
*/ | |
public class EnumByBytesLookup<E extends Enum<E>> | |
{ |
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
package serializers.json; | |
import org.boon.json.JsonFactory; | |
import org.boon.json.ObjectMapper; | |
import data.media.MediaContent; | |
import serializers.*; | |
public class BoonDatabind<T> extends Serializer<T> | |
{ |
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 ModelPropertyParser(cls: Class[_], t: Map[String, String] = Map.empty) (implicit properties: LinkedHashMap[String, ModelProperty]) { | |
// ... | |
def parse = Option(cls).map(parseRecursive(_)) | |
def parseRecursive(hostClass: Class[_]): Unit = { | |
// ... and way, way deeper down the call stack | |
properties += name -> 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
/** | |
* This class works just fine, although you might not think so at first glance. | |
* Serialization is easy -- just uses getters, after all -- but how about deser? | |
* Turns out that: | |
* | |
* (a) Since Jackson auto-detects private fields (as long as something else indicates | |
* presence of a property; here getters do it), and | |
* (b) JDK (1.5+) allows Reflection to force setting of a 'final' value | |
* | |
* it... well, works. Try it for fun! |
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
public final class IncrementalMurmur3Hasher | |
{ | |
protected final static int c1 = 0xcc9e2d51; | |
protected final static int c2 = 0x1b873593; | |
protected final static int c3 = 0xe6546b64; | |
private final int _seed; | |
/** |
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
private int readAll(File inputFile) throws IOException | |
{ | |
int count = 0; | |
CsvMapper mapper = new CsvMapper(); | |
// need a Schema just to force use of header line (to get column names) | |
CsvSchema schema = CsvSchema.builder() | |
.setUseHeader(true) | |
.build(); | |
// read CSV as sequence of Objects, binding as regular Map (not POJO) |
NewerOlder