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
| /** | |
| * Implementation of a Stack in Javascript | |
| * @constructor | |
| * @author Chandra Mohan | |
| */ | |
| function Stack() { | |
| /** | |
| * Element to store data. _ is used to imply that clients should not modify it. | |
| * @type {Array} | |
| * @private |
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
| /** | |
| * Queue Implementation in Javascript | |
| * @param name | |
| * @constructor | |
| */ | |
| function Queue(name) { | |
| /** | |
| * Name to just indicate the name of the current instance. Just for debugging purpose and doesn't have any effect | |
| * on the working of the Queue. | |
| * NOTE: Feel free to not pass this parameter. |
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
| # Running this in the main directory of a git repo, this command opens up the git project in browser | |
| open "$(grep "url" .git/config | cut -d" " -f3)" |