aspe:keyoxide.org:6WBK73VCK7VRHYWLWCDUMJZRWU
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
aspe:keyoxide.org:6WBK73VCK7VRHYWLWCDUMJZRWU |
I hereby claim:
- I am rjdkolb on github.
- I am rjdkolb (https://keybase.io/rjdkolb) on keybase.
- I have a public key ASDBedilzVfu6WMsymNimRG8hQl6dgjXkuAEU-321XJJrgo
To claim this, I am signing this object:
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 class DuplicateSumTest { | |
@Test | |
public void sumNonDuplicates() { | |
Assert.assertEquals("", 3, sumNonDuplicates(new int[]{1, 2})); | |
} | |
@Test | |
public void sumDuplicates() { | |
Assert.assertEquals("", 3, sumNonDuplicates(new int[]{2, 1, 2, 1})); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN" name="API" monitorInterval="30"> | |
<Appenders> | |
<RollingRandomAccessFile name="CatchAll" fileName="logs/all.log" immediateFlush="false" append="true" FilePattern="logs/$${date:yyyy-MM}/all-%d{yyyy-MM-dd}-%i.log.gz"> | |
<PatternLayout> | |
<Pattern>%d %m%n</Pattern> | |
</PatternLayout> | |
<Policies> | |
<TimeBasedTriggeringPolicy interval="1" modulate="true" /> | |
<SizeBasedTriggeringPolicy size="2 GB"/> |
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
List<String> list = new ArrayList<>(); | |
for (int count = 0; count < 60000; count++) { | |
list.add("T " + count); | |
} | |
SXSSFWorkbook workbook = new SXSSFWorkbook(); | |
SXSSFSheet sheet = workbook.createSheet("FIELD OPERATIONS TRACKER"); | |
for (int i = 0; i < list.size(); i++) { | |
SXSSFRow rowHeader = sheet.createRow(i); | |
for (int cellcount = 0; cellcount < 85; cellcount++) { | |
SXSSFCell cell = rowHeader.createCell(cellcount); |
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 static AtomicInteger counter = new AtomicInteger(1); | |
public static final String user1JsonStart = "{\n" | |
+ " \"name\" : { \"first\" : \"Joe\", \"last\" : \"Sixpack"; | |
public static final String user1JsonEnd = "\" },\n" | |
+ " \"gender\" : \"MALE\",\n" | |
+ " \"verified\" : false,\n" | |
+ " \"userImage\" : \"Rm9vYmFyIQ==\"\n" | |
+ "}"; |
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
Java 8 Java 8 G1GC Java 9 Java 9 G1GC | |
DynamicLanguages.groovy 402.142 352.266 397.495 370.121 | |
ExceptionsBenchMark.throwRuntimeException 885181.859 823326.931 910622.671 843228.203 | |
GeneratePoiWorkBook.generatePoiXLSWorkBook 34205.392 28162.636 35129.546 28693.55 | |
GeneratePoiWorkBook.generatePoiXLSXWorkBook 1125.074 980.061 1172.468 1012.47 | |
GeneratePrimeNumbersWithForLoop.generatePrime 231035.868 230904.102 231405.021 230599.11 | |
Jackson.jsonMashal 30019.081 22232.937 31908.426 24242.968 | |
Jackson.jsonUnmashal 26942.264 20443.724 26736.986 22404.13 | |
Jackson.xmlMashalJackson 22868.064 19657.647 23112.766 19947.204 | |
Jackson.xmlMashalJacksonStatic 691051.644 441105.658 745753.342 487013.862 |
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 class App { | |
public void createPrimativeInteger(){ | |
int x = 100000000; | |
} | |
public void createObjectIntegerNonAutoBoxing(){ | |
int x = 200000000; | |
} | |
public void createObjectIntegerAutoBoxing(){ | |
Integer x = 300000000; |
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
import java.io.IOException; | |
import com.sun.jersey.api.container.httpserver.HttpServerFactory; | |
import com.sun.jersey.api.core.PackagesResourceConfig; | |
import com.sun.jersey.api.core.ResourceConfig; | |
import com.sun.net.httpserver.HttpServer; | |
public class RunRest { | |
static final String BASE_URI = "http://localhost:9999/rest/"; |
NewerOlder