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
/** | |
* @author Jui-Shan (Jenny) Liang <[email protected]> | |
* @param {Object} tp the `tp` object of the Templater plugin | |
* @param {Object} options options for configuring the year to generate the MOC and the file name format | |
* @param {string} options.YEAR what year to generate the MOC; default to the current year | |
* @param {string} options.YEARLY_FORMAT filename format of yearly notes; format reference: https://momentjs.com/docs/#/displaying/format/ | |
* @param {string} options.QUARTER_FORMAT filename format of quarterly notes; format reference: https://momentjs.com/docs/#/displaying/format/ | |
* @param {string} options.MONTH_FORMAT filename format of monthly notes; format reference: https://momentjs.com/docs/#/displaying/format/ | |
* @param {string} options.WEEK_FORMAT filename format of weekly notes; format reference: https://momentjs.com/docs/#/displaying/format/ | |
* @param {string} options.DAY_FORMAT filename format of daily notes; format reference: https://momentjs.com/docs/#/displaying/format/ |
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/python | |
from base64 import b64encode | |
import broadlink | |
print("Discovering Broadlink devices...") | |
devices = broadlink.discover(timeout=5, local_ip_address='192.168.4.4') | |
if len(devices) == 0: | |
print("No Broadlink devices found.") |
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
{"lastUpload":"2021-11-09T09:22:22.035Z","extensionVersion":"v3.4.3"} |
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
// preventing drag & drop disaster | |
var preventDrag = function(e) { | |
e.stopPropagation(); | |
e.preventDefault(); | |
}; | |
var preventDrop = function(e) { | |
if (e.dataTransfer.files.length > 0) { | |
e.stopPropagation(); | |
e.preventDefault(); | |
} |