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
▶ jdeps --multi-release 11 out/log4j-core-2.16.0.jar | |
log4j-core-2.16.0.jar -> java.base | |
log4j-core-2.16.0.jar -> java.compiler | |
log4j-core-2.16.0.jar -> java.desktop | |
log4j-core-2.16.0.jar -> java.logging | |
log4j-core-2.16.0.jar -> java.management | |
log4j-core-2.16.0.jar -> java.naming | |
log4j-core-2.16.0.jar -> java.rmi | |
log4j-core-2.16.0.jar -> java.scripting | |
log4j-core-2.16.0.jar -> java.sql |
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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
void main() => runApp(MyApp()); | |
class Rectangle { |
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.regex.Pattern; | |
public class Test { | |
public static void main(String[] args) { | |
check("a"); | |
check("b"); | |
} | |
static Pattern compile(String pattern) { | |
System.out.println("compile(" + pattern + ")"); |
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 is a runnable groovy script. | |
* Run with "groovy client.groovy". | |
* | |
* Don't forget to start the server.groovy script first (shown in this gist). | |
*/ | |
import groovy.transform.CompileStatic | |
import groovy.transform.Immutable | |
import groovy.transform.ToString |
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
// Welcome to the null safety version of DartPad! | |
// This site has a dev channel release of the | |
// Dart SDK with null safety enabled. You can | |
// play around with code of your own, or pick a | |
// learning exercise from the snippets menu at | |
// the top-right of this page. | |
void main() { | |
} |
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 loom; | |
import rawhttp.core.RawHttp; | |
import rawhttp.core.RawHttpRequest; | |
import rawhttp.core.RawHttpResponse; | |
import rawhttp.core.client.TcpRawHttpClient; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.util.concurrent.CountDownLatch; |
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.StandardCharsets; | |
class JavaComparison | |
{ | |
public static void main(String[] args) | |
{ | |
System.out.println("CUSTOM"); | |
for (int i = 0; i < 100; i++) | |
{ | |
custom(); |
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
# Added the following extra packages to OSGI to enable JavaFX 2.2 (JRE 7 update 13) | |
# Extra packages appended after standard packages | |
org.osgi.framework.system.packages.extra=javafx.application;version=0.0.0, \ | |
com.sun.browser.plugin; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx.ui; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx.ui.resources; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx.ui.resources.image; version=0.0.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
// This is a comparison between Haskell and Groovy based on some simple problems found in the following | |
// Haskell Introduction: | |
// http://learnyouahaskell.com/starting-out#ready-set-go | |
// Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible | |
// combinations between numbers in those lists, here's what we'd do. | |
/* HASKELL */ | |
[ x*y | x <- [2,5,10], y <- [8,10,11]] |
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
abstract class _State { | |
T use<T>( | |
T Function(_ChooseProviderState) useChooseProviderState, | |
T Function(_LoadingState) useLoadingState, | |
T Function(_ChooseAccountsState) useChooseAccountState, | |
T Function(_ImportingState) useImportingState) { | |
if (this is _ChooseProviderState) { | |
return useChooseProviderState(this); | |
} | |
if (this is _LoadingState) { |