Skip to content

Instantly share code, notes, and snippets.

View quintesse's full-sized avatar

Tako Schotanus quintesse

  • RedHat
  • Alicante, Spain
  • 10:47 (UTC +02:00)
View GitHub Profile
@quintesse
quintesse / error
Created November 16, 2015 16:24
Another Eclipse error after OBR
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------------------------------------------
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Reactor Summary:
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger -
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Ceylon IDE ......................................... SUCCESS [ 0.207 s]
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ceylon.plugins ..................................... SUCCESS [ 0.005 s]
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - com.redhat.ceylon.eclipse.ui.jdt.debug.fragment .... SUCCESS [ 1.206 s]
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - com.redhat.ceylon.eclipse.ui ....................... SUCCESS [ 53.344 s]
[mvn:mvn] [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Ceylon Test Plugin ..............................
@quintesse
quintesse / error
Created November 18, 2015 09:43
LangugaeModuleNotFound Error in Eclipse
com.redhat.ceylon.compiler.typechecker.exceptions.LanguageModuleNotFoundException: cannot find module source artifact ceylon.language-1.1.1(.car|.jar|.src)
- dependency tree: left/1.0.0 -> bottom/1.0.0 -> ceylon.language/1.1.1
get ceylon.language and run 'ant publish' (more information at http://ceylon-lang.org/code/source/#ceylonlanguage_module)
at com.redhat.ceylon.compiler.typechecker.analyzer.ModuleHelper.buildErrorOnMissingArtifact(ModuleHelper.java:50)
at com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator.verifyModuleDependencyTree(ModuleValidator.java:240)
at com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator.verifyModuleDependencyTree(ModuleValidator.java:267)
at com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator.access$400(ModuleValidator.java:39)
at com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator$2.run(ModuleValidator.java:112)
at com.redhat.ceylon.model.typechecker.context.TypeCache.doWithExplicitCaching(TypeCache.java:48)
at com.redha
@quintesse
quintesse / main.ceylon
Created May 5, 2016 09:56
Ceylon Web Runner: flatten
//$webrun_wrapped
shared void run() {
{Anything*} flatten({Anything*} stream)
=> stream.flatMap((element)
=> switch (element)
case (is {Anything*}) flatten(element)
else [element]);
{Character|String*} input = { 'a', "abc" };
@quintesse
quintesse / main.ceylon
Last active September 21, 2016 15:02
Ceylon Web Runner: interop-browser-error
import ceylon.interop.browser { ... }
void run() {
print(window.document);
}
@quintesse
quintesse / module.ceylon
Created October 25, 2016 18:11
Self-typechecking Ceylon program
native("jvm")
module selftypecheck "1.0.0" {
import ceylon.interop.java "1.3.1-SNAPSHOT";
import com.redhat.ceylon.typechecker "1.3.1-SNAPSHOT";
import com.redhat.ceylon.compiler.java "1.3.1-SNAPSHOT";
}
@quintesse
quintesse / main.ceylon
Created March 10, 2017 23:38
Ceylon Web Runner: Nullable Callable
//$webrun_wrapped
shared void run() {
Anything(String)? onEvent = null;
if (exists onEvent) {
onEvent("foo");
}
}
swagger: '2.0'
info:
version: '2.0.0'
title: Launcher Backend API
description: This document defines the REST endpoints exposed by the launcher-backend component
host: forge.api.prod-preview.openshift.io
basePath: /api
schemes:
- https
[
{
"metadata": {
"runsOn": [
"!starter",
"!osio"
]
},
"mission": "circuit-breaker",
"name": "Red Hat Fuse - Circuit Breaker Example",
@quintesse
quintesse / catalog.json
Last active May 31, 2018 19:49
No "X-App" set
{
"boosters": [
{
"metadata": {
"app": {
"osio": {
"enabled": false
},
"launcher": {
"runsOn": [
@quintesse
quintesse / catalog_oisio.json
Last active May 31, 2018 19:49
With "X-App=osio"
{
"boosters": [
{
"metadata": {
"app": {
"osio": {
"enabled": true
}
}
},