docker node ps $(docker node ls -q) --filter desired-state=Running | uniq
docker exec -it $(docker ps -f name=main_backend-admin -q) bash
| FROM python:buster | |
| RUN apt update | |
| RUN apt install -y vim | |
| RUN /usr/local/bin/python -m pip install --upgrade pip | |
| RUN pip3 install jupyter | |
| RUN \curl -sSL https://get.rvm.io | bash | |
| RUN echo "PATH=$PATH:/usr/local/rvm/bin" >> /root/.bashrc | |
| RUN . /root/.bashrc && rvm install ruby |
https://jupyter-docker-stacks.readthedocs.io/en/latest/
docker run -p 8888:8888 -v $(pwd):/home/jovyan/work jupyter/scipy-notebook
docker run --network some-network --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes $* -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook
| 'use strict'; | |
| // this validation store handles validation for ui (business) logic | |
| angular.module('famousAngular') | |
| .factory('ValidationActionsStore', ['$rootScope', function ($rootScope) { | |
| var self = this; | |
| self.validationStore = $rootScope.$new(); |
| 'use strict'; | |
| // build a global AppStore with Promises | |
| angular.module('famousAngular') | |
| .factory('AppStore', ['$rootScope', '$q', function ($rootScope, $q) { | |
| var self = this; | |
| self.appStore = $rootScope.$new(); |
| <div class='btn-group' name='FIXME' ng-change='onChange' ng-model='treeItems' ng-required='true'> | |
| <a class='btn btn-default dropdown-toggle' data-toggle='dropdown' href='#' ng-disabled='ngDisabled'> | |
| {{currentValue.name || dropdownPlaceholder }} | |
| <span class='caret'></span> | |
| </a> | |
| <ul class='dropdown-menu' ng-show='!ngDisabled'> | |
| <li ng-repeat='model in treeItems'> | |
| <li ng-if='model' ng-include="'node.html'"></li> | |
| </div> | |
| </li> |
| .directive('confirmationValidation', function () { | |
| return { | |
| require: 'ngModel', | |
| link: function (scope, elm, attrs, ctrl) { | |
| var field = attrs.confirmationValidation // || ''; should contain input field (binding: name="xxx") to use as confirm validation | |
| ctrl.$parsers.unshift(function (viewValue, $scope) { | |
| var noMatch = viewValue != scope.signUpForm[field].$viewValue | |
| ctrl.$setValidity('noMatch', !noMatch) | |
| }) | |
| } |