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
// Initialize some variables - we will use GMT times | |
var checkDate = new Date(); | |
var offTheHourStarts = 21; | |
var offTheHourEnds = 22; | |
// Adjust for Daylight savings | |
if ((checkDate.getMonth() < 2 && checkDate.getMonth() > 10) || (checkDate.getMonth() == 2 && checkDate.getDate()-checkDate.getDay() > 7 ) || (checkDate.getMonth() == 10 && checkDate.getDate()-checkDate.getDay() > 1)) { | |
offTheHourStarts--; | |
offTheHourEnds--; | |
} |
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
// ==UserScript== | |
// @name Koumbit LedgerSMB billing workflow | |
// @match https://ledger.koumbit.net/* | |
// ==/UserScript== | |
/** | |
* @file | |
* Email templates and interface tweaks for ledger SMB emails | |
* | |
* Licensed under GPLv2. |
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
/** | |
* @file | |
* This file is an example of ways to modify etherpad-lite behaviour from the | |
* static/custom/pad.js file generated by etherpad-lite on first run. | |
*/ | |
var edBod = []; | |
var lastLine = 0; | |
/** |