To run any of these examples, specify the relevant DUB configuration:
dub run --build=release --config=<name>Example
Where <name> corresponds to the name of the folder where the code example is in (camel-cased).
e.g:
dub run --build=release --config=constructorInjectionExample