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
import {guid} from './index' | |
import {EventEmitter} from './event-emitter' | |
// 任务对象封装 | |
export class TaskItem { | |
constructor(data = {}) { | |
this.guid = guid() | |
this.running = false | |
this.data = data // 数据对象 | |
data._tqTask = this // 封装对象的引用 |
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
Windows Registry Editor Version 5.00 | |
;Binary data is just UTF16 (LE) split every 2 bytes with a comma | |
;Conversion done with https://onlineutf8tools.com/convert-utf8-to-utf16?hex=true&little-endian=true&space=false&chain=split-string%253Fsplit-by-length%253Dtrue%2526separator%253D%252C | |
;User action | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal] | |
@="Open Terminal here" | |
;"Icon"="%USERPROFILE%\Pictures\Icons\terminal.ico" (Location to ICO or comment out to hide icon) | |
;"Icon"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,74,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00 |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\GRE_Initialize] | |
"GUIFont.Facename"="Segoe UI" |
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
// ==UserScript== | |
// @name 阿里云视频点播(VOD)复制图片地址 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description 提供一键复制封面图的功能,并优化一些操作细节,提升效率! | |
// @author https://gist.github.com/canwdev/c164a39b37fc4ef59e3cfa0467f753da | |
// @match https://vod.console.aliyun.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=aliyun.com | |
// @grant none | |
// ==/UserScript== |
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
[General] | |
FileVersion=69 | |
NumberOfJoysticks=2 | |
NumberOfButtons=32 | |
DisplayMode=2 | |
UseDiagonalInput=0 | |
UseDiagonalInput2=0 | |
UsePOV8Way=0 | |
RepeatSameKeyInSequence=0 | |
Threshold=20 |
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
// ==UserScript== | |
// @name Quick Click Copy | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 点击复制表格中的文字 | |
// @author You | |
// @match file:///* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=undefined. | |
// @grant GM_addStyle | |
// @grant GM_getResourceText |
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
/** | |
* 检测扫码枪输入 | |
* 创建实例:let bsd = new BarcodeScannerDetect() | |
* 开始检测:bsd.startDetect() | |
* 关闭检测:bsd.stopDetect() | |
* https://www.jianshu.com/p/3019858e3cad | |
* @param callback 扫码枪输入结束回调 | |
* @constructor | |
*/ | |
function BarcodeScannerDetect(callback) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>倒计时Demo</title> | |
<script src="https://momentjs.com/downloads/moment.js"></script> | |
</head> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>支持设置时区的日期选择器</title> | |
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> | |
<script src="https://momentjs.com/downloads/moment.js"></script> | |
<script src="https://momentjs.com/downloads/moment-timezone-with-data.js"></script> |
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
var url = new URL(location.href); | |
var v = url.searchParams.get("v"); | |
var obj = { | |
isIframe: true, | |
poster: $('meta[property="og:image"]').content, | |
avatar: $('.ytd-video-owner-renderer .style-scope.yt-img-shadow').src, | |
username: $('.ytd-channel-name').innerText, | |
src: `https://www.youtube.com/embed/${v}` | |
} |