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 TestLoadFile { | |
public static void main(String[] args) { | |
UMLResourcesUtil.initGlobalRegistries(); | |
var registry = Resource.Factory.Registry.INSTANCE; | |
var m = registry.getExtensionToFactoryMap(); | |
m.put("xmi", new XMIResourceFactoryImpl()); |
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
----- Esc ----- | |
Quick change directory: Esc + c | |
Quick change directory history: Esc + c and then Esc + h | |
Quick change directory previous entry: Esc + c and then Esc + p | |
Command line history: Esc + h | |
Command line previous command: Esc + p | |
View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
Print current working directory in command line: Esc + a | |
Switch between background command line and MC: Ctrl + o | |
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<activeProfiles> | |
<activeProfile>github</activeProfile> | |
</activeProfiles> | |
<profiles> |
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
---------------------------- MODULE statemachine ---------------------------- | |
EXTENDS TLC, Sequences, Integers | |
(* --algorithm statemachine | |
fair process webProcess = 1 | |
variables | |
machineState = "Starting", | |
run = TRUE; |
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 Chessboard { | |
private final int maxX; | |
private final int maxY; | |
public Chessboard(int maxX, int maxY) { | |
this.maxX = maxX; | |
this.maxY = maxY; | |
} |
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.Stack; | |
public class XmlValidator { | |
public boolean isValid(String xml) { | |
Stack<String> stack = new Stack<>(); | |
boolean opening = false; | |
boolean closing = false; |
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
FROM openjdk:8-jre-alpine AS base | |
ENV GREENMAIL_OPTS -Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.smtp.hostname=localhost -Dgreenmail.verbose | |
RUN apk add --no-cache curl | |
RUN curl -O http://central.maven.org/maven2/com/icegreen/greenmail-standalone/1.5.9/greenmail-standalone-1.5.9.jar | |
FROM openjdk:8-jre-alpine AS final |
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
// index.js | |
const path = require('path'); | |
const Queue = require('bull'); | |
let queue = new Queue('test queue', 'redis://192.168.99.100:6379'); | |
queue.process(1, path.join(__dirname, './processor.js')) | |
queue.on('completed', function(job, result) { | |
console.log("Completed: " + job.id + ", result = " + JSON.stringify(result)); |
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
List<Integer> l = Arrays.asList(new Integer[]{1,2,3}); | |
Integer min = l.stream().min(Integer::compare).get(); |
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
<html> | |
<head> | |
<script> | |
class HelloWorld extends HTMLElement { | |
constructor() { | |
super(); | |
let shadowRoot = this.attachShadow({ | |
mode: 'open' |
NewerOlder