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
| package main; | |
| import bar.Bar; | |
| import qux.Qux; | |
| import java.lang.invoke.MethodHandles; | |
| import java.lang.invoke.MethodType; | |
| import java.lang.reflect.Proxy; | |
| import java.util.function.Consumer; |
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
| #!/usr/bin/env groovy | |
| @Grapes([ | |
| @Grab('com.h2database:h2:1.3.176'), | |
| @Grab('org.apache.kafka:kafka_2.11:0.10.2.0'), | |
| @GrabConfig(systemClassLoader=true) | |
| ]) | |
| import java.sql.* | |
| import groovy.sql.Sql |
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
| Red [ | |
| Author: "Toomas Vooglaid" | |
| file: "%regex.red" | |
| Purpose: {Regex to parse converter} | |
| History: {Started: 2017-05-09 | |
| v.0.1: 2017-05-12 -- first working version with: | |
| start `^^` and end `$` anchors, | |
| non-capturing groups (one level) with alterns, | |
| quantifiers (possessive), | |
| some character-classes. |
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.lang.instrument.Instrumentation; | |
| import java.lang.reflect.Layer; | |
| import java.lang.reflect.Module; | |
| import java.util.*; | |
| public class WeakeningAgent { | |
| public static void premain(String argument, Instrumentation instrumentation) { | |
| boolean full = argument != null && argument.equals("full"); | |
| Set<Module> importing = new HashSet<>(), exporting = new HashSet<>(); |
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
| # -*- coding: utf-8 -*- | |
| import sys | |
| import numpy | |
| numpy.seterr(all='ignore') | |
| ''' |
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
| @Grab('com.github.groovy-wslite:groovy-wslite:1.1.2') | |
| import wslite.rest.* | |
| def consumerKey = "CONSUMER_KEY" | |
| def consumerToken = "CONSUMER_TOKEN" | |
| def host = "https://bintray.com" | |
| def client = new RESTClient(host) | |
| def releaseClient = new RESTClient("https://gvm-vendor-dev.herokuapp.com") |
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
| @Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.0') | |
| @Grab(group='joda-time', module='joda-time', version='2.7') | |
| import wslite.rest.* | |
| import org.joda.time.* | |
| import org.joda.time.format.* | |
| import groovy.xml.* | |
| import groovy.json.* | |
| import static java.lang.System.* | |
| import groovy.transform.* |
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
| package vmarcinko.undertow; | |
| import io.undertow.Handlers; | |
| import io.undertow.Undertow; | |
| import io.undertow.server.HttpHandler; | |
| import io.undertow.server.handlers.PathHandler; | |
| import io.undertow.server.handlers.RedirectHandler; | |
| import io.undertow.server.handlers.resource.FileResourceManager; | |
| import io.undertow.servlet.Servlets; | |
| import io.undertow.servlet.api.DeploymentInfo; |
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
| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.github.ben-manes:gradle-versions-plugin:0.8' | |
| classpath 'com.bluepapa32:gradle-watch-plugin:0.1.5' | |
| classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2' | |
| classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.4' |
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
| # See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html | |
| # See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/performance-enhancements-7.html | |
| # See https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm | |
| # See http://normanmaurer.me/blog_in_progress/2013/11/07/Inline-all-the-Things/ | |
| # See http://stas-blogspot.blogspot.com.br/2011/07/most-complete-list-of-xx-options-for.html | |
| # -XX:+LogCompilation | |
| # -XX:+PrintInlining | |
| -Dfile.encoding=UTF-8 |
NewerOlder