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 scaffolding; | |
import com.zaxxer.hikari.HikariDataSource; | |
import io.muserver.Mutils; | |
import org.flywaydb.core.Flyway; | |
import org.junit.jupiter.api.Assumptions; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.sql.DataSource; |
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
{ | |
"openapi": "3.0.0", | |
"servers": [ | |
{ | |
"url": "https://petstore.swagger.io/v2" | |
}, | |
{ | |
"url": "http://petstore.swagger.io/v2" | |
} | |
], |
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 org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.IOException; | |
import java.nio.file.*; | |
public class FileWatcher { | |
private static final Logger log = LoggerFactory.getLogger(FileWatcher.class); | |
private Thread thread; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Real time ascii art</title> | |
<script> | |
window.URL = window.URL || window.webkitURL; | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || | |
navigator.mozGetUserMedia || navigator.msGetUserMedia; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Video capture tests</title> | |
<script> | |
window.URL = window.URL || window.webkitURL; | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || | |
navigator.mozGetUserMedia || navigator.msGetUserMedia; |
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
/** | |
* Compares two Maven version strings and returns value suitable for use in Array.sort. | |
* @param {String} v1 | |
* @param {String} v2 | |
* @return {Number} Negative number if v1 is older than v2; positive number if v1 is newer than v2; 0 if equal. | |
*/ | |
exports.mavenVersionSortComparer = function (v1, v2) { | |
// Strategy: pad each part of the version with zeros so strings are same length, then do string compare. | |
// Snapshot version have an extra 0 put on the end, whereas release versions have a 1 on the end | |
// e.g. 1.5-SNAPSHOT vs. 1.10.0 => 1.05.0.a vs. 1.10.0.c |