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
| process.stdin.resume(); | |
| process.stdin.setEncoding('utf-8'); | |
| let inputString = ''; | |
| let currentLine = 0; | |
| process.stdin.on('data', function(inputStdin) { | |
| inputString += inputStdin; | |
| }); |
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
| server { | |
| listen 80; | |
| server_name {server_name}; | |
| root /home/{username}/{project_folder}/dist; | |
| index index.html index.htm index.nginx-debian.html; | |
| location / { | |
| try_files $uri $uri/ /index.html =404; | |
| } |
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
| zeroAdder = function (number, length) { | |
| fixedNumber = '' | |
| for (var i = length - 1; i >= Math.floor(number).toString().length; i--) { | |
| fixedNumber += '0' | |
| } | |
| fixedNumber += number.toString() | |
| return fixedNumber; | |
| } |
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 calculateNewPrice(mainPrice, discount){ | |
| discount = typeof discount === 'undefined' ? 10 : discount; | |
| return mainPrice * (100-discount) / 100; | |
| } |
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 calculateNewPrice(mainPrice, discount = 10){ | |
| return mainPrice * (100-discount) / 100; | |
| } |
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 calculateNewPrice(mainPrice, discount){ | |
| discount = discount || 10; | |
| return mainPrice * (100-discount) / 100; | |
| } |
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 calculateNewPrice(mainPrice, discount){ | |
| (discount)? discount: discount = 10; | |
| return mainPrice * (100-discount) / 100; | |
| } |
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 calculateNewPrice(mainPrice, discount){ | |
| (discount)? discount: discount = 10; | |
| return mainPrice * (100-discount) / 100; | |
| } |
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
| <tr ng-repeat="data in searchCtrl.myData | filter:searchInput "> |
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
| <table class="table table-striped"> | |
| <thead> | |
| <tr> | |
| <th>ID</th> | |
| <th>Index</th> | |
| <th>guID</th> | |
| <th>isActive</th> | |
| <th>Balance</th> | |
| <th>Age</th> | |
| <th>Favorite Fruit</th> |
NewerOlder