####validate ####initialize ####generate-sources ####process-sources ####generate-resources ####process-resources
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
-server | |
-Xms128m | |
-Xmx512m | |
-XX:MaxPermSize=250m | |
-XX:ReservedCodeCacheSize=150m | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-ea | |
-Dsun.io.useCanonCaches=false | |
-Djava.net.preferIPv4Stack=true |
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
(?s)(^(?:\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
/** | |
* javap -c SimpleFunction.class | |
*/ | |
Compiled from "SimpleFunction.java" | |
public class com.beckett.lambdas.SimpleFunction { | |
static java.util.function.Function<java.lang.Integer, java.lang.Integer> f; | |
public com.beckett.lambdas.SimpleFunction(); | |
Code: | |
0: aload_0 |
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.Random; | |
import java.util.concurrent.TimeUnit; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.Options; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; |
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.Arrays; | |
import java.util.Random; | |
/** | |
* @author Edward Beckett <[email protected]> | |
* @since 1/3/2016 | |
*/ | |
public class ArraySecondMax { | |
private static int[] nums = new Random().ints(10000, 0, 10000).toArray(); |
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.ArrayList; | |
import java.util.concurrent.TimeUnit; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.Options; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; |
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.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.UnrecoverableKeyException; | |
import java.security.cert.CertificateException; | |
import javax.net.ssl.KeyManager; |
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
(Get-WmiObject -Class Win32_Service -Filter "Name='SERVICE'").delete() |
I wrote this fairly straightforward cross-browser linear gradient mixin:
@mixin gradient($from-color, $to-color) {
background-color: mix($from-color, $to-color); /* Fallback */
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from-color), to($to-color));
background-image: -webkit-linear-gradient(top, $from-color, $to-color);
background-image: -moz-linear-gradient(top, $from-color, $to-color);
background-image: -ms-linear-gradient(top, $from-color, $to-color);
background-image: -o-linear-gradient(top, $from-color, $to-color);