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
function toggleCheckImage(source) { | |
checkboxes = document.getElementsByClassName("imagecheckbox"); | |
for (var i = 0, n = checkboxes.length; i < n; i++) { | |
checkboxes[i].checked = source.checked; | |
} | |
} |
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
sudo /usr/lib/jdk1.8.0_92/bin/jcmd | |
JFR.stop | |
JFR.start | |
JFR.dump | |
JFR.check | |
VM.native_memory | |
VM.check_commercial_features | |
VM.unlock_commercial_features | |
ManagementAgent.stop |
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
#use telnet connect teamspeakser query server | |
telnet ip 10011 | |
#login query_server | |
login serveradmin yourpassword | |
serverstop sid=1 | |
use sid=1 -virtual | |
serveredit virtualserver_port=9988 | |
use sid=0 | |
serverstart sid=1 |
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
https://shadowsocks.com/ | |
http://www.ishadowsocks.org/ |
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
:e $MYVIMRC 打开vimrc,在windows平台会打开_vimrc |
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
__init__.py里import的模块,实际运行的时候是在当前的目录(就是你目前所在的目录)寻找package,而不是__init__.py所在目录,所以就会导致找不到模块 | |
所以要真正能导入,需要 | |
import sys | |
sys.path.append("__init__.py所在目录") | |
之后 | |
import 的模块就会到append的路径里查找模块了 | |
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
registry=https://registry.npm.taobao.org | |
prefix=C:/Users/w4u/.npm-packages |
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
public class MyFaceletViewHandler extends FaceletViewHandler { | |
public MyFaceletViewHandler(ViewHandler parent) { | |
super(parent); | |
} | |
@Override | |
public UIViewRoot restoreView(FacesContext facesContext, String viewId) { | |
UIViewRoot root = super.restoreView(facesContext, viewId); | |
// do not allow ViewExpiredException |
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
function centerAndShowDialog(dialog) { | |
var c = Liferay.component(dialog); | |
//dialog show 之前设置一个固定高度,为了窗口居中 | |
AUI().Do.before(function () { | |
c.set("centered", true); | |
c.set("height", "70%"); | |
}, c, "show"); | |
//dialog show 之后,把高度设置为auto | |
AUI().Do.after(function () { | |
console.log("after"); |
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
#!/bin/bash | |
USERNAME=youruser | |
PASSWORD=yourpassword | |
INSTANCE=example.atlassian.net | |
LOCATION=/where/to/store/the/file | |
# Set this to your Atlassian instance's timezone. | |
# See this for a list of possible values: | |
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
TIMEZONE=America/Los_Angeles |
OlderNewer