# setup and install protractor for testing
npm install -g protractor
npm install -g karma-cli
webdriver-manager update
# prepare local application
This file contains hidden or 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
Show hidden characters
| [ | |
| { "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
| { "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
| ] |
This file contains hidden or 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
| # Colors from https://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
| # Reset | |
| Color_Off='\e[0m' # Text Reset | |
| # Regular Colors | |
| Black='\e[0;30m' # Black | |
| Red='\e[0;31m' # Red | |
| Green='\e[0;32m' # Green | |
| Yellow='\e[0;33m' # Yellow | |
| Blue='\e[0;34m' # Blue |
This file contains hidden or 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
| { | |
| "jsdocs_align_tags": "no", | |
| "jsdocs_spacer_between_sections": true | |
| } |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # | |
| # A Git pre-commit hook that checks for discouraged words in | |
| # in files based on the extensions of staged files in Git. | |
| # | |
| # Copyright 2014, openam (http://github.com/openam) | |
| # http://www.davidpashley.com/articles/writing-robust-shell-scripts/ | |
| set -o nounset | |
| set -o errexit |
This file contains hidden or 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
| <?php | |
| /** | |
| * rmkdir is a recursive mkdir function. PHP4 doesn't have the recursive paramater, | |
| * so this was added to use on a PHP 4 server. These references could be changed back to | |
| * | |
| * @param string $path | |
| * @param int $mode of the file permissions | |
| * @param boolean $recursive not used, but is there so that you can easly change from rmkdir (PHP 4) to mkdir(PHP 5) easily | |
| * @return boolean true if directories were successfully created | |
| */ |
This file contains hidden or 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
| <?php | |
| /** | |
| * @category PHP4 DirectoryIterator class | |
| * @version 0.0.1 | |
| * @author Adrian Rotea <adirotea@yahoo.com> | |
| * @copyright Copyright © 2005, Adrian Rotea <adirotea@yahoo.com> | |
| * @link http://www.weberdev.com/get_example.php3?ExampleID=4180 | |
| * | |
| * This class implements the SPL DirectoryIterator in PHP4. | |
| * Very usefull if wanting to traverse directories in an OO style |
This file contains hidden or 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
| <?php | |
| /** | |
| * debug is a simple function to show which line and file a debug call came from | |
| * including the contents of print_r() wrapped in a <pre> tag | |
| * | |
| * @param string $value | |
| * @return void | |
| */ | |
| function debug($value = '') { | |
| $backtrace = debug_backtrace(); |
This file contains hidden or 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
| <?php | |
| /** | |
| * get_directories description | |
| * | |
| * @param string $path the path to start from | |
| * @param string $regex that the directories must match, use empty string '' for all | |
| * @return array of directories in the path | |
| */ | |
| function get_directories($path = '.', $regex = '') { | |
| $list = array(); |
This file contains hidden or 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
| #!/bin/sh | |
| lessc css/styles.less > css/styles.css --source-map=css/styles.css.map --source-map-basepath=css/ | |
| NOW=$(date) | |
| echo "Recompiling less completed $NOW" |
OlderNewer