๐
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 | |
| MSG="$1" | |
| message="Hey! looks like your commit message is not following correct format" | |
| if ! grep -qE ":" "$MSG"; | |
| then | |
| printf "\n"; | |
| echo -e "\e[91m${message}\e[0m"; | |
| echo "Your commit message: " && cat "${MSG}"; |
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 forEachOf(items, callback, finishCallback) { | |
| if (items.length !== undefined && items.length > 0) { | |
| this.key = this.key || 0; | |
| if (this.key >= items.length){ | |
| this.key = 0; | |
| finishCallback(); | |
| }else { | |
| callback(items[this.key], this.key, () => { | |
| this.key++; | |
| forEachOf(items, callback, finishCallback); |
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
| image: node:latest | |
| stages: | |
| - deploy | |
| Production: | |
| stage: deploy | |
| only: | |
| refs: | |
| - master | |
| before_script: |
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
| AWSTemplateFormatVersion: "2010-09-09" | |
| Transform: AWS::Serverless-2016-10-31 | |
| Description: > | |
| Lambda, SQS, role, Policy, Api | |
| Globals: | |
| Function: | |
| Timeout: 5 | |
| Runtime: python3.6 | |
| Handler: app.lambda_handler |
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
| class BaseDesign { | |
| setNext(next){ | |
| this._next = next; | |
| } | |
| next(role){ | |
| if(this._next){ | |
| return this._next.run(role); | |
| } | |
NewerOlder