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
Tii(Ins[p1, c1], Ins[p2, c2]) { | |
if (p1 < p2) || ((p1 == p2) && (order() == -1)) // order() – order calculation | |
return Ins[p1, c1]; // Tii(Ins[3, ‘a’], Ins[4, ‘b’]) = Ins[3, ‘a’] | |
else | |
return Ins[p1 + 1, c1]; // Tii(Ins[3, ‘a’], Ins[1, ‘b’]) = Ins[4, ‘a’] | |
} | |
Tid(Ins[p1, c1], Del[p2]) { | |
if (p1 <= p2) | |
return Ins[p1, c1]; // Tid(Ins[3, ‘a’], Del[4]) = Ins[3, ‘a’] |
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
read -d '' SLACK_PAYLOAD_DATA << EOF | |
{ | |
"channel": "#channel", | |
"username": "Bot", | |
"text": "Message by _$(id -un)@$(hostname -f)_.", | |
"icon_emoji": ":poop:", | |
"attachments": [ | |
{ | |
"fields": [ | |
{ |