import subprocess
keyPath = r'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI'
output = subprocess.run(
['reg', 'query', keyPath, '/reg:64', '/v', 'LastLoggedOnDisplayName'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='cp866')
print('stdout:', output.stdout)
print('stderr:', output.stderr)
version: '3.4'
services:
app:
build:
context: ..
dockerfile: ./docker/Dockerfile
restart: ${APP_RESTART_MODE:-always}
volumes:
- static:/usr/src/app/static
- ${APP_PUBLIC_DIR:-./data}:/usr/src/app/public:rw
environment:
APP_SERVER_HOSTS: ${APP_SERVER_HOSTS:-www.project.com}
APP_SERVER_PORT: ${APP_SERVER_PORT:-8080}
nginx:
build:
context: .
dockerfile: ./Dockerfile-nginx
restart: ${APP_RESTART_MODE:-always}
environment:
NGINX_HOST: ${APP_SERVER_HOSTS:-www.project.com}
NGINX_PORT: ${APP_SERVER_PORT:-8080}
ports:
- "${APP_SERVER_PORT:-8080}:${APP_SERVER_PORT:-8080}"
volumes:
- static:/usr/src/app/static
- ${APP_PUBLIC_DIR:-./data}:/usr/src/app/public:ro
command: /bin/ash -c "envsubst < /etc/nginx/conf.d/default.conf.tpl > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
depends_on:
- app
links:
- app
<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">
<title>Angular Test</title>
</head>
<body ng-controller="BodyCtrl as vm">
<div test-widget>
<test-widget-title>Hello!</test-widget-title>
<test-widget-body>Widget 1</test-widget-body>
</div>
<div test-widget>
<test-widget-body>Widget 2</test-widget-body>
</div>
<script src="https://unpkg.com/angular@1.6.4/angular.js"></script>
<script type="text/javascript">
angular
.module('app', [])
.controller('BodyCtrl', function() {})
.directive('testWidget', function() {
return {
restrict: 'A',
scope: {},
transclude: {
'title': '?testWidgetTitle',
'body': 'testWidgetBody'
},
template: '' +
'<div>BEGIN</div>' +
'<div ng-if="vm.hasTitle">' +
' TITLE: <b ng-transclude="title"></b>' +
'</div>' +
'<div ng-transclude="body"></div>' +
'<div>END</div>' +
'<p></p>',
controllerAs: 'vm',
controller: function($transclude) {
var vm = this;
vm.hasTitle = $transclude.isSlotFilled('title');
},
link: function(scope, elem, attrs, ctrl, $transclude) {
//var vm = scope.vm = {};
//vm.hasTitle = $transclude.isSlotFilled('title');
}
};
});
</script>
</body>
</html>
ECHO ### You can specify the toolset as the argument, i.e.:
ECHO ### .\build.bat msvc
ECHO ###
ECHO ### Toolsets supported by this script are: borland, como, gcc, gcc-nocygwin,
ECHO ### intel-win32, metrowerks, mingw, msvc, vc7, vc8, vc9, vc10, vc11
set MINGW_ROOT_DIRECTORY=C:\Qt\Qt5.1.0\Tools\mingw48_32
set path=%MINGW_ROOT_DIRECTORY%\bin;%path%
bjam --with-system --with-thread --with-date_time --with-regex --with-filesystem --with-serialization --with-signals --with-python toolset=gcc threading=multi link=static runtime-link=static address-model=32 architecture=x86 stage