// In your controller
this.item = {
userType: ''
};<!-- In your html template -->| /* Solarized Dark | |
| For use with Jekyll and Pygments | |
| http://ethanschoonover.com/solarized | |
| SOLARIZED HEX ROLE | |
| --------- -------- ------------------------------------------ | |
| base03 #002b36 background | |
| base01 #586e75 comments / secondary content |
| ################################################################################ | |
| # Default Aliases | |
| ################################################################################ | |
| # Easier navigation: .., ..., ...., ....., ~ and - | |
| alias ..="cd .." | |
| alias ...="cd ../.." | |
| alias ....="cd ../../.." | |
| alias .....="cd ../../../.." |
| # Simple calculator | |
| function calc() { | |
| local result=""; | |
| result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')"; | |
| # └─ default (when `--mathlib` is used) is 20 | |
| # | |
| if [[ "$result" == *.* ]]; then | |
| # improve the output for decimal numbers | |
| printf "$result" | | |
| sed -e 's/^\./0./' `# add "0" for cases like ".5"` \ |
| // An example configuration file. | |
| exports.config = { | |
| // Do not start a Selenium Standalone sever - only run this using chrome. | |
| chromeOnly: true, | |
| chromeDriver: './node_modules/protractor/selenium/chromedriver', | |
| seleniumAddress: 'http://0.0.0.0:4444/wd/hub', | |
| baseUrl: 'http://0.0.0.0:9000', | |
| // Capabilities to be passed to the webdriver instance. |
// In your controller
this.item = {
userType: ''
};<!-- In your html template -->A list of angular modules (work in progress EVER)
| 'use strict'; | |
| var ScreenshotReporter = require('./screenshots.js'); | |
| var path = require('path'); | |
| exports.config = { | |
| seleniumAddress: 'http://0.0.0.0:4444/wd/hub', | |
| // Do not start a Selenium Standalone sever - only run this using chrome. | |
| chromeOnly: true, | |
| chromeDriver: '../../node_modules/protractor/selenium/chromedriver', |
| 'use strict'; | |
| /** | |
| * Multiple credentials check with Basic Auth node package | |
| * | |
| * How to use (ExpresJS example): | |
| * | |
| * var BASIC_AUTH = [ | |
| * { | |
| * name: process.env.BASIC_AUTH_USERNAME, |
| var request = require('request'); | |
| var five = require('johnny-five'); | |
| var board = new five.Board(); | |
| var CONFIG = { | |
| LED: { | |
| SUCCESS: 12, | |
| ERROR: 10 | |
| }, | |
| CI_CCTRACKER_URL: 'https://snap-ci.com/willmendesneto/generator-reactor/branch/master/cctray.xml', |
| # Load ".cli" folder content | |
| if [ -d ~/.cli ]; then | |
| CLI_FILES=$(find ~/.cli -maxdepth 2 -type f) | |
| while read -r line; do | |
| source $line | |
| done <<< "$CLI_FILES" | |
| fi |