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
Verwenden dieser Wiki-Bibliothek | |
Sie können diese Wiki-Bibliothek verwenden, um Wissen zu veröffentlichen, Brainstorming zu betreiben, mit Ihrem Team an einem Entwurf zusammenzuarbeiten, ein Anleitungshandbuch zu erstellen, eine Wissensenzyklopädie zu erstellen oder einfach tägliche Informationen in einem Format niederzuschreiben, auf das einfach zugegriffen und das problemlos geändert werden kann. | |
Bearbeiten von Seiten | |
Wenn Sie die verfügbaren Befehle anzeigen möchten, klicken Sie oben auf der Seite auf Seite bearbeiten. Klicken Sie auf die Registerkarte Seite, um alle verfügbaren Befehle anzuzeigen. Bei der Bearbeitung können Sie Text auf der Seite eingeben oder Tabellen und Bilder einfügen. Wenn Sie die Bearbeitung beenden möchten, klicken Sie oben auf der Seite auf Speichern. Wenn Sie die Seite während der Bearbeitung verlassen, werden Sie aufgefordert, Ihre Änderungen zu speichern. | |
Erstellen von Wiki-Links | |
Sie können eine Verknüpfung mit einer anderen Seite in dieser Wiki-Bibliothek erstellen, indem Si |
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
/* | |
original question: https://twitter.com/SchwarzeLocke/status/574632128270442497 | |
How could I achieve this #scala code easily in #java? | |
> val a = Set("a", "b") | |
> val b = Set("c", "d") | |
> val c = (a ++ b + "x" + "y").toArray | |
Many thanks to @Szernex and @Waldteufel |
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
// ==UserScript== | |
// @name OSM History Viewer link | |
// @namespace osmhv.openstreetmap.de | |
// @description Adds links to OSM History Viewer on OpenStreetMap relation and changeset pages. Fork of http://userscripts-mirror.org/scripts/review/92776 | |
// @include http://www.openstreetmap.org/* | |
// @include https://www.openstreetmap.org/* | |
// @version 1.2 | |
// @grant none | |
// ==/UserScript== |
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
// @maxsteps 10 | |
CoreASM SelfUndef | |
use Standard | |
option DebugInfo.activeChannels ALL | |
option Signature.TypeChecking strict | |
option Signature.NoUndefinedId strict |
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 locke.util.matching | |
import scala.util.matching.Regex | |
import scala.concurrent.Future | |
object implicits { | |
implicit class ConcurrentRegex(private val regex: Regex) extends AnyVal { | |
def replaceAllInConcurrent(target: CharSequence, replacer: Regex.Match => Future[String])(implicit ctx: scala.concurrent.ExecutionContext): Future[String] = { | |
val f: Iterator[Future[String]] = regex.findAllMatchIn(target).map(replacer) |
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
/* | |
I needed a quick transformation like `toMap` on Set[(A, B)] that retains all of B's values. | |
Thanks to https://twitter.com/br_waldteufel/status/765831435244670976 this is now much cleaner than the first revision :) | |
example: | |
scala> Set(("A", 1), ("A", 2), ("B", 1)).toSetMap | |
res0: Map[String,Set[Int]] = Map(A -> Set(1, 2), B -> Set(1)) |
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
$ sbt | |
> console | |
[info] Starting scala interpreter... | |
[info] | |
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_111). | |
Type in expressions for evaluation. Or try :help. | |
scala> val nestedScala = Seq(Set("a", 1), Map(5 -> "x")) | |
nestedScala: Seq[scala.collection.immutable.Iterable[Any] with Int => Any{def seq: scala.collection.immutable.Iterable[Any] with Int => Any{def seq: scala.collection.immutable.Iterable[Any] with Int => Any}}] = List(Set(a, 1), Map(5 -> x)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
C:\git\jline3\demo>jline-gogo.bat verbose | |
Launching Gogo JLine... | |
Classpath: C:\git\jline3\demo\target\classes;C:\git\jline3\demo\target\lib\jline-3.6.2-SNAPSHOT.jar;C:\git\jline3\demo\target\lib\org.apache.felix.gogo.runtime-1.0.8.jar;C:\git\jline3\demo\target\lib\org.apache.felix.gogo.jline-1.0.8.jar | |
Feb 21, 2018 12:39:39 PM org.jline.utils.Log logr | |
FEIN: Error creating JNA based terminal: com/sun/jna/win32/StdCallLibrary | |
java.lang.NoClassDefFoundError: com/sun/jna/win32/StdCallLibrary | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(Unknown Source) | |
at java.security.SecureClassLoader.defineClass(Unknown Source) | |
at java.net.URLClassLoader.defineClass(Unknown Source) |
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 de.athalis.owl; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import openllet.owlapi.OpenlletReasoner; | |
import openllet.owlapi.OpenlletReasonerFactory; | |
import org.semanticweb.owlapi.apibinding.*; |
OlderNewer