Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| # BASH/ZSH ALIASES FOR THE LAZY DEVELOPER | |
| ## Git Workflow Aliases | |
| ### Push current branch to origin | |
| alias push='git push origin $(git rev-parse --abbrev-ref HEAD)' | |
| ### Pull current branch with submodules | |
| alias pull='git pull --recurse-submodules origin $(git rev-parse --abbrev-ref HEAD)' | |
| ### Show git status in short format | |
| alias s="git status -s" | |
| ### Commit with message (usage: c "commit message") |
$ mkdir sass_gulp_workshopcd into the new directory$ npm init --yes$ npm install -D gulp gulp-sass browser-syncpackage.json's scripts section with this key-value pair: "scripts": { "dev": "gulp" }public (directory)
css (directory)index.html (file)| <html> | |
| <style type="text/css"> | |
| .starRate {position:relative; margin:20px; overflow:hidden; zoom:1;} | |
| .starRate ul {width:160px; margin:0; padding:0;} | |
| .starRate li {display:inline; list-style:none;} | |
| .starRate a, .starRate b {background:url(star_rate.gif) left top repeat-x;} | |
| .starRate a {float:right; margin:0 80px 0 -144px; width:80px; height:16px; background-position:left 16px; color:#000; text-decoration:none;} | |
| .starRate a:hover {background-position:left -32px;} | |
| .starRate b {position:absolute; z-index:-1; width:80px; height:16px; background-position:left -16px;} | |
| .starRate div b {left:0px; bottom:0px; background-position:left top;} |
| <?php | |
| // Run from the command line, so we'll grab arguments from there | |
| // input arguments: 0=>script, 1=>file_name, 2=>temp_file | |
| $file_name = $argv[1]; | |
| $temp_file = $argv[2]; | |
| $uploads = '/opt/lampp/htdocs/user_uploads/'; | |
| // Set up file location strings |
| <?PHP | |
| // Generates a strong password of N length containing at least one lower case letter, | |
| // one uppercase letter, one digit, and one special character. The remaining characters | |
| // in the password are chosen at random from those four sets. | |
| // | |
| // The available characters in each set are user friendly - there are no ambiguous | |
| // characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
| // makes it much easier for users to manually type or speak their passwords. | |
| // | |
| // Note: the $add_dashes option will increase the length of the password by |