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
[info] [hello-zio-http-graalvm:25] classlist: 52,244.48 ms, 0.96 GB | |
[info] [hello-zio-http-graalvm:25] (cap): 609.76 ms, 0.96 GB | |
[info] [hello-zio-http-graalvm:25] setup: 2,963.99 ms, 0.96 GB | |
[error] Error: Image build request failed with exit status 137 | |
[error] com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 137 | |
[error] at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1676) | |
[error] at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1426) | |
[error] at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1387) | |
[error] at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1374) | |
[error] at com.oracle.svm.driver.NativeImage$JDK9Plus.main(NativeImage.java:1858) |
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 zio._ | |
import zio.stream._ | |
import zio.duration._ | |
object TestStream extends App { | |
//There are few issues: | |
// 1. .interruptWhen(hook) //BOOM: With this, only 1 element of A will be processed, the program no longer processes anything | |
// 2. The program is unable to finish with status code 0 | |
// 3. "Processes N element" never prints |
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 scalaz.{Failure, Semigroup, Success, Validation} | |
object ScalazCustomOps { | |
implicit class ScalazValidationOps[+E, +A](validation: Validation[E, A]) { | |
/** | |
* Check both validations, in case of success of both return only one success result (the latter). | |
* Otherwise collect failures. | |
* |
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
/** | |
* Creates promise object for DWR async calls. | |
* @param dwrFunc DWR function to be invoked | |
* @param arrayOfParameters [optional] parameters of given DWR function | |
* @returns {Q.promise} | |
*/ | |
function qDwr(dwrFunc, arrayOfParameters) { | |
var deferred = Q.defer(); | |
if (arrayOfParameters === undefined || arrayOfParameters === null) { | |
arrayOfParameters = []; |
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 eu.gruchala.web.wrapper; | |
import java.util.Arrays; | |
import java.util.Calendar; | |
import javax.servlet.http.HttpServletResponse; | |
import javax.servlet.http.HttpServletResponseWrapper; | |
/** | |
* Caches requests for all CSS, JS and images. |
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
//Taken from JQuery Mobile | |
path = { | |
urlParseRE: /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/, | |
parseUrl: function( url ) { | |
var matches = path.urlParseRE.exec( url || "" ) || []; | |
return { | |
href: matches[ 0 ] || "", | |
hrefNoHash: matches[ 1 ] || "", | |
hrefNoSearch: matches[ 2 ] || "", | |
domain: matches[ 3 ] || "", |