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
public final class Validated<E, V> { | |
private final E validationError; | |
private final V value; | |
private Validated(E e, V v) { | |
this.validationError = e; | |
this.value = v; | |
checkState(); | |
} |
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
git filter-branch -f --msg-filter 'sed "s/^/ABC-123: /g"' HEAD~112 master |
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
private boolean isPdf(byte[] content) { | |
final byte[] pdfSignature = { (byte) 0x25, (byte) 0x50, (byte) 0x44, (byte) 0x46 }; | |
return Arrays.equals(copyOfRange(content, 0, 4), pdfSignature); | |
} |
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
// ==UserScript== | |
// @name startpageAdBlock | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description blocks startpage ads | |
// @author Naimdjon Takhirov | |
// @include https://www.startpage.com/* | |
// @grant none | |
// ==/UserScript== |