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 com.intendia.jmh; | |
import static java.lang.Double.NaN; | |
import static java.util.concurrent.TimeUnit.SECONDS; | |
import static org.openjdk.jmh.results.AggregationPolicy.AVG; | |
import static org.openjdk.jmh.results.AggregationPolicy.MAX; | |
import static org.openjdk.jmh.results.AggregationPolicy.SUM; | |
import java.lang.management.GarbageCollectorMXBean; | |
import java.lang.management.ManagementFactory; |
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 com.intendia.igestion.server.util; | |
import static com.intendia.igestion.shared.util.ToolsRestService.logRecordFromDto; | |
import com.google.gwt.core.server.StackTraceDeobfuscator; | |
import com.intendia.igestion.shared.util.ToolsRestService; | |
import io.reactivex.Completable; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; |
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 com.intendia.igestion.common.util; | |
import elemental2.dom.Blob; | |
import elemental2.dom.File; | |
import javax.annotation.Nullable; | |
import jsinterop.annotations.JsMethod; | |
import jsinterop.annotations.JsPackage; | |
public class FileSaver { |
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 static java.nio.charset.StandardCharsets.ISO_8859_1; | |
import static java.nio.file.StandardOpenOption.CREATE; | |
import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING; | |
import static java.nio.file.StandardOpenOption.WRITE; | |
import static java.util.stream.Collectors.toList; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse.BodyHandlers; |
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 org.fundamentals.latency; | |
import static com.github.tomakehurst.wiremock.client.WireMock.get; | |
import static com.github.tomakehurst.wiremock.client.WireMock.okJson; | |
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; | |
import static java.util.concurrent.TimeUnit.SECONDS; | |
import static java.util.stream.Collectors.joining; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.github.tomakehurst.wiremock.WireMockServer; |
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 com.sun.net.httpserver.HttpExchange | |
import com.sun.net.httpserver.HttpServer | |
import java.io.InputStream | |
import java.io.OutputStream | |
import java.net.InetSocketAddress | |
import java.util.* | |
import java.util.concurrent.atomic.AtomicInteger | |
import java.util.logging.Logger | |
import kotlin.collections.ArrayList | |
import kotlin.text.Charsets.UTF_8 |
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 com.intendia.igestion.client.ui; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.core.client.Scheduler; | |
import com.google.gwt.user.client.Window; | |
public class SuperDevModeHelper { | |
/** Configure devmode and try to compile and reload the app, if it fails do nothing. */ | |
public static void devModeOn() { |
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 com.intendia.igestion.shared; | |
import static com.tngtech.archunit.core.domain.JavaModifier.FINAL; | |
import static com.tngtech.archunit.core.domain.JavaModifier.PUBLIC; | |
import static com.tngtech.archunit.core.domain.JavaModifier.STATIC; | |
import static com.tngtech.archunit.lang.SimpleConditionEvent.violated; | |
import static java.lang.Boolean.FALSE; | |
import static java.lang.Boolean.TRUE; | |
import static java.lang.String.format; | |
import static jsinterop.annotations.JsPackage.GLOBAL; |
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
const http = require('http'); | |
const url = require('url'); | |
const StringDecoder = require('string_decoder').StringDecoder; | |
http.createServer((req, res) => service(req, res)).listen(4000, () => { | |
console.log("The server is listening on port " + 4000) | |
}); | |
const service = (req, res) => { | |
const parseUrl = url.parse(req.url, 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
import static com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY; | |
import static com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME; | |
import static jsinterop.annotations.JsPackage.GLOBAL; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.annotation.JsonSubTypes; | |
import com.fasterxml.jackson.annotation.JsonTypeInfo; | |
import com.fasterxml.jackson.annotation.JsonTypeName; | |
import javax.annotation.Nullable; | |
import jsinterop.annotations.JsOverlay; |
NewerOlder