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 java.util.Spliterator; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.LinkedBlockingQueue; | |
import java.util.function.Consumer; | |
import java.util.stream.Stream; | |
import java.util.stream.StreamSupport; | |
public class InfiniteBlockingQueue<T> { |
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 Redmine Taskboard beautifier | |
// @namespace http://atinternet.com/ | |
// @version 0.1 | |
// @description Let the Redmine Taskboard be readable | |
// @author Julien Opoix | |
// @match http://redmine.atinternet.tools/rb/taskboards/* | |
// @grant GM_addStyle | |
// ==/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
// ==UserScript== | |
// @name Toggl beautifier | |
// @namespace http://laymain.com/ | |
// @version 0.1 | |
// @description Toggl beautifier | |
// @author Julien Opoix | |
// @match https://www.toggl.com/app/timer | |
// @grant GM_addStyle | |
// ==/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
object HelloWorld { | |
def main(args: Array[String]) { | |
val regex = """([^\s]+)\s+([^\s]+)""".r | |
Array("word1 word2", "word3 word4").map({ | |
case regex(first, second) => | |
Console.out.println(s"Found words : $first $second") | |
case other => | |
Console.err.println(s"Unexpected line: $other") | |
}) |
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 Redmine UI Extensions | |
// @namespace http://laymain.com/ | |
// @version 0.3 | |
// @description Redmine UI Extensions | |
// @author Julien Opoix | |
// @match *://redmine.atinternet.tools/*issues/* | |
// @match *://redmine.intraxiti.com/*issues/* | |
// @downloadURL http://laymain.com/data/redmine.ui.extensions.js | |
// @updateURL http://laymain.com/data/redmine.ui.extensions.js |
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.quiz.pkg; | |
public class Singleton | |
{ | |
private static final Singleton INSTANCE = new Singleton(); | |
public static Singleton getInstance() | |
{ | |
return INSTANCE; |