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
// open devtools and input bellow code in Console panel | |
document.querySelectorAll('[value="Unfollow"]').forEach(n=>n.click()) | |
// click Next button and run again |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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 百度网盘直接下载助手 | |
// @namespace undefined | |
// @version 0.9.24 | |
// @description 直接下载百度网盘和百度网盘分享的文件,避免下载文件时调用百度网盘客户端,获取网盘文件的直接下载地址 | |
// @author ivesjay | |
// @match *://pan.baidu.com/disk/home* | |
// @match *://yun.baidu.com/disk/home* | |
// @match *://pan.baidu.com/s/* | |
// @match *://yun.baidu.com/s/* |
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
Sub 保险费() | |
' | |
' 宏5 宏 | |
' | |
selectionColumnCount = Selection.Count | |
For i = 1 To selectionColumnCount | |
ActiveCell.Value = "保险费、车船税来票-售后回租 专" & ActiveCell.Value | |
ActiveCell.Offset(1, 0).Range("A1").Select | |
Next | |
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
Sub 制作工资条() | |
' | |
' 制作工资条 | |
' | |
ActiveWindow.SmallScroll Down:=-3 | |
'选择当前激活单元格所在的行 | |
ActiveCell.Rows("1:1").EntireRow.Select | |
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
Sub getCurrentSheetData() | |
Application.EnableEvents = False | |
Application.ScreenUpdating = False | |
Dim dataCount As Integer, currentSheetName As String | |
If ActiveSheet.Name <> "result" Then | |
currentSheetName = ActiveSheet.Name | |
Application.StatusBar = "处理工作表" & currentSheetName & "中, 老婆大人请稍后..." | |
If ActiveSheet.Range("K1").Value <> "加险" Then ' 正常数据 | |
ActiveSheet.Range("A3").Select | |
If Range("A4").Value <> "" Then |
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
chrome.runtime.onStartup.addListener(function () { | |
chrome.storage.local.set({ | |
log: "" | |
}) | |
}); | |
chrome.runtime.onInstalled.addListener(function (a) { | |
var b = { | |
log: "" | |
}; | |
b.site_manifest = { |
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
chrome.runtime.onStartup.addListener(function () { | |
chrome.storage.local.set({ | |
log: "" | |
}) | |
}); | |
chrome.runtime.onInstalled.addListener(function (a) { | |
var b = { | |
log: "" | |
}; | |
b.site_manifest = { |
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
exports = module.exports = webpack | |
const exportsFn = (obj, mappings)=>{ | |
Object.keys(mappings).forEach(prop=>{ | |
Object.defineProperty(obj, prop, { | |
configurable: false, | |
enumerable: true, | |
get: mappings[prop] | |
}) | |
}) | |
} |
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
const path = require('path'); | |
const fs = require('fs-extra'); | |
const os = require('os'); | |
const DefinePlugin = require('webpack/lib/DefinePlugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const ProgressBarPlugin = require('progress-bar-webpack-plugin'); | |
const HappyPack = require('happypack'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const ngtools = require('@ngtools/webpack'); |
NewerOlder