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
//inspired by https://gist.github.com/oshliaer/70e04a67f1f5fd96a708 | |
var SHEET_ID = 'YOUR_SHEET_ID'; | |
var CREDIT_LIMIT = 500000; //YOUR GRAB LIMIT | |
var WARNING_THRESHOLD = 50000; //Will send warning email if credit balance is less than this threshold | |
var email = Session.getEffectiveUser().getEmail(); | |
// auto detect current period | |
var curDate = new Date(); | |
// if date > cutoff date (25) after_date's month is current month, else previous month |
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
#!/bin/bash | |
# <bitbar.title>Bitcoin.co.id Spot Market Prices</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Hari Prasetyo</bitbar.author> | |
# <bitbar.author.github>hapr05</bitbar.author.github> | |
# <bitbar.desc>Display the spot IDR prices of cryptocurrencies from bitcoin.co.id</bitbar.desc> | |
# <bitbar.image>https://i.imgur.com/4uhAq0p.png</bitbar.image> | |
# Based on the Cryptocurrency Prices plugin by viiraj |