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 static String makeValid(String value) { | |
value = value.replaceAll("a", "A"); | |
value = value.replaceAll("b", "B"); | |
value = value.replaceAll("c", "C"); | |
value = value.replaceAll("d", "D"); | |
value = value.replaceAll("e", "E"); | |
value = value.replaceAll("f", "F"); | |
value = value.replaceAll("g", "G"); | |
value = value.replaceAll("h", "H"); | |
value = value.replaceAll("i", "I"); |
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 class Memory { | |
// Dummy Entity representing usual data objects | |
private static class Entity { | |
public String name; | |
public String detail; | |
public Double amount; | |
public Integer age; | |
} |
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
::-webkit-input-placeholder, | |
:-moz-placeholder, | |
::-moz-placeholder { | |
color: #989899; | |
} |
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
Improving JodaTime Concurrency for XYZChronology.getInstance() | |
Model Name: MacBook Pro | |
Model Identifier: MacBookPro11,3 | |
Processor Name: Intel Core i7 | |
Processor Speed: 2,3 GHz | |
Number of Processors: 1 | |
Total Number of Cores: 4 | |
L2 Cache (per Core): 256 KB | |
L3 Cache: 6 MB |
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
Improving JodaTime Concurrency for DateFormatter | |
Model Name: MacBook Pro | |
Model Identifier: MacBookPro11,3 | |
Processor Name: Intel Core i7 | |
Processor Speed: 2,3 GHz | |
Number of Processors: 1 | |
Total Number of Cores: 4 | |
L2 Cache (per Core): 256 KB | |
L3 Cache: 6 MB |
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
diff --git a/src/display/api.js b/src/display/api.js | |
index 103285b..8b281d7 100644 | |
--- a/src/display/api.js | |
+++ b/src/display/api.js | |
@@ -134,6 +134,15 @@ PDFJS.verbosity = (PDFJS.verbosity === undefined ? | |
PDFJS.VERBOSITY_LEVELS.warnings : PDFJS.verbosity); | |
/** | |
+ * Default html target attribute used when links in PDFs do not define targets. | |
+ * Common values are "_blank" or "_top". |
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 charset; | |
import java.io.UnsupportedEncodingException; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Random; | |
import org.openjdk.jmh.annotations.GenerateMicroBenchmark; | |
import org.openjdk.jmh.annotations.Scope; | |
import org.openjdk.jmh.annotations.State; |
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
diff --git a/web/thumbnail_view.js b/web/thumbnail_view.js | |
index 90d4e89..9766530 100644 | |
--- a/web/thumbnail_view.js | |
+++ b/web/thumbnail_view.js | |
@@ -97,12 +97,12 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport) { | |
this.resume = null; | |
}; | |
- this.getPageDrawContext = function thumbnailViewGetPageDrawContext() { | |
+ this.getPageDrawContext = function thumbnailViewGetPageDrawContext(w, h) { |
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
ThreadGroup[] threadGroups; | |
int groupCount = 0; | |
do { | |
threadGroups = new ThreadGroup[threadGroup.activeGroupCount() * 2]; | |
groupCount = threadGroup.enumerate(threadGroups, false); | |
} while (groupCount > threadGroups.length); | |
for (int i = 0; i < threadGroups.length; i++) { | |
ThreadGroup group = threadGroups[i]; | |
if (group != null && THREADGROUP_NAME.equals(group.getName())) { |
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.lang.management.ManagementFactory; | |
import java.lang.management.MemoryMXBean; | |
import java.lang.management.MemoryPoolMXBean; | |
import java.lang.management.MemoryUsage; | |
import java.util.List; | |
public class Tester { | |
public static void main(String[] args) throws Exception { | |
MemoryMXBean memoryMXBean = ManagementFactory.getMemoryMXBean(); | |
MemoryUsage nonHeapMemoryUsage = memoryMXBean.getNonHeapMemoryUsage(); |
OlderNewer