Skip to content

Instantly share code, notes, and snippets.

//
// JavaScript Polyfills ( Simplified Chinese )
// https://wangye.org/posts/2022/03/polyfills-in-javascript-for-newer-features.html
//
var polyfill_features = [
"MediaQueryList.prototype.addEventListener",
"String.prototype.startsWith",
"String.prototype.trim",
"Element.prototype.classList",
#!/bin/bash
#
# This script is used to check the IP address of the current machine
# https://wangye.org/posts/2022/02/bash-shell-to-find-dynmatic-public-ip-address.html
#
hosts=("checkip.amazonaws.com" "api.ipify.org" "ifconfig.me/ip" "icanhazip.com" "ipinfo.io/ip" "ipecho.net/plain" "checkipv4.dedyn.io")
CURL=`which curl`
DIG=`which dig`

Keybase proof

I hereby claim:

  • I am wangye on github.
  • I am wangye (https://keybase.io/wangye) on keybase.
  • I have a public key ASD2FscOwcvbU8II_TEiCn6CD2xenc7d04M8HncbfwwvWwo

To claim this, I am signing this object:

'
' File Description : Disable Windows 7/8/8.1 Upgrade to Windows 10
'
' Copyright (c) 2016 WangYe. All rights reserved.
'
' Author: WangYe
' Site: http://wangye.org
' This code is distributed under the BSD license
'
' Usage:
Option Explicit
'
' Copyright (c) 2012-2013 WangYe. All rights reserved.
'
' Author: WangYe
' Site: http://wangye.org
' This code is distributed under the BSD license
'
' For more information please visit
'
' File Description : VBScript Windows Fonts Installer
'
' Copyright (c) 2012-2013 WangYe. All rights reserved.
'
' Author: WangYe
' Site: http://wangye.org
' This code is distributed under the BSD license
'
' For more information please visit
REM
REM COPYRIGHT : Copyright (c) 2013 WangYe. All rights reserved.
REM
REM DESCRIPTION : Clear ALL FILES in Excel XLSTART directory.
REM AUTHOR : WANGYE
REM WEBSITE : http://wangye.org
REM
REM Compatible with Office 2003/2007/2010
REM
REM Last Update : 2013/1/10
@wangye
wangye / srvany.vbs
Last active November 28, 2022 04:38
'
' Usage:
' WScript.exe srvany.vbs -name [ServiceName]
' -srvany [SrvAnyFileName]
' -file [ExeFileName]
' -dir [ExeFileDirectory]
' -params [ExeFileParameters]
'
' For more information please visit http://wangye.org
'
@wangye
wangye / makezip.vbs
Last active December 10, 2015 06:28
'
' Copyright (c) 2012-2013 WangYe. All rights reserved.
'
' Author: WangYe
' Site: http://wangye.org
' This code is distributed under the BSD license
'
' For more information please visit
' http://wangye.org/blog/archives/767/
'
@wangye
wangye / extract.asp
Created November 7, 2012 14:23
ASP/VBScript Dictionary extractASP/VBScript模拟实现PHP extract()函数将字典集合转换为对象
<%
'
' ASP/VBScript Dictionary extract
' Author: WangYe
' For more information please visit
' http://wangye.org/blog/archives/734/
' This code is distributed under the BSD license
'
' collection 集合或者字典,可以通过For Each访问的
' Request.Form 或者 Request.QueryString