Skip to content

Instantly share code, notes, and snippets.

View fuchao2012's full-sized avatar
🎯
Focusing

zheng fuchao2012

🎯
Focusing
View GitHub Profile
@fuchao2012
fuchao2012 / unfollow_all_person.js
Created January 9, 2020 05:03
unfollow all person in your github account
// open devtools and input bellow code in Console panel
document.querySelectorAll('[value="Unfollow"]').forEach(n=>n.click())
// click Next button and run again
@fuchao2012
fuchao2012 / git-tag-delete-local-and-remote.sh
Created May 21, 2018 12:16 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# 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
// ==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/*
@fuchao2012
fuchao2012 / 生成保险费.vbs
Created April 10, 2018 16:01
生成保险费
Sub 保险费()
'
' 宏5 宏
'
selectionColumnCount = Selection.Count
For i = 1 To selectionColumnCount
ActiveCell.Value = "保险费、车船税来票-售后回租 专" & ActiveCell.Value
ActiveCell.Offset(1, 0).Range("A1").Select
Next
@fuchao2012
fuchao2012 / 制作工资条.vbs
Created April 10, 2018 15:58
制作工资条
Sub 制作工资条()
'
' 制作工资条
'
ActiveWindow.SmallScroll Down:=-3
'选择当前激活单元格所在的行
ActiveCell.Rows("1:1").EntireRow.Select
@fuchao2012
fuchao2012 / getCurrentSheetData.vbs
Created April 10, 2018 15:54
从固定的表里找到需要的数据粘贴到目标表中
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
@fuchao2012
fuchao2012 / gist:5a21cdddb5ad8ee35ee501182ca3ea88
Created December 25, 2017 07:30 — forked from dvliman/gist:10016069
join honey chrome extension
chrome.runtime.onStartup.addListener(function () {
chrome.storage.local.set({
log: ""
})
});
chrome.runtime.onInstalled.addListener(function (a) {
var b = {
log: ""
};
b.site_manifest = {
@fuchao2012
fuchao2012 / gist:264ed6269a8483301c5940915de1c8f8
Created December 25, 2017 07:30 — forked from dvliman/gist:10016069
join honey chrome extension
chrome.runtime.onStartup.addListener(function () {
chrome.storage.local.set({
log: ""
})
});
chrome.runtime.onInstalled.addListener(function (a) {
var b = {
log: ""
};
b.site_manifest = {
@fuchao2012
fuchao2012 / webpack.js
Created November 8, 2017 05:55
great export function
exports = module.exports = webpack
const exportsFn = (obj, mappings)=>{
Object.keys(mappings).forEach(prop=>{
Object.defineProperty(obj, prop, {
configurable: false,
enumerable: true,
get: mappings[prop]
})
})
}
@fuchao2012
fuchao2012 / webpack.build.config.js
Created November 8, 2017 03:28
Webpack builded file chunk-hash changed every time
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');