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 () { | |
const ELEMENT_NODE = 1; | |
const TEXT_NODE = 3; | |
// https://stackoverflow.com/a/34559316 | |
function walkText(node) { | |
if (node.nodeType == TEXT_NODE) { | |
node.data = node.data.replace(/(?<=[ \t]|(?:^|\"|\-|\=|(?:[.!?]\s)))(Sean|sean)(?=([ \t]|\.|\'||\-|\=|\"|\?|\/|\,))/g, "Shane"); | |
} else if (node.nodeType == ELEMENT_NODE && node.nodeName != "SCRIPT") { | |
for (var i = 0; i < node.childNodes.length; i++) { |
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
Accessible through GitHub Settings > Saved Replies or | |
https://github.com/settings/replies | |
You can trigger it on the PR page with `ctrl + .`, `ctrl + 1` (or 2, 3, n depending on how many saved replies you have) | |
Template: | |
[Jira Ticket](https://jira.gustocorp.com/browse/SAVE-) | |
**What changed** |
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
Sample usage: | |
###################### ADD ###################### | |
~/workspace/zenpayroll development ⚡ add | |
Which files would you like to add? | |
[0]: engines/banking_bridge/app/graphql/banking_bridge/objects/savings.rb | |
[1]: engines/consumer_banking/app/services/consumer_banking/core_pro_service/transaction.rb | |
[2]: frontend/javascripts/components/cash_reserve/routers/cash_reserve_withdraw_router.jsx |
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
#!/usr/bin/env bash | |
RED='\e[31m' | |
GREEN='\e[32m' | |
CYAN='\e[36m' | |
BLUE='\e[34m' | |
LIGHTBLUE="\e[94m" | |
PURPLE='\e[1;35m' | |
NC='\e[0m' |
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 () { | |
const ELEMENT_NODE = 1; | |
const TEXT_NODE = 3; | |
// https://stackoverflow.com/a/34559316 | |
function walkText(node) { | |
if (node.nodeType == TEXT_NODE) { | |
node.data = node.data.replace(/(?<=[ \t]|(?:^|\"|\-|\=|(?:[.!?]\s)))(Sean|sean)(?=([ \t]|\.|\'||\-|\=|\"|\?|\/|\,))/g, "Shane"); | |
} else if (node.nodeType == ELEMENT_NODE && node.nodeName != "SCRIPT") { | |
for (var i = 0; i < node.childNodes.length; i++) { |