This file contains 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
var slack = require('slack'); | |
var bot = slack.rtm.client(); | |
var token = "your_slack_token"; | |
bot.team_join(function(obj) { | |
console.log("Team join triggered"); | |
slack.chat.postMessage( | |
{ | |
token: token, | |
channel: obj.user.id, |
This file contains 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
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do | |
if [ -e $dir/.git ]; | |
then | |
git -C $dir remote -v | |
fi | |
done |
This file contains 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 formatItems (items) { | |
return items.map(function (item, index) { | |
return { | |
item_name: item.name, | |
item_id: item.id, | |
price: `${item.totalPriceWithoutDiscountsAndTaxes}`, | |
quantity: `${item.quantity}`, | |
index: index+1 | |
}; | |
}); |
This file contains 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
<template> | |
<div> | |
<input v-model="input" type="number" /> | |
<h1>{{ output }}</h1> | |
</div> | |
</template> | |
<script> | |
import { ref, watch, onUnmounted } from 'vue'; | |
import { timer, Subject } from 'rxjs'; |