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 | |
| # Generate a `:something-intensifies:` Slack emoji, given a reasonable image | |
| # input. I recommend grabbing an emoji from https://emojipedia.org/ | |
| set -euo pipefail | |
| # Number of frames of shaking | |
| count=10 | |
| # Max pixels to move while shaking |
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
| def flatten_array(in_array) | |
| # This function will take an input array, and will return a flattened | |
| # (single level) array of integers. Any values input that are not integers or | |
| # arrays will be skipped, with a warning output for that value. | |
| # Initialize the return array | |
| return_array = [] | |
| # Output an error and return a blank array if the input object is not an array | |
| if !in_array.kind_of?(Array) then |