Skip to content

Instantly share code, notes, and snippets.

View atorstling's full-sized avatar

Alexander Torstling atorstling

View GitHub Profile
@atorstling
atorstling / main.cpp
Created November 28, 2021 20:15
Variable uninitialized in its own initialization
struct Node {
Node clone() {
return *this;
}
};
int main() {
Node n = n.clone();
return 0;
}
@atorstling
atorstling / PropertiesLauncher.java
Last active April 13, 2018 06:29
A Vert.x 3 launcher which overrides root level JSON config properties with values from system properties and/or environment variables
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Launcher;
import io.vertx.core.json.JsonObject;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.util.Map;
import java.util.Scanner;
/**