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
| function buildTriangle(numLines) { | |
| var linesArray = []; | |
| var iterations = numLines; | |
| if (numLines < 1 ) { | |
| return alert("Try a bigger number!") | |
| } | |
| for (var line = 1; line <= iterations; line++) { //start @ 1 instead of zero to avoid empty first index string | |
| linesArray.push("#".repeat(line) + "\n"); |
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/bash | |
| # | |
| # Perform MySQL 5.6+ restart with buffer pool save and reload | |
| # MySQL credentials | |
| user= | |
| pass= | |
| # Exit on any command failure | |
| set -e |
NewerOlder