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
app.filter('bytes', function() { | |
return function(bytes, precision) { | |
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
if (typeof precision === 'undefined') precision = 1; | |
var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
} | |
}); |
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
(function () { | |
var dateTimeController = function ($scope, $rootScope) { | |
$scope.vm = { | |
message: "Bootstrap DateTimePicker Directive", | |
dateTime: {} | |
}; | |
$scope.$watch('change', function(){ | |
console.log($scope.vm.dateTime); | |
}); |
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
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
privileged: true | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ./nginx-proxy/certs:/etc/nginx/certs:ro | |
- ./nginx-proxy/htpasswd:/etc/nginx/htpasswd |