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
#!/bin/bash | |
if [ "$#" -ne 2 ] ; then | |
echo "Usage: `basename -- $0` date tagFilter" | |
echo "eg: `basename -- $0` 20201225 TAG_SUBSTRING_TO_MATCH" | |
exit 1 | |
fi | |
DATE=$1 | |
SEARCH=$2 |
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
public class MyApplicationBean implements ApplicationListener<ContextRefreshedEvent> { | |
@Override | |
public void onApplicationEvent(ContextRefreshedEvent event) { | |
//wait for the child dispatcher servlet context to be initialized which should mean the http:// endpoints are available | |
if ( event.getApplicationContext().getId().contains("dispatcher")) { | |
... do whatever we need to do here | |
} | |
} | |
} |
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
"use strict"; | |
import React, { Component } from "react"; | |
import { render } from "react-dom"; | |
import { AgGridReact } from "ag-grid-react"; | |
import "ag-grid-enterprise"; | |
class GridExample extends Component { | |
constructor(props) { | |
super(props); |
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
//top of build.gradle: | |
import org.gradle.internal.os.OperatingSystem; | |
// In dependencies section: | |
// Sikuli makes use of a maven profile based on activation os family to set | |
// the sekulix.libs variable which determine which libs dependency gets brought in | |
// This technique appears not to be compatible with gradle - so we have to suppress the | |
// libs dependency and handle this here ourselves | |
compile ( group: 'com.sikulix', name: 'sikulixapi', version: '1.1.0') { |
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
Observable<Orange> oranges = BehaviorSubject.create(); | |
Observable<Apple> apples = BehaviorSubject.create(); | |
Observable<FruitSalad> salad = Observable.combineLatest(oranges, apples, (o, a) -> | |
new FruitSalad(o, a); | |
); |
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.od.maprecord; | |
import org.junit.Before; | |
import org.junit.Test; | |
import rx.Observable; | |
import rx.subjects.BehaviorSubject; | |
import rx.subjects.Subject; | |
import java.util.ArrayList; | |
import java.util.Arrays; |
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.Arrays; | |
import java.util.List; | |
import java.util.function.Consumer; | |
import java.util.logging.Logger; | |
/** | |
* Multicast log lines, Java 8, using method references and for each instead of iteration | |
*/ | |
public class LogMulticasterJava8 { |
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 webviewsample; | |
import java.io.IOException; | |
import javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.web.WebEngine; | |
import javafx.scene.web.WebView; | |
import javafx.stage.Stage; |