Demonstration of using tab buttons (without tab content) to work with AngularJS route and ng-view.
Forked from Thomas Burleson's Pen Material Tabs & hRefs.
| #!/bin/sh | |
| # redis - this script starts and stops the redis-server daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Redis is a persistent key-value database | |
| # processname: redis-server | |
| # config: /etc/redis/6379.conf | |
| # config: /etc/sysconfig/redis | |
| # pidfile: /var/run/redis_6379.pid |
Demonstration of using tab buttons (without tab content) to work with AngularJS route and ng-view.
Forked from Thomas Burleson's Pen Material Tabs & hRefs.
How to set up an Angular Material dialog with a custom template
Forked from Marcy Sutton's Pen Angular Material Basic App.
| 'use strict'; | |
| // @ngInject | |
| function UserEventsLog($resource, Config, Token) { | |
| return $resource(Config.apiUrl + '/user_events/:token', {token: Token.get()}, { | |
| count: { | |
| method: 'GET', | |
| url: Config.apiUrl + '/user_events/count/:token', | |
| isArray: false, | |
| transformResponse: function (data) { |
| 'use strict'; | |
| // @ngInject | |
| function exmpNavigation($state) { | |
| return { | |
| restrict: '', | |
| templateUrl: 'components/exmpNavigation/template.html', | |
| controllerAs: 'cNav', | |
| controller: function () { | |
| this.go = function (route) { |
Just because Twitter is incommodious for discussions. Started from this tweet: https://twitter.com/djsmith42/status/571566878562230272
| /** | |
| * Click option[index] of select element | |
| * @param select | |
| * @param index | |
| * @returns {protractor.promise} | |
| */ | |
| function clickOption(select, index) { | |
| var deferred = protractor.promise.defer(); | |
| select.click().then(function () { | |
| var options = select.all(by.css('option')); |
| by.addLocator('attr', | |
| /** | |
| * Find element(s), where attribute = value | |
| * @param {string} attr | |
| * @param {string} value | |
| * @param {Element} [parentElement=] | |
| * @returns {Array.<Element>} | |
| */ | |
| function (attr, value, parentElement) { | |
| parentElement = parentElement || document; |
| by.addLocator('link', | |
| /** | |
| * Find <a> element by href attribute | |
| * @param {string} href | |
| * @param {Node} [parentElement=] | |
| * @returns {Array.<Node>} | |
| */ | |
| function (href, parentElement) { | |
| parentElement = parentElement || document; | |
| var links = parentElement.querySelectorAll('a'); |
| for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |